isAbortError
Whether raw represents an abort (a DOMException/Error named AbortError,
or an abort-ish message). Shared by the runtime adapters and toAgentError
so a user-requested stop settles to idle instead of surfacing as an error.
import { isAbortError } from '@threadplane/chat';Declaration · overload 1
export declare function isAbortError(raw: unknown): boolean;Parameters
raw· requiredunknownAny thrown/rejected value.
Returns
booleantrue if it looks like an abort.