Skip to content

datarobot_genai.dragent.a2a.client.client_config

client_config

A2AClientConfig

Bases: 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
Source code in datarobot_genai/dragent/a2a/client/client_config.py
class A2AClientConfig(FunctionGroupBaseConfig, name="a2a_client"):  # type: ignore[call-arg]
    """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
    """

    url: HttpUrl = Field(
        ...,
        description="Base URL of the A2A agent",
    )

    agent_card_path: str = Field(
        default="/.well-known/agent-card.json",
        description="Path to the agent card",
    )

    task_timeout: timedelta = Field(
        default=timedelta(seconds=300),
        description="Maximum time to wait for task completion",
    )

    include_skills_in_description: bool = Field(
        default=True,
        description="Include skill details in the high-level agent function description. "
        "Set to False for shorter descriptions (useful for token optimization). "
        "Skills are always available via get_skills() helper.",
    )

    # streaming is disabled by default because of AIQ-2496
    streaming: bool = Field(
        default=False,
        description="Whether to enable streaming support for the A2A client",
    )

    auth_provider: str | AuthenticationRef | None = Field(
        default=None,
        description="Reference to NAT authentication provider for authenticating "
        "with the A2A agent. "
        "Supports OAuth2, API Key, HTTP Basic, and other NAT auth providers.",
    )