UNPKG

@mastra/core

Version:
14 lines • 792 B
/** The session was aborted or switched before a pending prompt could start. */ export declare class SessionStartupCancelledError extends Error { readonly code = "SESSION_STARTUP_CANCELLED"; constructor(); } /** Distinguish session cancellation from provider and transport AbortErrors. */ export declare function isSessionStartupCancelledError(error: unknown): error is SessionStartupCancelledError; /** A caller asked to resume a session that was never started and has no stored thread to recover from. */ export declare class SessionNotStartedError extends Error { readonly code = "SESSION_NOT_STARTED"; constructor(resourceId: string); } export declare function isSessionNotStartedError(error: unknown): error is SessionNotStartedError; //# sourceMappingURL=errors.d.ts.map