UNPKG

ai

Version:

AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.

13 lines (12 loc) 389 B
/** * The operation-level outcome of a UI message stream. * * This is separate from model finish reasons and individual stream chunks. * Fatal stream-processing failures override outcomes declared by the stream * owner. */ export type UIMessageStreamOutcome = | { status: 'completed' } | { status: 'failed'; error?: unknown } | { status: 'aborted' } | { status: 'unknown' };