惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
小众软件
小众软件
T
Tailwind CSS Blog
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
罗磊的独立博客
有赞技术团队
有赞技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
量子位
云风的 BLOG
云风的 BLOG
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
美团技术团队

Chat SDK Documentation

History | Chat SDK History | Chat SDK List a vendor-official adapter | Chat SDK Approvals | Chat SDK Vercel Connect | Chat SDK Teams Low-Level APIs | Chat SDK CLI | Chat SDK Platform Adapters | Chat SDK State Adapters | Chat SDK Cards | Chat SDK Getting Started | Chat SDK Introduction | Chat SDK Modals | Chat SDK Slack Low-Level APIs | Chat SDK Streaming | Chat SDK Testing | Chat SDK Overview | Chat SDK toAiMessages | Chat SDK Cards | Chat SDK Markdown | Chat SDK Modals | Chat SDK AI SDK Tools | Chat SDK Types | Chat SDK Message Subject | Chat SDK Conversation History | Chat SDK Transcripts | Chat SDK Slack bot with Next.js and Redis Actions | Chat SDK Direct Messages | Chat SDK Emoji | Chat SDK
Overview | Chat SDK
Vercel · 2026-05-29 · via Chat SDK Documentation

API reference for the Chat SDK core package.

Complete API reference for the chat package. All exports are available from the top-level import:

import { Chat, root, paragraph, text, Card, Button, emoji } from "chat";
ExportDescription
ChatMain class — registers adapters, event handlers, and webhook routing
ThreadConversation thread with methods for posting, subscribing, and state
ChannelChannel/conversation container that holds threads
MessageNormalized message with text, AST, author, and metadata
ScheduledMessageReturned by thread.schedule() / channel.schedule() with cancel()
ExportDescription
PostableMessageUnion type accepted by thread.post()
PlanStep-by-step task list that mutates after posting
StreamingPlanWraps an async iterable with platform-specific streaming options
CardsRich card components — Card, Text, Button, Actions, etc.
MarkdownAST builder functions — root, paragraph, text, strong, etc.
ModalsModal form components — Modal, TextInput, Select, etc.

toAiMessages, createChatTools, and the supporting types live in the chat/ai subpath — see the AI section for the full reference.