🛠️ Tools¶
evoagentx.tools ¶
Tool ¶
Bases: BaseModule
Source code in evoagentx/core/module.py
required
class-attribute
instance-attribute
¶
inputs: {"input_name": {"type": "string", "description": "input description"}, ...}
BrowserToolkit ¶
BrowserToolkit(name: str = 'BrowserToolkit', browser_type: str = 'chrome', headless: bool = False, timeout: int = 10, **kwargs)
Bases: Toolkit
Browser toolkit with auto-initialization and cleanup.
The browser is automatically initialized when any tool is first used, and automatically closed when the toolkit instance is destroyed. No explicit initialization or cleanup is required.
Source code in evoagentx/tools/browser_tool.py
MCPToolkit ¶
MCPToolkit(servers: Optional[list[MCPClient]] = None, config_path: Optional[str] = None, config: Optional[dict[str, Any]] = None)
Source code in evoagentx/tools/mcp.py
get_toolkits ¶
Return a flattened list of all tools across all servers
Source code in evoagentx/tools/mcp.py
BrowserUseToolkit ¶
BrowserUseToolkit(name: str = 'BrowserUseToolkit', model: str = 'gpt-4o-mini', api_key: str = None, browser_type: str = 'chromium', headless: bool = True)
Bases: Toolkit
Toolkit for browser automation using Browser Use.
Initialize the BrowserUse toolkit.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Toolkit name |
'BrowserUseToolkit'
|
model
|
str
|
LLM model to use |
'gpt-4o-mini'
|
api_key
|
str
|
API key for the LLM |
None
|
browser_type
|
str
|
Browser type (chromium, firefox, webkit) |
'chromium'
|
headless
|
bool
|
Whether to run browser in headless mode |
True
|