streaming

Installation
Summary

Streaming protocol implementation guide for custom AI backends and assistant-ui integration.

  • Provides createAssistantStreamResponse for building custom streaming responses with text, tool calls, and structured event handling
  • Supports two integration paths: Vercel AI SDK (via toUIMessageStreamResponse) or native assistant-stream for non-SDK backends
  • Includes useLocalRuntime pattern for client-side streaming with ChatModelRunResult chunks and content part yielding
  • Covers stream event types (part-start, text-delta, result, step-finish, error) and debugging via AssistantStream and DataStreamDecoder
  • Documents common issues: Content-Type headers, CORS errors, tool call registration, and text-delta event requirements
SKILL.md

assistant-ui Streaming

Always consult assistant-ui.com/llms.txt for latest API.

The assistant-stream package handles streaming from AI backends.

References

When to Use

Using Vercel AI SDK?
├─ Yes → toUIMessageStreamResponse() (no assistant-stream needed)
└─ No → assistant-stream for custom backends
Related skills
Installs
1.5K
GitHub Stars
15
First Seen
Jan 21, 2026