Commit Graph

969 Commits

Author SHA1 Message Date
Magnus Müller 6cbace0321 Remove remove message 2025-07-08 22:47:11 +02:00
Magnus Müller 6f446b8a03 Increase timeouts 2025-07-08 22:24:17 +02:00
Magnus Müller fd40f86677 Refactor agent step execution and error handling
- Updated the step method to consolidate LLM interaction and action execution into a single try block for improved performance.
- Introduced a fallback mechanism for state summary retrieval, logging errors more effectively.
- Enhanced error handling to manage InterruptedError and other exceptions uniformly.
- Refactored context preparation and action execution methods for clarity and consistency.
- Implemented a new method for creating history items to streamline history management.
2025-07-08 15:47:57 +02:00
Magnus Müller fbc056660c Merge remote-tracking branch 'origin/main' into refactor-agent-stable 2025-07-08 14:06:22 +02:00
Nick Sweeting 9e9cce40f6 simplify error logging and fix timeouts 2025-07-07 21:29:03 -07:00
Nick Sweeting d6a8d86f26 raise explicit ActionNotFoundError when LLM calls non-existent action 2025-07-07 18:34:28 -07:00
Magnus Müller e4db189f17 Refactor Agent class to deprecate planner-related parameters and methods. Removed planner functionality and updated related logging and error handling. Enhanced step execution flow by consolidating methods and improving context preparation. 2025-07-07 22:27:22 +02:00
Magnus Müller 3f34c97091 refector agent method 2025-07-07 19:55:35 +02:00
Magnus Müller 51e087a9bd Refactor error handling in Agent class to remove asyncio.CancelledError cases and improve exception logging during action execution 2025-07-07 17:57:20 +02:00
Magnus Müller 5293cbbdcc Fix last model output position 2025-07-07 17:23:02 +02:00
Magnus Müller da22746577 Increase multi act timeouts 2025-07-07 16:44:15 +02:00
Magnus Müller 475e757d6a Move self.state.last_model_output = model_output up otherwise we dont safe it in the case of an error 2025-07-07 16:40:09 +02:00
Magnus Müller d3496874db Update test 2025-07-07 16:01:09 +02:00
Magnus Müller ea481972b1 Merge branch 'main' into better-error-handling-and-lmnr-inclusion 2025-07-07 15:33:08 +02:00
mertunsall 188642a68e fix more 2025-07-07 14:42:15 +02:00
Mert Unsal f5ee0d6097 Merge branch 'main' into cursor/make-tool-call-example-parameter-optional-3d84 2025-07-07 14:36:07 +02:00
mertunsall 3a6a3e5d75 move examples to system prompt 2025-07-07 14:32:49 +02:00
Mert Unsal 0a5612ba29 Revert "Make tool call example parameter optional" 2025-07-07 14:32:49 +02:00
Mert Unsal f7825bf176 Revert "Make tool call example parameter optional" 2025-07-07 13:35:37 +02:00
Cursor Agent 31718e982c Change default of include_tool_call_examples to False for reduced tokens
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-07-06 22:32:45 +00:00
Cursor Agent c72b9ddabd Add optional parameter to control tool call examples in Agent
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-07-06 21:53:00 +00:00
Magnus Müller d03196c09c Merge remote-tracking branch 'origin/main' into include-lmnr 2025-07-06 23:42:14 +02:00
Magnus Müller 25392d9cde add multiple last screenshots to llm input message 2025-07-06 13:50:31 +02:00
Magnus Müller a4c9b992ba Add observability module for browser-use with optional lmnr integration and debug mode support 2025-07-05 23:08:00 +02:00
Magnus Müller 09d336556f Update error logging to not confuese agent when site is not available 2025-07-05 16:03:27 +02:00
Magnus Müller bf266c6ed0 Add error msg for agent if site crashes 2025-07-05 15:46:04 +02:00
Magnus Müller 99ef62748f Add lmnr tracing 2025-07-05 15:23:38 +02:00
Magnus Müller face6a599b Enhance observability in browser and agent services
- Added `@observe` decorators to various methods in `service.py`, `session.py`, and `controller.py` to improve tracking of actions and state changes.
- Updated method signatures to include observability features for better debugging and monitoring.
- Adjusted retry logic for certain actions to enhance reliability and performance.
2025-07-05 14:44:43 +02:00
reformedot 9df2804b28 fix: improved logged CDP URL by just sending the hostname 2025-07-05 14:03:37 +02:00
reformedot 9841f4080c feat: add CDP URL to Agent Telemetry events 2025-07-05 13:13:41 +02:00
Magnus Müller dccff73b17 refactor: adjust timeouts for step execution and retry logic
- Increased step execution timeout from 60 seconds to 120 seconds for improved handling of longer operations.
- Reduced retry attempts in the screenshot logic from 3 to 2 to streamline error handling and reduce unnecessary retries.
2025-07-04 17:30:48 +02:00
Magnus Müller 5f8e46545e Consecutive failure increase for timeout 2025-07-04 15:40:02 +02:00
Magnus Müller 65f5502ab6 Change timeouts & wait in minimal summary 2025-07-04 15:34:32 +02:00
Magnus Müller 22f89efae4 refactor: reduce timeouts for various operations to improve responsiveness
- Updated timeouts for action execution, step processing, and screenshot operations to more aggressive values (e.g., reduced from 60s to 20s for actions, 30s to 10s for DOM processing).
- Adjusted retry logic and timeout settings for screenshot and iframe content extraction to enhance performance and reduce potential hangs.
- Improved logging for timeout events to provide clearer feedback on operation failures.
2025-07-04 14:30:54 +02:00
Magnus Müller 6be3ad952f Merge remote-tracking branch 'origin/main' into fix-browser-error-recovery 2025-07-04 14:26:48 +02:00
Magnus Müller 2045ad747c Improve logging 2025-07-04 13:22:38 +02:00
Magnus Müller 28207e3564 Enhance logging in Agent and eval service
- Added detailed debug logging throughout the Agent class to track execution steps, including browser state retrieval, action model updates, and LLM calls.
- Improved error logging to capture failures during LLM calls and execution.
- Updated eval service to log task execution progress and final state, enhancing traceability and debugging capabilities.
2025-07-04 00:50:21 +02:00
Magnus Müller e5c1488fe6 Include pixel information 2025-07-03 22:42:51 +02:00
Magnus Müller f0228e608c Add error recovery strategies for browser state retrieval
- Introduced `_get_browser_state_with_recovery` method to handle state retrieval with fallback options.
- Implemented `_get_minimal_state_summary` for basic page info retrieval without DOM processing.
- Updated `step` method to utilize the new recovery method for improved resilience in state fetching.
2025-07-03 21:05:55 +02:00
Gregor Žunič 177d5bcb7e Merge branch 'main' into fuckaround/dom-processing-tree 2025-07-02 18:14:40 +02:00
Gregor Žunič b1aa20ae64 making extraction simpler, removed some unnecesary optimizations 2025-07-01 10:43:28 +02:00
Magnus Müller 7fda8927d2 agent-add-step-info-to-take-step 2025-06-30 13:19:41 +02:00
Gregor Žunič 2c884040c4 Merge branch 'main' into gregor/eng-238-fix-token-counts-on-eval-platform 2025-06-29 19:40:29 +02:00
Gregor Žunič 48ae2d19cf much better structured output + utils for generating pydantic schema 2025-06-29 17:42:19 +02:00
Gregor Žunič 0691500c6a wip 2025-06-29 16:22:19 +02:00
Gregor Žunič b37e026f89 added usage data to agent history and evals 2025-06-29 11:28:20 +02:00
Nick Sweeting 1a9d56fccc fix eventbus name 2025-06-28 03:50:19 -07:00
Nick Sweeting 94b986cc22 fix failing bubus issue 2025-06-28 03:46:12 -07:00
Nick Sweeting 20d1acfd1c dont force browser session to be started before passing in 2025-06-28 03:46:11 -07:00
Mert Unsal add400e922 Merge branch 'main' into cursor/remove-memory-support-and-raise-error-b7bd 2025-06-27 14:19:39 +02:00