nat.plugins.a2a.client.client_config#

Classes#

A2AClientConfig

Configuration for A2A client function group.

Module Contents#

class A2AClientConfig(/, **data: Any)#

Bases: nat.data_models.function.FunctionGroupBaseConfig

Configuration for A2A client function group.

This configuration enables NAT workflows to connect to remote A2A agents and publish the primary agent function and helper functions.

Attributes:

url: The base URL of the A2A agent (e.g., https://agent.example.com) agent_card_path: Path to the agent card (default: /.well-known/agent-card.json) task_timeout: Maximum time to wait for task completion (default: 300 seconds) include_skills_in_description: Include skill details in high-level function description (default: True) streaming: Whether to enable streaming support for the A2A client (default: False) auth_provider: Optional reference to NAT auth provider for authentication

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

url: pydantic.HttpUrl = None#
agent_card_path: str = None#
task_timeout: datetime.timedelta = None#
include_skills_in_description: bool = None#
streaming: bool = None#
auth_provider: str | nat.data_models.component_ref.AuthenticationRef | None = None#