OptionalmaxMaximum messages to keep in history
OptionalpersistWhether to persist conversations
OptionalworkingResettable idle/progress timeout for protocol work in 'working' status.
OptionaldefaultDefault max clarifications
Creative agent URL
OptionalprotocolProtocol to use (defaults to 'mcp')
OptionalauthAuthentication token if required
OptionallegacyMigration converter for seller-specific legacy creative references.
OptionalexperimentalEnable pinned draft identity schemas and positively negotiated 3.3 webhook rules.
OptionalwebhookOptionalaccountDefault off disables provisioning gates; auto/strict use the provisioning registry.
OptionalaccountAuto sends a provisioned account's seller account_id in place of its
natural key on account-scoped tasks negotiated at AdCP 3.3 or later (or
when the seller declares stable_account_id). Natural-key sends every
reference as written.
OptionalaccountOptionalreportingWhere client.reporting.poll() keeps the acknowledged event snapshot (experimental, AdCP 3.3).
Defaults to process-local; a serverless consumer passes postgresStorage({ pool }).events.
OptionalaccountOptionalaccountOptionalaccountTrusted stable caller identity for durable registry partitioning. Default is credential fingerprint.
OptionalproductOptionaldiscoveryShare endpoint discovery, the tools/list schema map and
get_adcp_capabilities across client instances. Opt-in: nothing is shared
unless a cache and a caller-owned authIdentity are supplied.
Entries are keyed by agent URL, authIdentity, the pinned AdCP version, the
non-correlation request headers (tenant/routing headers included), the
signing identity and the transport policy (allowPrivateIp,
maxResponseBytes), and expire after ttlMs. Synthetic capabilities
(a seller whose capabilities call failed or that has no
get_adcp_capabilities) are never shared, and calls that use a scoped
trustedFetchFn bypass the cache entirely.
See docs/guides/DISCOVERY-CACHE-AND-SESSION-REUSE.md.
OptionaldeferredDurable storage for restart-safe A2A human continuations.
OptionalresolveResolve current trusted agent configuration for a persisted continuation.
OptionaldeferredLifetime of a persisted continuation token in seconds. Defaults to seven days.
OptionalprojectionPre-resolved exact-owner publisher/community catalogs used at every projection boundary.
OptionalcanonicalResolver for persisted canonical selections when a negotiated legacy wire is required.
OptionaladcpAdCP protocol version this client speaks to agents. Defaults to
ADCP_VERSION — the GA version the SDK ships against. Override
to pin to an older stable (e.g., '3.0.0') or opt into a beta channel
('3.1.0-beta.1') once that registry ships.
Stage 2 plumbs the option through and validates it at construction
time; cross-major pins (e.g. '4.0.0-beta.1' while the SDK ships
against major 3) throw ConfigurationError. Stage 3 wires per-instance
schema/validator selection off this field.
Typed as AdcpVersion | (string & {}) so editors autocomplete
canonical values from COMPATIBLE_ADCP_VERSIONS while still
accepting forward-compatible strings.
OptionalwireOptional wire-only AdCP version envelope override. Request/response
validation still uses adcpVersion; protocol envelopes use this value.
OptionalversionControls emission of AdCP version envelope fields. Defaults to auto.
none is primarily for conformance harnesses that need to send a
request exactly as authored, without SDK-managed version fields.
OptionaldebugEnable debug logging
OptionaluserCustom User-Agent header sent with all outbound protocol requests.
Overridden by per-agent headers['User-Agent'] if set.
OptionalheadersAdditional headers to include in requests
OptionalonActivity callback for observability (logging, UI updates, etc)
OptionalonTransport-level diagnostics callback for outbound HTTP requests.
Receives sanitized request/response/failure events from the SDK's protocol fetch layer. Header maps are allowlisted/redacted and URLs have credentials, query strings, and fragments stripped before emission.
OptionalhandlersTask completion handlers — called for both sync responses and webhook completions.
For at-least-once webhook delivery, set handlers.webhookDedup to
drop duplicate retries by idempotency_key. See
docs/guides/PUSH-NOTIFICATION-CONFIG.md#deduplication.
For per-call skipping and inline error isolation, see
docs/guides/PUSH-NOTIFICATION-CONFIG.md#inline-completion-handlers.
OptionalisolateReturn successful completed results even if an inline status handler throws. Defaults to false, preserving handler rejection and durable finalization retry. Does not change webhook error handling or cancellation behavior.
OptionalonReports inline status-handler errors when isolateStatusHandlerErrors is true. Errors thrown by this observer are recorded as warnings and do not reject the task.
OptionalwebhookSelect legacy HMAC-SHA256 push verification. Omit to use RFC 9421.
OptionalwebhookDurable provenance for outbound push registrations. Defaults to process-local memory.
OptionalwebhookRegistration retention in seconds. Defaults to seven days.
OptionalwebhookRFC 9421 key, replay, revocation, and discovery configuration.
OptionalallowAccept inbound webhooks that carry no verifiable authenticity at all.
This bypass applies only when no trusted push registration exists and no HMAC secret is configured. It never bypasses a failed RFC 9421 or HMAC verification for a known registration.
Set this only when the receiver is genuinely unreachable from outside your network (in-process test harnesses, a route bound to loopback). It is not a substitute for a secret on any route an agent can reach over the internet.
OptionalwebhookWebhook URL template with macro substitution
Available macros:
OptionalreportingReporting webhook frequency
OptionalvalidateValidate that the seller supports required features before each task call. When true, tasks like syncAudiences will fail fast with FeatureUnsupportedError if the seller hasn't declared audience_targeting support.
OptionalrequireRequire release compatibility and the declared idempotency replay TTL before mutations.
OptionalaccountWhat to do when a request reaches a seller on an older AdCP release and
its account key uses fields that release cannot express. AdCP 3.2 added
operator_unit, currency and timezone to the account natural key and
countries to brand references; a 3.1 seller's key has none of them.
'refuse' (default): fail the call before it is sent with
ProtocolFeatureUnsupportedError.'reduce': send the older key when that is unambiguous, and refuse when
it would merge accounts. Each reduced key is claimed for the one buyer
key it came from (a key sent unreduced claims itself), and a second
buyer key that would reach the same seller account fails with
account_identity_collision before sending, so no two buyer accounts
share one seller account. Each reduction is reported in debug_logs as
an account_identity_reduced entry. Requires accountStorage with
compareAndSet, so the claims hold across instances and restarts.The rule is proposed for the spec as adcontextprotocol/adcp DR-0032
(#8373); the default may change to 'reduce' once it is ratified.
OptionalvalidationRuntime schema validation options
Optionalrequests?: ValidationModeValidate outgoing requests against the bundled AdCP JSON schema before dispatch. Catches field-name drift at call-time instead of at storyboard-time.
strict: throw ValidationError with a JSON Pointer to the bad fieldwarn: log to debug logs and continueoff: skip the validator entirely (no overhead)Optionalresponses?: ValidationModeValidate incoming responses against the bundled AdCP JSON schema.
strict: fail the task with VALIDATION_ERRORwarn: log to debug logs and surface the task as successfuloff: skip the validator entirelyOverrides strictSchemaValidation when set.
OptionalstrictSchemaValidation?: booleanLegacy: fail tasks when response schema validation fails (default: true).
Superseded by responses above — retained for backward compat.
false maps to responses: 'warn' when responses isn't set.
OptionallogSchemaViolations?: booleanEmit schema validation violations to debug logs and the console (default: true). Set false when violations are surfaced through another structured channel.
OptionalfilterInvalidProducts?: booleanFilter out invalid products from get_products responses instead of rejecting the entire response (default: false)
When true: Each product in a get_products response is validated individually. Valid products are kept, invalid products are dropped, and the response is returned as long as it passes full schema validation after filtering. When false: The entire response is rejected if any product fails validation.
Only applies to get_products — all other tool responses use standard validation.
OptionalrejectProductsWithoutPricingOptions?: booleanReject products that arrive without a usable pricing_options[] array
from completed get_products responses (default: true).
pricing_options is a required, non-empty field in AdCP 3.1 — a product
that advertises no pricing model is non-transactable, so the SDK drops it
from the product list before callers and completion handlers see it. This
runs on every completion path (sync, polling, track, webhook) and is
independent of the response validation mode, so unpriced products are
removed even under responses: 'warn' | 'off'. The rejection is recorded
in result.metadata.productPricingPolicy and a
product_missing_pricing_options debug-log notice.
Set to false to pass products through untouched (e.g. when the caller
deliberately inspects malformed seller responses).
OptionalproductPropertyPolicy?: false | ClientProductPropertyPolicyBuyer-side property policy applied to completed get_products
responses before completion handlers and callers receive the product
list. A request-level property_list is enforced automatically by
default; set this to false only when the caller deliberately wants to
trust seller-side filtering without SDK verification.
Use this for brand/block-list rules such as excluding ladbible.com;
domain matching normalizes www. aliases, so www.ladbible.com
violates an exclusion for ladbible.com.
OptionalsupplyPathVerification?: ProductSupplyPathOptionsOpt in to computed, evidence-bearing external collection path annotations on product discovery.
OptionalgovernanceGovernance configuration for buyer-side campaign governance
OptionaltransportTransport-level safeguards. Applies to every call this client dispatches unless overridden at call time.
maxResponseBytes defaults to 4 MiB on every call; raise it for an agent
that legitimately publishes a large catalog, lower it when crawling
untrusted agents (registries, federated discovery layers), or set it to
exactly 0 to opt out of the cap entirely. A per-call transport
replaces this object wholesale rather than merging into it. Set
requestTimeoutMs to override the default 60s cap on A2A agent-card
discovery; use 0 to disable the SDK-imposed discovery timeout.
Configuration for CreativeAgentClient