SDK reference for HUD agent classes
MCPAgent
class and several pre-built agent implementations for interacting with MCP environments.
Parameter | Type | Description | Default |
---|---|---|---|
mcp_client | AgentMCPClient | MCP client for server connections | None |
allowed_tools | list[str] | List of tool names to allow | None (all) |
disallowed_tools | list[str] | List of tool names to disallow | [] |
lifecycle_tools | list[str] | Tools hidden from agent (setup/evaluate) | [] |
initial_screenshot | bool | Capture screenshot before first prompt | False |
system_prompt | str | System prompt to use | Default prompt |
append_tool_system_prompt | bool | Append available tools to system | False |
append_setup_output | bool | Append setup tool output to initial prompt | False |
model_name | str | Model name for telemetry | "mcp-agent" |
response_agent | ResponseAgent | Optional auto-response handler | None |
auto_trace | bool | Enable automatic telemetry | True |
metadata: dict[str, Any]
- Metadata injected into MCP initialize requestmcp_client
is provided but a Task
with mcp_config
is passed to run()
, an MCPClient is automatically created and cleaned up.
Parameter | Type | Description | Default |
---|---|---|---|
model_client | AsyncAnthropic | Anthropic client | Auto-created |
model | str | Claude model to use | "claude-3-7-sonnet-20250219" |
max_tokens | int | Maximum response tokens | 4096 |
use_computer_beta | bool | Use computer-use beta | True |
Parameter | Type | Description | Default |
---|---|---|---|
model_client | AsyncOpenAI | OpenAI client | Auto-created |
model | str | Model to use | "gpt-4o-realtime-preview" |
max_tokens | int | Maximum response tokens | 4096 |
Parameter | Type | Description | Default |
---|---|---|---|
model_client | AsyncOpenAI | OpenAI-compatible client | Required |
model | str | Model name | Required |
max_tokens | int | Maximum response tokens | 4096 |
Parameter | Type | Description | Default |
---|---|---|---|
model | BaseChatModel | LangChain chat model | Required |
Parameter | Type | Description | Default |
---|---|---|---|
art_model | ArtModel | ART model instance | Required |
max_tokens | int | Maximum response tokens | 4096 |