@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface TrackTaskRequest

    Persisted seller work to observe without submitting a new task.

    interface TrackTaskRequest {
        operationId?: string;
        signal?: AbortSignal;
        transport?: TransportOptions;
        taskId: string;
        taskType: string;
        a2aTaskId?: string;
        cancelOnAbort?: boolean;
    }

    Hierarchy

    • Pick<TaskOptions, "operationId" | "transport" | "signal">
      • TrackTaskRequest
    Index
    operationId?: string

    Caller-supplied operation correlation id. It fills the {operation_id} webhook URL macro and, on AdCP 3.1+, push_notification_config.operation_id. Persist it with metadata.serverTaskId to resume tracking after a restart.

    Default: for a request that carries an idempotency key (every mutating request; the SDK generates one when you don't), idem- followed by 40 hex characters derived from the agent id, task name and key. Otherwise a generated UUID. A seller hashes the request, webhook registration included, under its idempotency key, so a retry must send the same operation id: retry with the same idempotency_key and the SDK derives the same id. If you pass operationId, pass the same one on the retry. Reuse is allowed once the earlier dispatch has finished; while it is in flight on this client, the call fails with a ConfigurationError, so track the existing task instead.

    Use a globally unique opaque id per operation (UUID recommended), including across tenants sharing persistence or webhook receivers. Accepts 1–255 letters, digits, underscores, periods, colons, or hyphens. Dot-only IDs and the delivery_route: prefix are reserved.

    signal?: AbortSignal

    Caller-owned cancellation signal for the read path and in-flight protocol call. Aborting this signal cancels discovery probes (getAgentInfo, getCapabilities, feature/version preflight) and the tool request where the underlying official protocol client supports it.

    transport?: TransportOptions

    Transport-level safeguards for this call. Use to lift or tighten maxResponseBytes per call when an agent legitimately publishes large catalogs (e.g., list_creative_formats on a generative seller) — the default is 4 MiB.

    This object replaces the client constructor's transport rather than merging into it. A per-call object that sets only requestTimeoutMs drops the constructor's maxResponseBytes back to the default; repeat every field you still want.

    taskId: string

    Seller's AdCP task_id (TaskResult.metadata.serverTaskId).

    taskType: string

    Original tool name, used to verify the seller's task identity.

    a2aTaskId?: string

    Actual A2A transport Task.id, if known. Distinct from the AdCP taskId.

    cancelOnAbort?: boolean

    Request cancellation of seller work on polling abort. Requires a2aTaskId; defaults to false.