Commit 694a027
committed
feat(browser_toolset): enhance error handling and connection management
- Introduced BrowserToolError for tool-level errors, ensuring they don't trigger sandbox recreation.
- Implemented connection caching for Playwright in BrowserToolSet, optimizing resource usage.
- Enhanced _run_in_sandbox method to differentiate between infrastructure and tool-level errors, improving error handling.
- Added unit tests for error handling and connection management in BrowserToolSet.
This update improves the robustness of the browser toolset by refining error handling and optimizing Playwright connection management.
Signed-off-by: Sodawyx <sodawyx@126.com>1 parent 7f2a74f commit 694a027
3 files changed
Lines changed: 562 additions & 99 deletions
File tree
- agentrun
- integration/builtin
- utils
- tests/unittests/integration
0 commit comments