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

推荐订阅源

Martin Fowler
Martin Fowler
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Vercel News
Vercel News
L
LangChain Blog
B
Blog RSS Feed
Y
Y Combinator Blog
IT之家
IT之家
H
Hackread – Cybersecurity News, Data Breaches, AI and More
GbyAI
GbyAI
V
V2EX
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
有赞技术团队
有赞技术团队
D
Docker
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
月光博客
月光博客

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.