-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: many miscellaneous fixes to integrations and agents API (#796)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Refines Remote Browser functionality by removing `wait_for_load`, updating models, and enhancing `PlaywrightActions` with error handling and screenshot capabilities. > > - **Behavior**: > - Removed `wait_for_load` action from `RemoteBrowserArguments` and `RemoteBrowserArgumentsUpdate`. > - Updated `task_to_spec()` in `tasks.py` to exclude `task_id`, `id`, and `agent_id`. > - Modified `create_task()` and `create_or_update_task()` to return query results directly. > - **Models**: > - Updated `RemoteBrowserSetup` to remove `RemoteBrowserSetupUpdate` and its fields. > - Refined `RemoteBrowserOutput` to include `output`, `error`, `base64_image`, and `system` fields. > - **Functions**: > - Enhanced `PlaywrightActions` with `_with_error_and_screenshot` decorator for error handling and screenshots. > - Added methods `_get_screen_size()`, `_set_screen_size()`, `_wait_for_load()`, `_execute_javascript()`, `_set_window_vars()`, `_get_mouse_coordinates()`, and `_get_element_coordinates()`. > - **Misc**: > - Removed `spec_to_task` import from `get_task.py` and `list_tasks.py`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup> for c8ef196. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN --> --------- Signed-off-by: Diwank Singh Tomer <[email protected]> Co-authored-by: creatorrr <[email protected]> Co-authored-by: HamadaSalhab <[email protected]> Co-authored-by: HamadaSalhab <[email protected]>
- Loading branch information
1 parent
94ca66f
commit 8ba2b5f
Showing
16 changed files
with
284 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# BECAUSE DIWANK IS OBSESSED | ||
*gaga* | ||
.DS_Store | ||
*.swp | ||
ngrok* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
from typing import Any | ||
|
||
from pydantic import Field | ||
|
||
from .base_models import BaseOutput | ||
|
||
|
||
class RemoteBrowserOutput(BaseOutput): | ||
result: Any = Field(..., description="The result of the action") | ||
output: str | None = Field(None, description="The output of the action") | ||
error: str | None = Field(None, description="The error of the action") | ||
base64_image: str | None = Field( | ||
None, description="The base64 encoded image of the action" | ||
) | ||
system: str | None = Field(None, description="The system output of the action") |
Oops, something went wrong.