-
Skills Integration (#3724)
发布于
2025-12-10 01:05:21 +00:00 Summary by cubic
Integrates Browser Use API skills into the agent, auto-registering them
as actions with Pydantic-validated parameters and structured outputs.
Adds cookie-aware execution and surfaces unavailable skills (missing
cookies) in the agent prompt; requires BROWSER_USE_API_KEY and passing
skills (or skill_ids) to enable skills.-
New Features
-
Adds browser_use/skills package with SkillService (fetch/execute),
schema converters, and SDK view wrappers. -
Agent accepts skills or skill_ids (supports '*'); 'skills' takes
precedence and they cannot be set together; lazily loads skills,
registers them as actions with clean slugs, rebuilds action models, and
closes the service on shutdown. -
Validates parameters against skill schemas; fills cookie values from
browser cookies; returns clear errors for missing cookies; supports
output schema conversion. -
Shows "Unavailable Skills" info in the state message when required
cookies are missing. -
Updates BrowserSession.cookies to return all cookies via CDP
Storage.getCookies; removes the urls parameter. -
Dependencies
- Adds browser-use-sdk>=2.0.12.
Written for commit
22b37f3c11.
Summary will update automatically on new commits.下载附件
-