Commit Graph

192 Commits

Author SHA1 Message Date
Saurav Panda fe52a3a8ce added message compaction 2026-02-05 11:33:09 -08:00
hacking-racoon 38703d5ad7 perf: lazy import for openai and reportlab to reduce startup latency
- agent/views.py: Move RateLimitError import inside format_error() function
  to avoid loading openai SDK (~800ms) at module level
- llm/messages.py: Replace openai.BaseModel with pydantic.BaseModel directly
  to remove unnecessary openai dependency
- filesystem/file_system.py: Move reportlab imports inside sync_to_disk_sync()
  to avoid ~40ms startup cost when PDF generation is not used
- utils.py: Convert OpenAIBadRequestError and GroqBadRequestError to lazy
  loaders to avoid loading SDKs at module level

This improves import time for users who don't use OpenAI provider,
especially when using Anthropic, Google, or other providers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 01:48:47 +09:00
mertunsall 9b894150d5 fix structured output for sandboxes 2025-12-12 15:35:34 -08:00
mertunsall ed7cfa4ab2 fix title problem in schema as well as enum problems 2025-11-25 13:02:39 -08:00
Cursor Agent d1b47eba50 Refactor: Reduce max actions per step to 3
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-22 01:29:59 +00:00
Saurav Panda 5e356108f9 feat: added AI summary for rerun task 2025-11-20 21:40:30 +05:30
Saurav Panda e57f7ac14f added variable detection from agent history 2025-11-20 14:39:32 +05:30
Saurav Panda 8f8713b001 feat: added step_interval calculation for history 2025-11-20 10:28:28 +05:30
mertunsall dfbba0e062 add ground truth to judge 2025-11-12 11:16:40 -08:00
mertunsall f3961e0b39 ask for shorter judge output 2025-11-08 09:55:02 -08:00
mertunsall d3a88ce351 vision defaults to True 2025-11-06 16:29:09 -08:00
mertunsall 67d2f12665 default to PNG everywhere 2025-11-06 14:51:52 -08:00
mertunsall e68114662f fix linter 2025-11-06 13:59:23 -08:00
Mert Unsal c4e2dfb39a Update browser_use/agent/views.py 2025-11-06 13:42:38 -08:00
Cursor Agent cb814da33e Add impossible_task and reached_captcha to JudgementResult
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-06 21:38:18 +00:00
mertunsall 03c9e94dc6 allow reading images such as jpg/png, as well as docx, fixes to the flash system prompt 2025-11-03 16:41:27 -08:00
Alezander9 299cf6a9d0 Merge remote-tracking branch 'upstream/main' into library-judge 2025-10-31 21:03:23 -07:00
Alezander9 15911c8c72 fix bugs in library judge and make it off by default 2025-10-31 20:20:36 -07:00
Alezander9 0f1946cb54 implement simple judge directly into the library on done action 2025-10-31 20:01:07 -07:00
Gregor Žunič 5e428e829b Merge branch 'main' into feature/remote-code 2025-10-31 12:19:39 -07:00
Magnus Müller 66c2d7dd97 Output structure msg 2025-10-30 10:54:33 -07:00
Magnus Müller 78beda65fb Revert "Set vision to true by default"
This reverts commit 62ad269975.
2025-10-30 00:44:53 -07:00
Magnus Müller 62ad269975 Set vision to true by default 2025-10-29 22:46:46 -07:00
Gregor Žunič bc3fd6a2dc loaders for AgentHistoryModel from dict 2025-10-16 14:36:57 -07:00
mertunsall 7632a9f56f store state message in the history 2025-10-08 16:49:50 +02:00
Magnus Müller 1b6b674796 Update sensitive data 2025-10-05 15:24:47 -07:00
Magnus Müller 90d414042a Update docs 2025-10-05 15:09:35 -07:00
Magnus Müller 968414b982 Compress gemini schema 2025-10-05 12:48:25 -07:00
Magnus Müller 7b995b7fc1 Refactor action field descriptions in AgentOutput models
- Removed redundant description from action field in AgentOutput and its subclasses.
- Updated action extraction documentation in Tools to clarify usage and limitations.
- Enhanced search_engine field description in SearchAction for better clarity on default behavior.
2025-10-05 11:29:19 -07:00
Magnus Müller d014474998 Linter 2025-10-04 12:59:11 -07:00
Magnus Müller d3abbcb2c7 Include use_vision auto 2025-10-04 12:56:40 -07:00
Magnus Müller e454309f51 Dynamic model timeout 2025-09-19 23:48:49 -07:00
Saurav Panda 126d800df4 remove sensitive data from agent history and logging 2025-09-16 14:41:24 -07:00
Magnus Müller 0e44eb1d3d Merge remote-tracking branch 'origin/HEAD' into fix/issue-1716-event-driven-pause-resume 2025-09-06 09:07:53 -07:00
Magnus Müller 01acf052cd Remove recovery_attempted attribute from AgentState model to streamline state management. 2025-09-04 17:33:41 -07:00
Magnus Müller f474e24b28 force-llm-output-after-failure 2025-09-04 17:22:32 -07:00
Magnus Müller 15054a75c9 Update max_actions_per_step to 4 2025-09-03 09:51:36 -07:00
Magnus Müller 43df3ddb8e Removevalidate_output 2025-08-26 15:01:48 -07:00
Magnus Müller f8a281fc35 Remove retry delay for rate limits, because we do this inside the llm call 2025-08-26 14:59:41 -07:00
Magnus Müller 147ed30d02 Remove planner llm 2025-08-26 14:50:14 -07:00
Magnus Müller e89e78842c Rename controller file to tools 2025-08-26 11:06:28 -07:00
Magnus Müller 1e400c3da1 fix add_new_task for eventbus 2025-08-24 16:09:04 -07:00
mertunsall 59fb17cdbe record coordinates of click 2025-08-21 21:01:18 +01:00
Nick Sweeting 5de5c746fd Merge branch 'main' into fix/issue-2614-queue-shutdown-clean 2025-08-14 12:37:21 -07:00
Louis 8a11d05bf8 Fix #2614: Prevent QueueShutDown exception when using add_new_task + multiple runs
The issue occurred when calling agent.run() after using add_new_task(), because
the second run() attempted to dispatch CreateAgentSessionEvent to an already
shut down event queue from the first run.

This change:
- Adds session_initialized flag to AgentState to track if session events were dispatched
- Only dispatches CreateAgentSessionEvent on the first run() call
- CreateAgentTaskEvent is still dispatched on every run() as tasks can change
- Maintains all existing functionality while preventing the QueueShutDown exception

Fixes the workflow: agent.run() -> agent.add_new_task() -> agent.run() ✅

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 20:06:11 +02:00
Yash Solanki 4f7fbd97d1 Merge branch 'main' into fix/issue-1716-event-driven-pause-resume 2025-08-06 23:05:49 +05:30
Aitor 1e2a083415 Merge branch 'main' into local-remote-split 2025-08-05 18:28:06 +01:00
mertunsall 6a15ed4c4e cleaner 2025-08-05 15:21:52 +01:00
Nick Sweeting 328a4b5be4 Merge branch 'feature/new-dom-extraction-layer' into local-remote-split 2025-08-05 03:12:48 -07:00
Yash Solanki a3a6d50194 Merge branch 'main' into fix/issue-1716-event-driven-pause-resume 2025-08-04 16:46:00 +05:30