@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface TaskOptions

    Options for task execution

    interface TaskOptions {
        timeout?: number;
        maxClarifications?: number;
        contextId?: string;
        taskId?: string;
        debug?: boolean;
        metadata?: Record<string, any>;
        transport?: TransportOptions;
    }
    Index

    Properties

    timeout?: number

    Timeout for entire task (ms)

    maxClarifications?: number

    Maximum clarification rounds before failing

    contextId?: string

    A2A contextId that binds this call to a server-side conversation. When set, the client sends it on the A2A Message envelope so the server can route to the existing session instead of starting a new one. Retained automatically across calls on the same AgentClient.

    taskId?: string

    A2A taskId of a non-terminal task to resume (HITL / approval flows). When set, the client sends it on the A2A Message envelope so the server continues the same task rather than opening a new one.

    debug?: boolean

    Enable debug logging for this task

    metadata?: Record<string, any>

    Additional metadata to include

    transport?: TransportOptions

    Transport-level safeguards for this call. Overrides the matching field on the client constructor's transport option. Use to lift or tighten maxResponseBytes per call when an agent legitimately publishes large catalogs (e.g., list_creative_formats on a generative seller).