技巧

shadcn/helpers 发布 createChat,可脚本化 AI SDK 对话

精选理由

shadcn 新开源的工具 createChat 能帮你快速脚本化 AI 对话,支持推理和工具调用,测试组件很顺手。

shadcn 开源了 @shadcn/helpers 新包,包含 createChat 工具。它支持用 AI SDK 和 TanStack AI 脚本化用户与助手对话,并通过 useChat 运行。

正文

createChat 支持 reasoning、tool calls、data、files、sources 和 parts。可用于构建组件、预览、脚本演示和确定性测试。

原文 · AI SDK

Script conversations between a user and assistant using @​shadcn/helpers and AI SDK UI. shadcn @shadcn We’re open sourcing @​shadcn/helpers, a new package for small, focused utils to help you build and test components faster. Starting with `createChat` for AI SDK and TanStack AI. It lets you script a conversation between a user & assistant then run it through `useChat`. Your components receive native messages through the framework’s real streaming lifecycle. createChat supports reasoning, tool calls, data, files, sources and parts. Use it to build components, previews, scripted demos and deterministic tests. 🔗 View Quoted Tweet📊 2 ⚡

产业坐标与信源核验

本条情报归属 AITOP「技巧」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:shadcn/helpers、createChat、AI SDK、TanStack AI,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「AI SDK」(@aisdk),经 AITOP 多维评分管线结构化提炼。

发现摘要或翻译有误? 告诉我们