Type Alias References

StreamChunk

Type Alias: StreamChunk

ts
type StreamChunk = AGUIEvent;

Defined in: packages/ai/src/types.ts:1667

Chunk returned by the SDK during streaming chat completions. Uses the AG-UI protocol event format.

For the tool-aware variant that narrows TOOL_CALL_START/TOOL_CALL_END events by tool name and CUSTOM events by tagged literal name, see TypedStreamChunk.