@threadplane/chatFunctionv0.3.4

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 · required
unknown

Any thrown/rejected value.

Returns

boolean

true if it looks like an abort.