Commit Graph

969 Commits

Author SHA1 Message Date
mertunsall e99d8f1635 Remove logging of done action not being executed in multiact 2025-06-19 18:34:09 +02:00
Nick Sweeting 36c88b760c Consolidate sync related code (#2009) 2025-06-19 07:41:28 -07:00
mertunsall 03c80a7493 Reduce max actions per step in Agent class from 10 to 1 for improved control over action execution. 2025-06-19 16:34:34 +02:00
Nick Sweeting f463a9383c init and config fixes 2025-06-19 07:20:43 -07:00
Nick Sweeting 778536a3ce move all sync code into sync dir 2025-06-19 01:28:22 -07:00
Magnus Müller 0b6ebea431 Merge branch 'main' into mert/new_everything 2025-06-19 09:49:43 +02:00
Yasith Jayawardana e2e11966d3 Merge branch 'main' into typing-improvements 2025-06-18 21:20:47 -04:00
mertunsall 927b286d71 Handle sensitive data in agent state and handle user request being visible in agent history in case of update 2025-06-18 15:53:35 +02:00
mertunsall bbc8d26f63 - Updated ActionResult to include an attachments field for displaying files in the done message.
- Enhanced logging in the Agent class to inform users about available attachments after task completion.
- Revised system prompt guidelines to clarify the use of text and files_to_display in the done action.
2025-06-18 14:24:27 +02:00
Nick Sweeting 474476f0ae switch to external bubus lib 2025-06-18 01:41:16 -07:00
mertunsall b8621e1089 Improve logging and action result handling: update messages for new elements detection and adjust success flag in action results so that agent doesn't stop. 2025-06-17 18:58:17 +02:00
mertunsall a0e60a1503 Update prompts and service files: increase max clickable elements length and enhance file writing instructions to specify allowed extensions. 2025-06-17 16:01:21 +02:00
mertunsall 0c34c399db Merge branch 'main' into mert/new_everything 2025-06-17 11:19:06 +02:00
yasithdev 8ea4b4c71a centralize playwright/patchwright imports, and update typing/checks to reduce lint errors 2025-06-16 22:57:20 -04:00
Nick Sweeting d728148200 tweak logger emoji 2025-06-14 01:28:47 -07:00
Nick Sweeting 66fbb8b282 Merge branch 'main' into eventbus 2025-06-14 01:19:15 -07:00
Nick Sweeting 3c65acf225 improve conversation saving 2025-06-13 17:02:29 -07:00
Nick Sweeting 582c039c15 make save_context and other file operations async, setup traces and other dirs on startup 2025-06-12 18:38:12 -07:00
Nick Sweeting 656a129fba include original LLM status_code in raised exception 2025-06-10 05:33:08 -07:00
Nick Sweeting 9a08e3b031 add better logging with reference ids for each object 2025-06-10 02:10:57 -07:00
Nick Sweeting fd4d7ea07a use llm.ainvoke non-blocking async call 2025-06-10 02:03:02 -07:00
Nick Sweeting 930a7aa4de use self.logger for timing log lines 2025-06-10 00:24:50 -07:00
Nick Sweeting 1c7eb2b849 add some newlines in logging output to visually separate steps 2025-06-09 22:05:37 -07:00
Nick Sweeting 5a70f1f1ce dont reset BrowserSession foreground page on Agent.__init__ 2025-06-09 18:51:30 -07:00
Nick Sweeting 0cd31c8b2a throw a hard error requiring BrowserSession to be initialized before passing it in if keep_alive=True 2025-06-09 18:35:44 -07:00
Magnus Müller d998e95ac0 Improve error handling in LLM API calls by appending exception messages to LLMException. This change enhances the clarity of error logs in both utils.py and service.py, facilitating better debugging and traceability. 2025-06-09 22:47:03 +02:00
Magnus Müller db74f1ade3 Refactor response logging in service.py to improve emoji representation based on evaluation state. Updated checks to be case-insensitive for 'success' and 'failure', enhancing robustness in response handling. 2025-06-09 22:19:25 +02:00
Magnus Müller 543ee984b3 Improve error handling in JSON parsing by including the exception message in the ValueError. Added debug logging for successful model output parsing in utils.py to enhance traceability and debugging. 2025-06-09 18:47:37 +02:00
Magnus Müller 574c2b23b6 Improve parameter logging in Agent class by truncating long values to 30 characters for better readability in action summaries. 2025-06-09 15:51:17 +02:00
Magnus Müller 52d4191ba9 Merge branch 'main' into mert/new_everything 2025-06-07 17:58:09 +02:00
Nick Sweeting 6d2826b37a show 4 chars of id instead of 3 2025-06-05 23:28:53 -07:00
Nick Sweeting 48a63fa3af whoops dont mix branch changes 2025-06-05 23:02:16 -07:00
Nick Sweeting 67b9a267db force-start browser is is_connected is false when create_new_tab 2025-06-05 22:58:33 -07:00
Nick Sweeting f85ca0022c fix browser_session initialization based on old browser= arg 2025-06-05 22:57:07 -07:00
Nick Sweeting 8f057d9a12 use dedicated per-object logger for Agent and BrowserSession 2025-06-05 22:56:43 -07:00
Nick Sweeting 0c954791b1 Merge branch 'main' into eventbus 2025-06-05 22:37:36 -07:00
Nick Sweeting c9f7aec8ce Merge branch 'main' into eventbus 2025-06-05 22:33:49 -07:00
Nick Sweeting 80e5b03c15 Merge branch 'main' into sensitive_data 2025-06-05 22:32:25 -07:00
Nick Sweeting c29353078d Merge branch 'main' into bump_langchain 2025-06-05 22:30:31 -07:00
Nick Sweeting 8306a01a02 cleaner agent and browser session logging on connect and disconnect 2025-06-05 22:21:42 -07:00
Nick Sweeting 23d3bf4205 rename .emit to .dispatch and prefix event params to prevent clashes 2025-06-05 21:04:26 -07:00
Nick Sweeting 9da6c485b7 implement new EventBus module with cloud_events to send on agent steps 2025-06-05 18:51:22 -07:00
Phenomenon e47430ac8a Merge branch 'main' into sensitive_data 2025-06-06 00:08:36 +05:30
Anirudha619 5033d643cc fix domain based sensitive_data 2025-06-06 00:04:33 +05:30
Nick Sweeting 04d7ab4a01 use helper to get browser_use version 2025-06-05 02:43:49 -07:00
Nick Sweeting 3c1e2a59d1 remove save_playwright_script_path entirely 2025-06-05 02:06:23 -07:00
mertunsall 853d2aa461 allow done action to be called ONLY as a single action, i.e. disable calling done within a series of actions 2025-06-03 18:50:46 +02:00
Magnus Müller d2059e8512 Enhance error reporting in agent service by including the original exception message in ValueError, improving debugging information. 2025-06-03 09:36:25 +02:00
Magnus Müller 3a9788c1d5 Implement centralized LLM error handling in utils.py and update agent service to utilize this new functionality, improving error management and code clarity. 2025-06-02 15:16:31 +02:00
Magnus Müller 9f808b5a2f Add support for function calling in ChatGroq model integration 2025-06-02 14:30:56 +02:00