Commit Graph

213 Commits

Author SHA1 Message Date
Nick Sweeting 482953f2ea Merge branch 'main' into user/dyadav/add-mem0-procedural-memory 2025-03-30 11:27:48 -07:00
Nick Sweeting 8ba9934542 make it not a hard error if no required keys are set for a model 2025-03-29 20:56:35 -07:00
Nick Sweeting b7a3658e2c fix KeyError for some models 2025-03-29 20:52:46 -07:00
Deshraj Yadav 3e135d1047 Merge branch 'main' into user/dyadav/add-mem0-procedural-memory 2025-03-29 17:24:51 -07:00
Christian Clauss 28c7a487c7 pre-commit run --all-files and pytest 2025-03-29 08:10:13 +01:00
Deshraj Yadav 597c8c6e84 Incorporate suggestions 2025-03-28 19:05:50 -07:00
Deshraj Yadav f0dbcff77d Incorporate suggestions 2025-03-28 19:05:37 -07:00
Deshraj Yadav cac030c66f Change the interval to 8 2025-03-28 19:05:21 -07:00
Deshraj Yadav 55e5e2168e Add support for procedural memory 2025-03-28 19:05:21 -07:00
Nick Sweeting 297c5539a6 Merge branch 'main' into feature/support-reasoning-models 2025-03-28 18:22:05 -07:00
Nick Sweeting fb6fa259a8 apply ruff safe fixes 2025-03-28 18:11:36 -07:00
Anish Hiranandani f5833ad53d Merge branch 'main' into feature/support-reasoning-models 2025-03-28 17:20:08 -07:00
Anish Hiranandani cb2323118f Update browser_use/agent/views.py
Fix comma typo

Co-authored-by: Nick Sweeting <github@sweeting.me>
2025-03-28 17:13:27 -07:00
Anish Hiranandani 45ab623bff moved llm api env vars dict to agent views 2025-03-27 09:03:56 -07:00
Anish Hiranandani 9ea07efdc4 support for reasoning models o1, o1-mini, etc for planner 2025-03-26 19:44:09 -07:00
Weixing Chen (from Dev Box) b8215de46b fix comment 2025-03-17 10:21:29 +08:00
Weixing Chen (from Dev Box) af56e0262e fix empty interacted element 2025-03-17 10:21:29 +08:00
shudaizi1989 5b08613a27 Fix:mutable default argument. (#901) 2025-03-02 12:52:30 -08:00
Magnus Müller 2a6416f272 Add flexible system prompt customization options
- Modify SystemPrompt class to support optional system message override and extension
- Update Agent and AgentSettings to include new system prompt customization parameters
- Update documentation and example to demonstrate new system prompt customization methods
- Remove deprecated system_prompt_class parameter
- Provide two ways to customize system prompt: extend or override completely
2025-02-23 12:25:33 -08:00
Magnus Müller 58cd755b8f Refine action parsing and validation in agent service
- Update service to conditionally limit actions based on max_actions_per_step
- Modify views to use json_schema_extra for action validation
- Improve action list handling to prevent unnecessary slicing
2025-02-23 08:29:21 -08:00
Magnus Müller bdb59feab2 Refactor agent service tool calling and message handling
- Add support for 'raw' and 'json_mode' tool calling methods
- Introduce new methods for setting message context and tool calling method
- Modify input message conversion for specific model names
- Update tool calling method detection logic
- Extend ToolCallingMethod type to include new methods
2025-02-23 08:13:47 -08:00
Magnus Müller e1b51196a0 Enhance agent history tracking
- Update telemetry event to include more comprehensive agent performance metrics
- Modify `AgentEndTelemetryEvent` to capture total input tokens and duration
- Refactor `is_successful()` method to return `None` if agent is not done
- Adjust `ActionResult` default success value to `None`
2025-02-23 07:18:30 -08:00
Magnus Müller c07b5c9a94 Add last step warning and enhance action result tracking
- Introduce warning message for the last step in the agent
- Add `success` parameter to `ActionResult` and `DoneAction`
- Modify `AgentStepInfo` to check for last step
- Update `AgentHistoryList` methods to handle optional values and success status
2025-02-22 23:43:41 -08:00
Magnus Müller 5854644767 Rename tokens to input_tokens in agent history tracking 2025-02-22 22:39:29 -08:00
Magnus Müller b44afd5107 Add step number to metadata and enhance AgentHistoryList with token usage methods 2025-02-22 22:35:36 -08:00
Magnus Müller b6e18197a5 Rename total_tokens to current_tokens in message history tracking 2025-02-22 22:31:37 -08:00
Magnus Müller e503f586f0 Add step metadata tracking with timing and token information 2025-02-22 22:29:07 -08:00
Magnus Müller c01acaacdf Modify errors method to track errors per step in agent history 2025-02-22 21:58:37 -08:00
Magnus Müller 31fe2cfcbb Add method to get number of steps in agent history 2025-02-22 21:55:43 -08:00
Magnus Müller 6dfe07f1a3 Delete page_summary 2025-02-21 16:56:46 -08:00
Gregor Žunič 73e6a3f5c1 fixing page timeout error 2025-02-19 16:19:45 -08:00
XxAlonexX ba884a28f9 Fix #759 2025-02-19 10:08:04 +05:30
Magnus Müller f42fbf6d6a Remove max length 2025-02-18 12:40:01 -08:00
Matic Zavadlal 1d1f9042fb Update views.py 2025-02-14 19:57:05 +01:00
Gregor Žunič ded606a233 outsource state 2025-02-13 22:32:18 -08:00
Gregor Žunič aa19548eff outsourced state v1 2025-02-13 21:48:00 -08:00
jhachirag7 87411c8ac3 Add missing tool descriptions
Full credit due to @jhachirag7 on this, I've set them as the commit
author. They also opened #602 but it looks like it has some indentation
issue (fixed here) and a few spurious commits and removed files; I only
mean to make it as easy as possible for maintainers to get this merged.

I (mike@mbaynton.com) have tested that with this fix it is possible to
run against AWS Bedrock + Sonnet 3.5 v2.

Fixes #580
2025-02-09 17:50:19 -06:00
magmueller 566f4012b1 Include page summary in model output 2025-02-01 18:04:32 -08:00
magmueller 724f9c3efd Added coordinates and css selectors into state 2025-01-30 23:58:18 -08:00
magmueller 9700824546 Fix action names if no action is there 2025-01-19 14:05:16 -08:00
Gregor Žunič 3650c59497 added task steps information 2024-12-05 23:31:17 +01:00
magmueller 05300b30f8 File upload works robust and can connect to existing browser 2024-12-04 15:08:55 +01:00
magmueller 60fbbcae93 Split HistoryTreeProcessor in views and service 2024-12-03 09:26:17 +01:00
magmueller e994da11c1 Error trace only in debug mode 2024-12-02 11:19:51 +01:00
magmueller 34ca52ea3a Fix small actions - improve prompt for multiaction - improve logging 2024-12-01 22:34:17 +01:00
magmueller 90ef74aceb Removed num_clicks, fixed type valuation -> evaluation, and multiaction with output list 2024-12-01 21:49:57 +01:00
magmueller a7f0151cc4 Fix history as list 2024-12-01 21:04:38 +01:00
magmueller c581a1b251 First draft multi-action runs 2024-12-01 21:00:22 +01:00
magmueller 9dfc1f3faf Seperate class for browserhistory - fixed type errors 2024-11-28 23:59:49 +01:00
magmueller d6e684f66f Reload history in agent 2024-11-28 23:09:35 +01:00