Whether the SDK refused this request locally, before sending any of it.
Such errors carry dispatched: false: no bytes of the task's request left
this process, so the agent cannot have acted on it, and the failure says
nothing about the agent's health. The SDK sets the marker only on refusals it
decides by itself: request schema validation, the release and feature gates,
and the version refusals that follow already-known capabilities.
Failures that involve contacting the agent are never marked, even when the
task itself was not sent: endpoint discovery, OAuth token fetches, and the
get_adcp_capabilities fetch (including its v2 rejection). A refused
connection, a 5xx or a 429 there is an agent failure. Refusing to resume a
deferred task is not marked either, because the original task was sent.
This checks the property, not the class, so it also works when the error
crosses a bundle boundary where instanceof fails.
Whether the SDK refused this request locally, before sending any of it.
Such errors carry
dispatched: false: no bytes of the task's request left this process, so the agent cannot have acted on it, and the failure says nothing about the agent's health. The SDK sets the marker only on refusals it decides by itself: request schema validation, the release and feature gates, and the version refusals that follow already-known capabilities.Failures that involve contacting the agent are never marked, even when the task itself was not sent: endpoint discovery, OAuth token fetches, and the
get_adcp_capabilitiesfetch (including its v2 rejection). A refused connection, a 5xx or a 429 there is an agent failure. Refusing to resume a deferred task is not marked either, because the original task was sent.This checks the property, not the class, so it also works when the error crosses a bundle boundary where
instanceoffails.