Types
Types for A2A client configuration.
A2AClientConfig
Bases: BaseModel
Configuration for A2A client.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
discovery_urls |
A list of base URLs to discover agents from using .well-known/agent.json. |
required | |
known_agents |
A dictionary of known agents, keyed by AgentCard.name, storing the parsed AgentCard objects. Can be pre-populated or augmented by discovery. |
required | |
httpx_client_options |
Options for the HTTP client. |
required |
AgentConfig
Bases: BaseAgentConfig
Configuration for agent implementations with language model settings.
This class extends BaseAgentConfig with language model specific configuration fields including provider, model name, API settings, and hyperparameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
lm_name |
The name of the language model to use. |
required | |
lm_hyperparameters |
Hyperparameters for the language model. |
required | |
lm_provider |
The provider of the language model (e.g., 'openai', 'google'). |
required | |
lm_base_url |
The base URL for the language model API. |
required | |
lm_api_key |
The API key for the language model service. |
required | |
lm_retry_config |
Retry configuration for the language model. |
required |
BaseAgentConfig
Bases: BaseModel
Base configuration for agent implementations.
This class provides common configuration fields that all agent implementations can use. It serves as a foundation for more specific configuration classes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tools |
List of tools available to the agent. |
required | |
default_hyperparameters |
Default hyperparameters for the language model. |
required |
Config
Config for BaseAgentConfig.
HttpxClientOptions
Bases: BaseModel
Options for the HTTP client.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
timeout |
The timeout for the HTTP client. |
required |
Config
Config for HttpxClientOptions.