[KongchangAI]
ConceptExperimental_LanguageModelStreamPart

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)

Oct 29

This update makes LanguageModelStreamPart stable while marking Experimental_LanguageModelStreamPart as deprecated.

Unverified50%
Oct 29

LanguageModelStreamPart is a union type in AI SDK that describes the streaming output chunks of a language model.

Unverified50%
Oct 29

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.

Unverified50%

All Facts (3)

Source Articles