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.
Task is progressing but not yet final. 'auth-required' and
'input-required' are paused states — the buyer must satisfy the paused
condition (refresh auth / supply input). A live A2A pause handled during
the initial exchange can expose a deferred.resume() closure bound to
the seller's task/context. Pauses observed later through tasks/get,
completed A2A artifacts, and MCP responses omit that closure: none has a
standard safe post-return continuation. Polling alone won't advance a
paused task.
OptionaldataOptionalerrorOptionaladcpOptionalerrorOptionalcorrelationOptionaldeferredPresent only for a safely resumable live A2A pause or explicit client deferral.
OptionalsubmittedSubmitted continuation (server needs time for processing)
Task is still progressing (working, submitted, input-required, deferred).