OptionaloperationCaller-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.
OptionalskipSkip inline completion status handlers for this call and its continuations. Defaults to false. Independently delivered webhook handlers are unaffected.
OptionaltimeoutAbsolute wall-clock deadline for the entire SDK task call (ms), including
discovery and capability/version preflight. Unlike workingTimeout, this
deadline never resets on progress and aborts in-flight protocol work.
OptionalsignalCaller-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.
OptionalmaxMaximum clarification rounds before failing
OptionalcontextA2A 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.
OptionaltaskA2A 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.
OptionaldebugEnable debug logging for this task
OptionaldisableSuppress automatic webhook URL generation for this call.
OptionaldurableOpt a direct mutating A2A call into operation-routed pause recovery.
ownerScope must identify the authenticated buyer principal and account
in the host's authorization model. It is hashed together with the trusted
seller binding and must be supplied again during recovery.
Requires a DeferredTaskStorage implementation with the operation-route
methods. The SDK returns a distinct, host-only recovery capability in
result.deferred.recovery when the seller first pauses.
OptionaldelegatedTrusted local authorization tuple for a delegated, cross-origin seller. The SDK snapshots this before dispatch and persists it with any generated webhook registration. It is never inferred from or sent in task arguments.
When present, this whole object takes precedence over the client-wide
webhookVerification.resolverOptions.requiredOperator* fallback.
OptionalmetadataAdditional metadata to include
OptionaltransportTransport-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.
Options for task execution