LanguageModelStreamPart
A union type in the AI SDK that describes streaming output chunks from a language model. Used by interfaces such as streamText and streamObject, it defines discriminated union types for text deltas, tool calls, finish events and related stream parts.
Timeline (last 90 days)
This update makes LanguageModelStreamPart stable while marking Experimental_LanguageModelStreamPart as deprecated.
LanguageModelStreamPart is a union type in AI SDK that describes the streaming output chunks of a language model.
LanguageModelStreamPart defines a discriminated union for streaming events (text deltas, tool calls, tool results, finish events, error events), letting TypeScript narrow to the specific chunk type based on the type field.
All Facts (3)
LanguageModelStreamPart is a union type in AI SDK that describes the streaming output chunks of a language model.
50%UnverifiedLanguageModelStreamPart defines a discriminated union for streaming events (text deltas, tool calls, tool results, finish events, error events), letting TypeScript narrow to the specific chunk type based on the type field.
50%UnverifiedThis update makes LanguageModelStreamPart stable while marking Experimental_LanguageModelStreamPart as deprecated.
50%