MCPAgent
- system_message (Optional[str]): The system message for the chat agent. (default: :str:
"You are an assistant with search capabilities using MCP tools."
) - model (BaseModelBackend): The model backend to use for generating responses. (default: :obj:
ModelPlatformType.DEFAULT
withModelType.DEFAULT
) - registry_configs (List[BaseMCPRegistryConfig]): List of registry configurations (default: :obj:
None
) - local_config (Optional[Dict[str, Any]]): The local configuration for the MCP agent. (default: :obj:
None
) - local_config_path (Optional[str]): The path to the local configuration file for the MCP agent. (default: :obj:
None
) - function_calling_available (bool): Flag indicating whether the model is equipped with the function calling ability. (default: :obj:
True
) **kwargs: Inherited from ChatAgent
init
_initialize_mcp_toolkit
add_registry
- registry_config (BaseMCPRegistryConfig): The registry configuration to add.
step
- input_message (Union[BaseMessage, str]): The input message. *args: Additional arguments. **kwargs: Additional keyword arguments.