ADK for TypeScript: API Reference
    Preparing search index...

    Interface RemoteA2AAgentConfig

    Configuration for the A2ARemoteAgent.

    interface RemoteA2AAgentConfig {
        afterAgentCallback?: AfterAgentCallback;
        afterRequestCallbacks?: AfterA2ARequestCallback[];
        agentCard?: string | AgentCard;
        beforeAgentCallback?: BeforeAgentCallback;
        beforeRequestCallbacks?: BeforeA2ARequestCallback[];
        client?: Client;
        clientFactory?: ClientFactory;
        description?: string;
        inputSchema?: SchemaLike;
        isolationScope?: string | true;
        messageSendConfig?: MessageSendConfiguration;
        metadata?: Record<string, unknown>;
        name: string;
        outputSchema?: SchemaLike;
        parentAgent?: BaseAgent<BaseAgentConfig>;
        rerunOnResume?: boolean;
        retryConfig?: RetryConfig;
        stateSchema?: SchemaLike;
        subAgents?: BaseAgent<BaseAgentConfig>[];
        timeout?: number;
        waitForOutput?: boolean;
    }

    Hierarchy (View Summary)

    Properties

    afterAgentCallback?: AfterAgentCallback
    afterRequestCallbacks?: AfterA2ARequestCallback[]

    Callbacks run after receiving a response chunk or event, before conversion.

    agentCard?: string | AgentCard

    Loaded AgentCard or URL to AgentCard.

    beforeAgentCallback?: BeforeAgentCallback
    beforeRequestCallbacks?: BeforeA2ARequestCallback[]

    Callbacks run before the remote request is sent.

    client?: Client

    Optional pre-initialized Client for connection pooling.

    clientFactory?: ClientFactory

    Optional ClientFactory for creating the A2A Client.

    description?: string

    Human-readable description (used when a node is exposed as a tool).

    inputSchema?: SchemaLike

    Optional schema validating the node input (Zod v3/v4 or genai Schema).

    isolationScope?: string | true

    Runs this node's subtree in an isolated conversation scope: an agent inside it sees only session events carrying the same scope, plus untagged ones. true derives a scope per node run; a string is an explicit shared tag.

    messageSendConfig?: MessageSendConfiguration

    Optional default configuration for sending messages.

    metadata?: Record<string, unknown>

    Optional request-level metadata to include in the A2A message send request. If omitted, defaults to context.a2aMetadata from the current invocation context.

    name: string

    Canonical, unique-within-a-graph node name.

    outputSchema?: SchemaLike

    Optional schema validating the node output (Zod v3/v4 or genai Schema).

    parentAgent?: BaseAgent<BaseAgentConfig>
    rerunOnResume?: boolean

    If true, the node re-executes when a workflow resumes even if it already completed in a prior turn. Default false.

    retryConfig?: RetryConfig

    Optional retry configuration for transient failures.

    stateSchema?: SchemaLike

    Optional schema validating relevant session state (Zod v3/v4 or genai Schema).

    subAgents?: BaseAgent<BaseAgentConfig>[]
    timeout?: number

    Maximum time, in seconds, for this node to complete.

    waitForOutput?: boolean

    If true, the node only produces its output once all of its predecessors have triggered it (fan-in / join semantics). Default false.