Commit Graph

969 Commits

Author SHA1 Message Date
Alezander9 907e82603e cleanup formatting issues with get_trace() 2025-07-29 18:40:36 -07:00
Alezander9 18876f222e add helper function for getting agent trace, remove references to deprecated gpt-4o 2025-07-29 18:11:56 -07:00
Nick Sweeting 7549d16d1e Merge branch 'main' into feat/custom-screenshot-quality 2025-07-29 12:03:33 -07:00
Mert Unsal ce024d25ab Merge branch 'main' into mert/improve_messages_for_kv_cache 2025-07-25 19:40:02 +02:00
Nick Sweeting c73c87c9f4 fix gif tests 2025-07-25 01:09:03 -07:00
Mert Unsal 75cbb6b0f4 Merge branch 'main' into llm 2025-07-24 19:43:00 +02:00
mertunsall eb833d34d9 now history is cached 2025-07-23 19:08:50 +02:00
Enzo Biondo 0c5451caa0 Merge branch 'main' into feat/custom-screenshot-quality 2025-07-21 13:27:07 -03:00
Magnus Müller 76b57a5586 Merge branch 'main' into feat/speed-improvements-wait 2025-07-20 23:23:50 +02:00
mertunsall ce5bfe6195 lazy imports and bump some versions 2025-07-20 22:58:34 +02:00
Magnus Müller eafb170dec Merge branch 'main' into feat/speed-improvements-wait 2025-07-20 16:15:01 +02:00
mertunsall b8067da3d4 no screenshots if vision is disabled 2025-07-20 16:10:38 +02:00
Magnus Müller 34590509fa Change log 2025-07-20 15:45:12 +02:00
Magnus Müller c7f266d52a Improved error for timeout 2025-07-19 20:55:19 +02:00
Magnus Müller 067b249da2 More tracking 2025-07-19 20:53:22 +02:00
Magnus Müller 724dc15b29 Fix timeout exception handling in Agent class
- Changed the exception type from asyncio.TimeoutError to TimeoutError for better clarity in timeout handling.
- Updated the error message to suggest generating fewer tokens in case of a timeout.
2025-07-19 20:36:56 +02:00
Magnus Müller 01f5854706 Inlcude timeout per step at 3min 2025-07-19 19:40:21 +02:00
Magnus Müller e43363cb0b Set maximum 1 min timeout for llm call 2025-07-19 18:56:50 +02:00
மனோஜ்குமார் பழனிச்சாமி 95009f7d95 Add runtime type check for llm in Agent init
Added a type check to ensure the llm argument is an instance of BaseChatModel in Agent's constructor, raising a ValueError otherwise. Also marked BaseChatModel as @runtime_checkable to support isinstance checks.
2025-07-19 13:54:12 +05:30
Magnus Müller b7d29f54e8 Wait inside multiact 2025-07-19 01:40:41 +02:00
Enzo Biondo 52e287aa93 Merge branch 'main' into feat/custom-screenshot-quality 2025-07-18 19:50:25 -03:00
Magnus Müller 04e780124c Merge remote-tracking branch 'origin/HEAD' into speed-improvements 2025-07-19 00:10:24 +02:00
Nick Sweeting d2dbe538c9 disable bubus WAL for now 2025-07-18 12:49:39 -07:00
Magnus Müller 15dd27f2b5 Dont take screenshots in multact and move get_browser_state_with_recovery to the browser session 2025-07-18 18:11:45 +02:00
Magnus Müller 3ae32e5092 Remove Remove_highlights only use it before we screenshot 2025-07-18 17:40:56 +02:00
Enzo Biondo 4133b17ad8 Merge branch 'main' into feat/custom-screenshot-quality 2025-07-18 11:52:41 -03:00
EnzoFanAccount ec9223b3e4 add vision_detail_level param 2025-07-18 11:40:52 -03:00
Magnus Müller c42aae3eaf Fix line formatting in agent service for cdp_url assignment 2025-07-18 16:37:24 +02:00
Magnus Müller 3179fb7686 Merge branch 'main' into feat/cdp-url-agent-event 2025-07-18 16:32:07 +02:00
Magnus Müller 061e24b976 Merge remote-tracking branch 'origin/main' into extraction-magnus-revert-with-main 2025-07-14 18:35:21 +02:00
Magnus Müller 48c9035566 Merge remote-tracking branch 'origin/main' into laminar-ignore-input-output 2025-07-14 13:23:45 +02:00
Magnus Müller a72e0ac062 Dont remove highlights in multiact 2025-07-12 23:33:43 +02:00
mertunsall 5757ef344f default it to False for now 2025-07-12 23:24:18 +02:00
mertunsall 0b03b24bab temporarily set flash mode True for evals 2025-07-12 21:48:30 +02:00
mertunsall d490087a28 FLASH MODE 2025-07-12 21:46:48 +02:00
Aitor d3ad893ea2 Merge branch 'main' into feat/cdp-url-agent-event 2025-07-12 00:48:22 +02:00
Gregor Žunič 7bf17064f6 started migration to pure cdp 2025-07-11 14:19:22 +02:00
Gregor Žunič 779196d74c nicer types 2025-07-10 22:28:53 +02:00
Magnus Müller 6407c10918 laminar-ignore input output 2025-07-09 22:27:22 +02:00
mertunsall c00f66d338 1. fix the bug that auto downloads were not available immediately to the agent
2. make available_file_paths a state of the agent instead of setting and update it regularly.
2025-07-09 15:27:08 +02:00
Gregor Žunič 8a2eda1828 wip, started migrating to pure cdp 2025-07-09 12:22:21 +02:00
Magnus Müller 1eb6ea28c0 Update observability decorators in service classes
- Added `ignore_output=True` to the `@observe_debug` decorator in the Agent and BrowserSession classes to suppress output for specific methods.
- Updated the `@observe_debug` decorator in the MessageManager class to include `ignore_input=True` for better control over debug logging.
2025-07-09 10:04:05 +02:00
Magnus Müller e9b20b67a8 Refactor error handling in Agent class
- Moved the handling of InterruptedError to a separate conditional block for improved clarity.
- Updated logging to use error level for InterruptedError, enhancing visibility of interruptions.
- Simplified the last result state update by removing unnecessary parameters.
2025-07-09 02:04:35 +02:00
Magnus Müller 15ec11e768 Enhance error handling in Agent class step execution
- Updated error logging to use the instance logger for better context.
- Incremented consecutive failures count and updated last result state upon timeout errors for improved state management.
2025-07-09 01:52:23 +02:00
Magnus Müller 2d31052e3d Update step handling in Agent class
- Adjusted the initialization of the step counter to start from 1 in AgentState.
- Updated logging messages throughout the Agent class to reflect the correct step number after the refactor.
- Removed the previous increment of n_steps from the middle of the step method, ensuring it is now incremented only at the start of the method for better clarity and tracking.
2025-07-09 01:45:28 +02:00
Magnus Müller 9a83fedd53 Refactor Agent step handling and logging
- Moved step timing initialization and step counter increment to the start of the step method for better tracking.
- Updated logging messages to reflect the correct step number after the refactor.
- Increased timeout for step execution to 5 minutes and added graceful handling for timeout errors.
- Adjusted initial value of n_steps in AgentState to start from 0 instead of 1.
- Added observability decorators to resource monitoring functions for improved debugging.
2025-07-09 01:07:32 +02:00
Magnus Müller 90d4898322 Clean up 2025-07-09 00:49:19 +02:00
Magnus Müller 542bcdacfd Merge remote-tracking branch 'origin/main' into refactor-agent-stable 2025-07-09 00:01:52 +02:00
Magnus Müller 0682e32f1b Fix deprecated asyncio.TimeoutError usage 2025-07-08 23:30:39 +02:00
Magnus Müller 6f221ec504 Refactor message management to categorize messages by type. Updated methods to handle system, state, and consistent messages separately, improving message retrieval and organization. 2025-07-08 23:09:38 +02:00