OptionalgovernanceGovernance check result (present when governance is configured)
OptionalgovernanceGovernance outcome (present after successful execution with governance)
OptionalgovernanceError message when governance outcome reporting failed
OptionalconversationFull conversation history
Optionaldebug_Debug logs (if debug enabled)
OptionalmatchExhaustive pattern match on the result's status. Prefer this method
form — it autocompletes alongside the other TaskResult accessors.
The free function import('./match').match is also exported for compositional use (e.g., point-free style or when the result type is not yet narrowed).
Attached non-enumerably by the client when the result is returned
from executeTask. Results constructed by hand (e.g., in test
fixtures or custom middleware) will not have this method — use the
free function, or call attachMatch(result) first.
OptionaldataResponse payload with structured error details (adcp_error, context, ext)
Human-readable error message
OptionaladcpStructured AdCP error (code, recovery, suggestion, retryAfterMs)
OptionalerrorTyped ADCPError subclass instance, so callers can write
if (result.errorInstance instanceof IdempotencyConflictError) instead of
switching on adcpError.code strings. Present for:
IdempotencyConflictError,
IdempotencyExpiredError, AccountNotFoundError,
AccountSetupRequiredError, AccountPaymentRequiredError,
ActionNotAllowedError;AuthenticationRequiredError, including a
rejected signed request and AuthenticationCredentialsRejectedError for
a rejected static credential;ADCPError the agent's call threw.A NeedsAuthorizationError is kept only when its MCP OAuth requirements
were validated, for identifying when interactive authorization is
required. Absent otherwise. Seller-supplied fields on these errors (such as
challenge, oauthMetadata and responseBody) are untrusted text.
OptionalcorrelationCorrelation ID from the error response context, for tracing across agents
OptionaldeferredOptionalsubmitted
Task failed —
erroris always present.