Expand description
AI SDK v6 compatible UI Message Stream protocol support.
Structs§
- AiSdk
Encoder - Stateful encoder for AI SDK v6 UI Message Stream protocol.
- AiSdk
V6History Encoder - AiSdk
V6Run Request - DataUI
Part - Custom data part.
- FileUI
Part - File attachment.
- ReasoningUI
Part - Reasoning part.
- Source
DocumentUI Part - Document source reference.
- Source
UrlUI Part - URL source reference.
- Step
StartUI Part - Step start marker.
- TextUI
Part - Text part.
- Tool
Approval - User approval details attached to a tool invocation part.
- ToolUI
Part - Tool invocation part.
- UIMessage
- A UI message with rich parts.
Enums§
- AiSdk
Trigger - Stream
State - Streaming state for UI parts.
- Tool
State - Tool execution state in UI.
- UIMessage
Part - A part of a UI message.
- UIRole
- Role in the conversation.
- UIStream
Event - Stream event types compatible with AI SDK v6.
Constants§
- AI_
SDK_ VERSION - Target AI SDK major version for this module.