[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-chat-sdk":3,"mdc-5v9qm6-key":34,"related-repo-vercel-chat-sdk":3106,"related-org-vercel-chat-sdk":3212},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"chat-sdk","build multi-platform chatbots with Vercel","Vercel Chat SDK expert guidance. Use when building multi-platform chat bots — Slack, Telegram, Microsoft Teams, Discord, Google Chat, GitHub, Linear — with a single codebase. Covers the Chat class, adapters, threads, messages, cards, modals, streaming, state management, and webhook setup.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel","Vercel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel.png",[12,14,17,20],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Agents","agents",{"name":18,"slug":19,"type":13},"Messaging","messaging",{"name":21,"slug":22,"type":13},"SDK","sdk",226,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel-plugin","2026-04-06T18:56:26.921901",null,36,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Fchat-sdk","---\nname: chat-sdk\ndescription: Vercel Chat SDK expert guidance. Use when building multi-platform chat bots — Slack, Telegram, Microsoft Teams, Discord, Google Chat, GitHub, Linear — with a single codebase. Covers the Chat class, adapters, threads, messages, cards, modals, streaming, state management, and webhook setup.\nmetadata:\n  priority: 8\n  docs:\n    - \"https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\u002Fai-sdk-ui\u002Fchatbot\"\n    - \"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-chatbot\"\n  sitemap: \"https:\u002F\u002Fsdk.vercel.ai\u002Fsitemap.xml\"\n  pathPatterns:\n    - \"app\u002Fapi\u002Fchat\u002F**\"\n    - \"app\u002Fapi\u002Fchat-bot\u002F**\"\n    - \"app\u002Fapi\u002Fbot\u002F**\"\n    - \"app\u002Fapi\u002Fslack\u002F**\"\n    - \"app\u002Fapi\u002Fteams\u002F**\"\n    - \"app\u002Fapi\u002Fdiscord\u002F**\"\n    - \"app\u002Fapi\u002Fgchat\u002F**\"\n    - \"app\u002Fapi\u002Ftelegram\u002F**\"\n    - \"app\u002Fapi\u002Fgithub-bot\u002F**\"\n    - \"app\u002Fapi\u002Flinear-bot\u002F**\"\n    - \"app\u002Fapi\u002Fwebhooks\u002Fslack\u002F**\"\n    - \"app\u002Fapi\u002Fwebhooks\u002Fteams\u002F**\"\n    - \"app\u002Fapi\u002Fwebhooks\u002Fdiscord\u002F**\"\n    - \"app\u002Fapi\u002Fwebhooks\u002Fgchat\u002F**\"\n    - \"app\u002Fapi\u002Fwebhooks\u002Ftelegram\u002F**\"\n    - \"app\u002Fapi\u002Fwebhooks\u002Fgithub\u002F**\"\n    - \"app\u002Fapi\u002Fwebhooks\u002Flinear\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fchat\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fchat-bot\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fbot\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fslack\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fteams\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fdiscord\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Fgchat\u002F**\"\n    - \"src\u002Fapp\u002Fapi\u002Ftelegram\u002F**\"\n    - \"lib\u002Fbot.*\"\n    - \"lib\u002Fbot\u002F**\"\n    - \"src\u002Flib\u002Fbot.*\"\n    - \"src\u002Flib\u002Fbot\u002F**\"\n    - \"lib\u002Fchat-bot\u002F**\"\n    - \"src\u002Flib\u002Fchat-bot\u002F**\"\n    - \"bot\u002F**\"\n    - \"pages\u002Fapi\u002Fbot.*\"\n    - \"pages\u002Fapi\u002Fbot\u002F**\"\n    - \"src\u002Fpages\u002Fapi\u002Fbot.*\"\n    - \"src\u002Fpages\u002Fapi\u002Fbot\u002F**\"\n    - \"tests\u002F**\u002Fbot*\"\n    - \"test\u002F**\u002Fbot*\"\n    - \"fixtures\u002Freplay\u002F**\"\n    - \"apps\u002F*\u002Fapp\u002Fapi\u002Fbot\u002F**\"\n    - \"apps\u002F*\u002Fapp\u002Fapi\u002Fslack\u002F**\"\n    - \"apps\u002F*\u002Fapp\u002Fapi\u002Fteams\u002F**\"\n    - \"apps\u002F*\u002Fapp\u002Fapi\u002Fdiscord\u002F**\"\n    - \"apps\u002F*\u002Flib\u002Fbot\u002F**\"\n    - \"apps\u002F*\u002Fsrc\u002Flib\u002Fbot\u002F**\"\n  importPatterns:\n    - \"chat\"\n    - \"@chat-adapter\u002F*\"\n  bashPatterns:\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*\\bchat\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*\\bchat\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bchat\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*\\bchat\\b'\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002F'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002F'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002F'\n    - '\\byarn\\s+add\\s+[^\\n]*@chat-adapter\u002F'\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002Ftelegram'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002Ftelegram'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002Ftelegram'\n    - '\\byarn\\s+add\\s+[^\\n]*@chat-adapter\u002Ftelegram'\n  promptSignals:\n    phrases:\n      - \"chat sdk\"\n      - \"chat bot\"\n      - \"chatbot\"\n      - \"conversational interface\"\n      - \"slack bot\"\n      - \"telegram bot\"\n      - \"discord bot\"\n      - \"teams bot\"\n    allOf:\n      - [bot, platform]\n      - [bot, multi]\n    anyOf:\n      - \"onNewMention\"\n      - \"onSubscribedMessage\"\n      - \"chat adapter\"\n      - \"cross-platform bot\"\n    noneOf:\n      - \"useChat\"\n    minScore: 6\nretrieval:\n  aliases:\n    - chat ui\n    - chatbot\n    - conversation interface\n    - messaging component\n  intents:\n    - build chatbot\n    - add chat interface\n    - create messaging ui\n    - implement chat feature\n  entities:\n    - useChat\n    - Message\n    - ChatUI\n    - StreamingMessage\n    - chat-sdk\n  examples:\n    - build a chatbot interface\n    - add chat to my app\n    - create a messaging component\nchainTo:\n  -\n    pattern: 'from\\s+[''\"\"]openai[''\"\"]'\n    targetSkill: ai-sdk\n    message: 'Direct OpenAI SDK import in chat bot — loading AI SDK guidance for unified provider abstraction and streaming.'\n  -\n    pattern: 'from\\s+[''\\\"](slack-bolt|@slack\u002Fbolt|@slack\u002Fweb-api)[''\"]|require\\s*\\(\\s*[''\\\"](slack-bolt|@slack\u002Fbolt|@slack\u002Fweb-api)[''\"]|new\\s+App\\s*\\(\\s*\\{\\s*token'\n    targetSkill: chat-sdk\n    message: '@slack\u002Fbolt or @slack\u002Fweb-api detected — use the Chat SDK with @chat-adapter\u002Fslack instead for a unified multi-platform bot that works across Slack, Teams, Discord, Telegram, and more.'\n  -\n    pattern: 'from\\s+[''\\\"](discord\\.js|discord-api-types|telegram-bot-api|telegraf|grammy)[''\"]|require\\s*\\(\\s*[''\\\"](discord\\.js|telegraf|grammy)[''\"]'\n    targetSkill: chat-sdk\n    message: 'Platform-specific bot library detected — use the Chat SDK with the corresponding @chat-adapter\u002F* package for a unified multi-platform bot codebase.'\n  -\n    pattern: 'setTimeout\\s*\\(|setInterval\\s*\\(|while\\s*\\(\\s*true'\n    targetSkill: workflow\n    message: 'Long-running or polling logic in chat bot — loading Workflow DevKit for durable execution that survives deploys.'\n    skipIfFileContains: 'use workflow|from\\s+[''\"]workflow[''\"]'\n  -\n    pattern: 'process\\.env\\.(OPENAI_API_KEY|ANTHROPIC_API_KEY)|from\\s+[''\"]@ai-sdk\u002F(anthropic|openai)[''\"\"]'\n    targetSkill: ai-gateway\n    message: 'Direct provider API key in chat bot — loading AI Gateway guidance for OIDC auth and model routing.'\n    skipIfFileContains: 'gateway\\(|@ai-sdk\u002Fgateway'\n---\n\n# Chat SDK\n\nUnified TypeScript SDK for building chat bots across Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, and WhatsApp. Write bot logic once, deploy everywhere.\n\n## Start with published sources\n\nWhen Chat SDK is installed in a user project, inspect the published files that ship in `node_modules`:\n\n```\nnode_modules\u002Fchat\u002Fdocs\u002F                    # bundled docs\nnode_modules\u002Fchat\u002Fdist\u002Findex.d.ts          # core API types\nnode_modules\u002Fchat\u002Fdist\u002Fjsx-runtime.d.ts    # JSX runtime types\nnode_modules\u002Fchat\u002Fdocs\u002Fcontributing\u002F       # adapter-authoring docs\nnode_modules\u002Fchat\u002Fdocs\u002Fguides\u002F             # framework\u002Fplatform guides\n```\n\nIf one of the paths below does not exist, that package is not installed in the project yet.\n\nRead these before writing code:\n- `node_modules\u002Fchat\u002Fdocs\u002Fgetting-started.mdx` — install and setup\n- `node_modules\u002Fchat\u002Fdocs\u002Fusage.mdx` — `Chat` config and lifecycle\n- `node_modules\u002Fchat\u002Fdocs\u002Fhandling-events.mdx` — event routing and handlers\n- `node_modules\u002Fchat\u002Fdocs\u002Fthreads-messages-channels.mdx` — thread\u002Fchannel\u002Fmessage model\n- `node_modules\u002Fchat\u002Fdocs\u002Fposting-messages.mdx` — post, edit, delete, schedule\n- `node_modules\u002Fchat\u002Fdocs\u002Fstreaming.mdx` — AI SDK integration and streaming semantics\n- `node_modules\u002Fchat\u002Fdocs\u002Fcards.mdx` — JSX cards\n- `node_modules\u002Fchat\u002Fdocs\u002Factions.mdx` — button\u002Fselect interactions\n- `node_modules\u002Fchat\u002Fdocs\u002Fmodals.mdx` — modal submit\u002Fclose flows\n- `node_modules\u002Fchat\u002Fdocs\u002Fslash-commands.mdx` — slash command routing\n- `node_modules\u002Fchat\u002Fdocs\u002Fdirect-messages.mdx` — DM behavior and `openDM()`\n- `node_modules\u002Fchat\u002Fdocs\u002Ffiles.mdx` — attachments\u002Fuploads\n- `node_modules\u002Fchat\u002Fdocs\u002Fstate.mdx` — persistence, locking, dedupe\n- `node_modules\u002Fchat\u002Fdocs\u002Fadapters.mdx` — cross-platform feature matrix\n- `node_modules\u002Fchat\u002Fdocs\u002Fapi\u002Fchat.mdx` — exact `Chat` API\n- `node_modules\u002Fchat\u002Fdocs\u002Fapi\u002Fthread.mdx` — exact `Thread` API\n- `node_modules\u002Fchat\u002Fdocs\u002Fapi\u002Fmessage.mdx` — exact `Message` API\n- `node_modules\u002Fchat\u002Fdocs\u002Fapi\u002Fmodals.mdx` — modal element and event details\n\nFor the specific adapter or state package you are using, inspect that installed package's `dist\u002Findex.d.ts` export surface in `node_modules`.\n\n## Quick start\n\n```typescript\nimport { Chat } from \"chat\";\nimport { createSlackAdapter } from \"@chat-adapter\u002Fslack\";\nimport { createRedisState } from \"@chat-adapter\u002Fstate-redis\";\n\nconst bot = new Chat({\n  userName: \"mybot\",\n  adapters: {\n    slack: createSlackAdapter(),\n  },\n  state: createRedisState(),\n  dedupeTtlMs: 600_000,\n});\n\nbot.onNewMention(async (thread) => {\n  await thread.subscribe();\n  await thread.post(\"Hello! I'm listening to this thread.\");\n});\n\nbot.onSubscribedMessage(async (thread, message) => {\n  await thread.post(`You said: ${message.text}`);\n});\n```\n\n## Core concepts\n\n- **Chat** — main entry point; coordinates adapters, routing, locks, and state\n- **Adapters** — platform-specific integrations for Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, and WhatsApp\n- **State adapters** — persistence for subscriptions, locks, dedupe, and thread state\n- **Thread** — conversation context with `post()`, `stream()`, `subscribe()`, `setState()`, `startTyping()`\n- **Message** — normalized content with `text`, `formatted`, attachments, author info, and platform `raw`\n- **Channel** — container for threads and top-level posts\n\n## Event handlers\n\n| Handler | Trigger |\n|---------|---------|\n| `onNewMention` | Bot @-mentioned in an unsubscribed thread |\n| `onDirectMessage` | New DM in an unsubscribed DM thread |\n| `onSubscribedMessage` | Any message in a subscribed thread |\n| `onNewMessage(regex)` | Regex match in an unsubscribed thread |\n| `onReaction(emojis?)` | Emoji added or removed |\n| `onAction(actionIds?)` | Button clicks and select\u002Fradio interactions |\n| `onModalSubmit(callbackId?)` | Modal form submitted |\n| `onModalClose(callbackId?)` | Modal dismissed\u002Fcancelled |\n| `onSlashCommand(commands?)` | Slash command invocation |\n| `onAssistantThreadStarted` | Slack assistant thread opened |\n| `onAssistantContextChanged` | Slack assistant context changed |\n| `onAppHomeOpened` | Slack App Home opened |\n| `onMemberJoinedChannel` | Slack member joined channel event |\n\nRead `node_modules\u002Fchat\u002Fdocs\u002Fhandling-events.mdx`, `node_modules\u002Fchat\u002Fdocs\u002Factions.mdx`, `node_modules\u002Fchat\u002Fdocs\u002Fmodals.mdx`, and `node_modules\u002Fchat\u002Fdocs\u002Fslash-commands.mdx` before wiring handlers. `onDirectMessage` behavior is documented in `node_modules\u002Fchat\u002Fdocs\u002Fdirect-messages.mdx`.\n\n## Streaming\n\nPass any `AsyncIterable\u003Cstring>` to `thread.post()` or `thread.stream()`. For AI SDK, prefer `result.fullStream` over `result.textStream` when available so step boundaries are preserved.\n\n```typescript\nimport { ToolLoopAgent } from \"ai\";\n\nconst agent = new ToolLoopAgent({ model: \"anthropic\u002Fclaude-4.5-sonnet\" });\n\nbot.onNewMention(async (thread, message) => {\n  const result = await agent.stream({ prompt: message.text });\n  await thread.post(result.fullStream);\n});\n```\n\nKey details:\n- `streamingUpdateIntervalMs` controls post+edit fallback cadence\n- `fallbackStreamingPlaceholderText` defaults to `\"...\"`; set `null` to disable\n- Structured `StreamChunk` support is Slack-only; other adapters ignore non-text chunks\n\n## Cards and modals (JSX)\n\nSet `jsxImportSource: \"chat\"` in `tsconfig.json`.\n\nCard components:\n- `Card`, `CardText`, `Section`, `Fields`, `Field`, `Button`, `CardLink`, `LinkButton`, `Actions`, `Select`, `SelectOption`, `RadioSelect`, `Table`, `Image`, `Divider`\n\nModal components:\n- `Modal`, `TextInput`, `Select`, `SelectOption`, `RadioSelect`\n\n```tsx\nawait thread.post(\n  \u003CCard title=\"Order #1234\">\n    \u003CCardText>Your order has been received.\u003C\u002FCardText>\n    \u003CActions>\n      \u003CButton id=\"approve\" style=\"primary\">Approve\u003C\u002FButton>\n      \u003CButton id=\"reject\" style=\"danger\">Reject\u003C\u002FButton>\n    \u003C\u002FActions>\n  \u003C\u002FCard>\n);\n```\n\n## Adapter inventory\n\n### Official platform adapters\n\n| Platform | Package | Factory |\n|---------|---------|---------|\n| Slack | `@chat-adapter\u002Fslack` | `createSlackAdapter` |\n| Microsoft Teams | `@chat-adapter\u002Fteams` | `createTeamsAdapter` |\n| Google Chat | `@chat-adapter\u002Fgchat` | `createGoogleChatAdapter` |\n| Discord | `@chat-adapter\u002Fdiscord` | `createDiscordAdapter` |\n| GitHub | `@chat-adapter\u002Fgithub` | `createGitHubAdapter` |\n| Linear | `@chat-adapter\u002Flinear` | `createLinearAdapter` |\n| Telegram | `@chat-adapter\u002Ftelegram` | `createTelegramAdapter` |\n| WhatsApp Business Cloud | `@chat-adapter\u002Fwhatsapp` | `createWhatsAppAdapter` |\n\n### Official state adapters\n\n| State backend | Package | Factory |\n|--------------|---------|---------|\n| Redis | `@chat-adapter\u002Fstate-redis` | `createRedisState` |\n| ioredis | `@chat-adapter\u002Fstate-ioredis` | `createIoRedisState` |\n| PostgreSQL | `@chat-adapter\u002Fstate-pg` | `createPostgresState` |\n| Memory | `@chat-adapter\u002Fstate-memory` | `createMemoryState` |\n\n### Community adapters\n\n- `chat-state-cloudflare-do`\n- `@beeper\u002Fchat-adapter-matrix`\n- `chat-adapter-imessage`\n- `@bitbasti\u002Fchat-adapter-webex`\n- `@resend\u002Fchat-sdk-adapter`\n- `chat-adapter-baileys`\n\n### Coming-soon platform entries\n\n- Instagram\n- Signal\n- X\n- Messenger\n\n## Building a custom adapter\n\nRead these published docs first:\n- `node_modules\u002Fchat\u002Fdocs\u002Fcontributing\u002Fbuilding.mdx`\n- `node_modules\u002Fchat\u002Fdocs\u002Fcontributing\u002Ftesting.mdx`\n- `node_modules\u002Fchat\u002Fdocs\u002Fcontributing\u002Fpublishing.mdx`\n\nAlso inspect:\n- `node_modules\u002Fchat\u002Fdist\u002Findex.d.ts` — `Adapter` and related interfaces\n- `node_modules\u002F@chat-adapter\u002Fshared\u002Fdist\u002Findex.d.ts` — shared errors and utilities\n- Installed official adapter `dist\u002Findex.d.ts` files — reference implementations for config and APIs\n\nA custom adapter needs request verification, webhook parsing, message\u002Fthread\u002Fchannel operations, ID encoding\u002Fdecoding, and a format converter. Use `BaseFormatConverter` from `chat` and shared utilities from `@chat-adapter\u002Fshared`.\n\n## Webhook setup\n\nEach registered adapter exposes `bot.webhooks.\u003Cname>`. Wire those directly to your HTTP framework routes. See `node_modules\u002Fchat\u002Fdocs\u002Fguides\u002Fslack-nextjs.mdx` and `node_modules\u002Fchat\u002Fdocs\u002Fguides\u002Fdiscord-nuxt.mdx` for framework-specific route patterns.\n",{"data":35,"body":167},{"name":4,"description":6,"metadata":36,"retrieval":128,"chainTo":146},{"priority":37,"docs":38,"sitemap":41,"pathPatterns":42,"importPatterns":88,"bashPatterns":91,"promptSignals":104},8,[39,40],"https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\u002Fai-sdk-ui\u002Fchatbot","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-chatbot","https:\u002F\u002Fsdk.vercel.ai\u002Fsitemap.xml",[43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87],"app\u002Fapi\u002Fchat\u002F**","app\u002Fapi\u002Fchat-bot\u002F**","app\u002Fapi\u002Fbot\u002F**","app\u002Fapi\u002Fslack\u002F**","app\u002Fapi\u002Fteams\u002F**","app\u002Fapi\u002Fdiscord\u002F**","app\u002Fapi\u002Fgchat\u002F**","app\u002Fapi\u002Ftelegram\u002F**","app\u002Fapi\u002Fgithub-bot\u002F**","app\u002Fapi\u002Flinear-bot\u002F**","app\u002Fapi\u002Fwebhooks\u002Fslack\u002F**","app\u002Fapi\u002Fwebhooks\u002Fteams\u002F**","app\u002Fapi\u002Fwebhooks\u002Fdiscord\u002F**","app\u002Fapi\u002Fwebhooks\u002Fgchat\u002F**","app\u002Fapi\u002Fwebhooks\u002Ftelegram\u002F**","app\u002Fapi\u002Fwebhooks\u002Fgithub\u002F**","app\u002Fapi\u002Fwebhooks\u002Flinear\u002F**","src\u002Fapp\u002Fapi\u002Fchat\u002F**","src\u002Fapp\u002Fapi\u002Fchat-bot\u002F**","src\u002Fapp\u002Fapi\u002Fbot\u002F**","src\u002Fapp\u002Fapi\u002Fslack\u002F**","src\u002Fapp\u002Fapi\u002Fteams\u002F**","src\u002Fapp\u002Fapi\u002Fdiscord\u002F**","src\u002Fapp\u002Fapi\u002Fgchat\u002F**","src\u002Fapp\u002Fapi\u002Ftelegram\u002F**","lib\u002Fbot.*","lib\u002Fbot\u002F**","src\u002Flib\u002Fbot.*","src\u002Flib\u002Fbot\u002F**","lib\u002Fchat-bot\u002F**","src\u002Flib\u002Fchat-bot\u002F**","bot\u002F**","pages\u002Fapi\u002Fbot.*","pages\u002Fapi\u002Fbot\u002F**","src\u002Fpages\u002Fapi\u002Fbot.*","src\u002Fpages\u002Fapi\u002Fbot\u002F**","tests\u002F**\u002Fbot*","test\u002F**\u002Fbot*","fixtures\u002Freplay\u002F**","apps\u002F*\u002Fapp\u002Fapi\u002Fbot\u002F**","apps\u002F*\u002Fapp\u002Fapi\u002Fslack\u002F**","apps\u002F*\u002Fapp\u002Fapi\u002Fteams\u002F**","apps\u002F*\u002Fapp\u002Fapi\u002Fdiscord\u002F**","apps\u002F*\u002Flib\u002Fbot\u002F**","apps\u002F*\u002Fsrc\u002Flib\u002Fbot\u002F**",[89,90],"chat","@chat-adapter\u002F*",[92,93,94,95,96,97,98,99,100,101,102,103],"\\bnpm\\s+(install|i|add)\\s+[^\\n]*\\bchat\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*\\bchat\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bchat\\b","\\byarn\\s+add\\s+[^\\n]*\\bchat\\b","\\bnpm\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002F","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002F","\\bbun\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002F","\\byarn\\s+add\\s+[^\\n]*@chat-adapter\u002F","\\bnpm\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002Ftelegram","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002Ftelegram","\\bbun\\s+(install|i|add)\\s+[^\\n]*@chat-adapter\u002Ftelegram","\\byarn\\s+add\\s+[^\\n]*@chat-adapter\u002Ftelegram",{"phrases":105,"allOf":114,"anyOf":120,"noneOf":125,"minScore":127},[106,107,108,109,110,111,112,113],"chat sdk","chat bot","chatbot","conversational interface","slack bot","telegram bot","discord bot","teams bot",[115,118],[116,117],"bot","platform",[116,119],"multi",[121,122,123,124],"onNewMention","onSubscribedMessage","chat adapter","cross-platform bot",[126],"useChat",6,{"aliases":129,"intents":133,"entities":138,"examples":142},[130,108,131,132],"chat ui","conversation interface","messaging component",[134,135,136,137],"build chatbot","add chat interface","create messaging ui","implement chat feature",[126,139,140,141,4],"Message","ChatUI","StreamingMessage",[143,144,145],"build a chatbot interface","add chat to my app","create a messaging component",[147,151,154,157,162],{"pattern":148,"targetSkill":149,"message":150},"from\\s+['\"\"]openai['\"\"]","ai-sdk","Direct OpenAI SDK import in chat bot — loading AI SDK guidance for unified provider abstraction and streaming.",{"pattern":152,"targetSkill":4,"message":153},"from\\s+['\\\"](slack-bolt|@slack\u002Fbolt|@slack\u002Fweb-api)['\"]|require\\s*\\(\\s*['\\\"](slack-bolt|@slack\u002Fbolt|@slack\u002Fweb-api)['\"]|new\\s+App\\s*\\(\\s*\\{\\s*token","@slack\u002Fbolt or @slack\u002Fweb-api detected — use the Chat SDK with @chat-adapter\u002Fslack instead for a unified multi-platform bot that works across Slack, Teams, Discord, Telegram, and more.",{"pattern":155,"targetSkill":4,"message":156},"from\\s+['\\\"](discord\\.js|discord-api-types|telegram-bot-api|telegraf|grammy)['\"]|require\\s*\\(\\s*['\\\"](discord\\.js|telegraf|grammy)['\"]","Platform-specific bot library detected — use the Chat SDK with the corresponding @chat-adapter\u002F* package for a unified multi-platform bot codebase.",{"pattern":158,"targetSkill":159,"message":160,"skipIfFileContains":161},"setTimeout\\s*\\(|setInterval\\s*\\(|while\\s*\\(\\s*true","workflow","Long-running or polling logic in chat bot — loading Workflow DevKit for durable execution that survives deploys.","use workflow|from\\s+['\"]workflow['\"]",{"pattern":163,"targetSkill":164,"message":165,"skipIfFileContains":166},"process\\.env\\.(OPENAI_API_KEY|ANTHROPIC_API_KEY)|from\\s+['\"]@ai-sdk\u002F(anthropic|openai)['\"\"]","ai-gateway","Direct provider API key in chat bot — loading AI Gateway guidance for OIDC auth and model routing.","gateway\\(|@ai-sdk\u002Fgateway",{"type":168,"children":169},"root",[170,178,184,191,205,217,222,227,462,482,488,1127,1133,1249,1255,1502,1546,1552,1597,1915,1920,1974,1980,2000,2005,2115,2120,2157,2475,2481,2488,2722,2728,2856,2862,2919,2925,2948,2954,2959,2989,2994,3038,3065,3071,3100],{"type":171,"tag":172,"props":173,"children":174},"element","h1",{"id":4},[175],{"type":176,"value":177},"text","Chat SDK",{"type":171,"tag":179,"props":180,"children":181},"p",{},[182],{"type":176,"value":183},"Unified TypeScript SDK for building chat bots across Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, and WhatsApp. Write bot logic once, deploy everywhere.",{"type":171,"tag":185,"props":186,"children":188},"h2",{"id":187},"start-with-published-sources",[189],{"type":176,"value":190},"Start with published sources",{"type":171,"tag":179,"props":192,"children":193},{},[194,196,203],{"type":176,"value":195},"When Chat SDK is installed in a user project, inspect the published files that ship in ",{"type":171,"tag":197,"props":198,"children":200},"code",{"className":199},[],[201],{"type":176,"value":202},"node_modules",{"type":176,"value":204},":",{"type":171,"tag":206,"props":207,"children":211},"pre",{"className":208,"code":210,"language":176},[209],"language-text","node_modules\u002Fchat\u002Fdocs\u002F                    # bundled docs\nnode_modules\u002Fchat\u002Fdist\u002Findex.d.ts          # core API types\nnode_modules\u002Fchat\u002Fdist\u002Fjsx-runtime.d.ts    # JSX runtime types\nnode_modules\u002Fchat\u002Fdocs\u002Fcontributing\u002F       # adapter-authoring docs\nnode_modules\u002Fchat\u002Fdocs\u002Fguides\u002F             # framework\u002Fplatform guides\n",[212],{"type":171,"tag":197,"props":213,"children":215},{"__ignoreMap":214},"",[216],{"type":176,"value":210},{"type":171,"tag":179,"props":218,"children":219},{},[220],{"type":176,"value":221},"If one of the paths below does not exist, that package is not installed in the project yet.",{"type":171,"tag":179,"props":223,"children":224},{},[225],{"type":176,"value":226},"Read these before writing code:",{"type":171,"tag":228,"props":229,"children":230},"ul",{},[231,243,262,273,284,295,306,317,328,339,350,367,378,389,400,418,435,451],{"type":171,"tag":232,"props":233,"children":234},"li",{},[235,241],{"type":171,"tag":197,"props":236,"children":238},{"className":237},[],[239],{"type":176,"value":240},"node_modules\u002Fchat\u002Fdocs\u002Fgetting-started.mdx",{"type":176,"value":242}," — install and setup",{"type":171,"tag":232,"props":244,"children":245},{},[246,252,254,260],{"type":171,"tag":197,"props":247,"children":249},{"className":248},[],[250],{"type":176,"value":251},"node_modules\u002Fchat\u002Fdocs\u002Fusage.mdx",{"type":176,"value":253}," — ",{"type":171,"tag":197,"props":255,"children":257},{"className":256},[],[258],{"type":176,"value":259},"Chat",{"type":176,"value":261}," config and lifecycle",{"type":171,"tag":232,"props":263,"children":264},{},[265,271],{"type":171,"tag":197,"props":266,"children":268},{"className":267},[],[269],{"type":176,"value":270},"node_modules\u002Fchat\u002Fdocs\u002Fhandling-events.mdx",{"type":176,"value":272}," — event routing and handlers",{"type":171,"tag":232,"props":274,"children":275},{},[276,282],{"type":171,"tag":197,"props":277,"children":279},{"className":278},[],[280],{"type":176,"value":281},"node_modules\u002Fchat\u002Fdocs\u002Fthreads-messages-channels.mdx",{"type":176,"value":283}," — thread\u002Fchannel\u002Fmessage model",{"type":171,"tag":232,"props":285,"children":286},{},[287,293],{"type":171,"tag":197,"props":288,"children":290},{"className":289},[],[291],{"type":176,"value":292},"node_modules\u002Fchat\u002Fdocs\u002Fposting-messages.mdx",{"type":176,"value":294}," — post, edit, delete, schedule",{"type":171,"tag":232,"props":296,"children":297},{},[298,304],{"type":171,"tag":197,"props":299,"children":301},{"className":300},[],[302],{"type":176,"value":303},"node_modules\u002Fchat\u002Fdocs\u002Fstreaming.mdx",{"type":176,"value":305}," — AI SDK integration and streaming semantics",{"type":171,"tag":232,"props":307,"children":308},{},[309,315],{"type":171,"tag":197,"props":310,"children":312},{"className":311},[],[313],{"type":176,"value":314},"node_modules\u002Fchat\u002Fdocs\u002Fcards.mdx",{"type":176,"value":316}," — JSX cards",{"type":171,"tag":232,"props":318,"children":319},{},[320,326],{"type":171,"tag":197,"props":321,"children":323},{"className":322},[],[324],{"type":176,"value":325},"node_modules\u002Fchat\u002Fdocs\u002Factions.mdx",{"type":176,"value":327}," — button\u002Fselect interactions",{"type":171,"tag":232,"props":329,"children":330},{},[331,337],{"type":171,"tag":197,"props":332,"children":334},{"className":333},[],[335],{"type":176,"value":336},"node_modules\u002Fchat\u002Fdocs\u002Fmodals.mdx",{"type":176,"value":338}," — modal submit\u002Fclose flows",{"type":171,"tag":232,"props":340,"children":341},{},[342,348],{"type":171,"tag":197,"props":343,"children":345},{"className":344},[],[346],{"type":176,"value":347},"node_modules\u002Fchat\u002Fdocs\u002Fslash-commands.mdx",{"type":176,"value":349}," — slash command routing",{"type":171,"tag":232,"props":351,"children":352},{},[353,359,361],{"type":171,"tag":197,"props":354,"children":356},{"className":355},[],[357],{"type":176,"value":358},"node_modules\u002Fchat\u002Fdocs\u002Fdirect-messages.mdx",{"type":176,"value":360}," — DM behavior and ",{"type":171,"tag":197,"props":362,"children":364},{"className":363},[],[365],{"type":176,"value":366},"openDM()",{"type":171,"tag":232,"props":368,"children":369},{},[370,376],{"type":171,"tag":197,"props":371,"children":373},{"className":372},[],[374],{"type":176,"value":375},"node_modules\u002Fchat\u002Fdocs\u002Ffiles.mdx",{"type":176,"value":377}," — attachments\u002Fuploads",{"type":171,"tag":232,"props":379,"children":380},{},[381,387],{"type":171,"tag":197,"props":382,"children":384},{"className":383},[],[385],{"type":176,"value":386},"node_modules\u002Fchat\u002Fdocs\u002Fstate.mdx",{"type":176,"value":388}," — persistence, locking, dedupe",{"type":171,"tag":232,"props":390,"children":391},{},[392,398],{"type":171,"tag":197,"props":393,"children":395},{"className":394},[],[396],{"type":176,"value":397},"node_modules\u002Fchat\u002Fdocs\u002Fadapters.mdx",{"type":176,"value":399}," — cross-platform feature matrix",{"type":171,"tag":232,"props":401,"children":402},{},[403,409,411,416],{"type":171,"tag":197,"props":404,"children":406},{"className":405},[],[407],{"type":176,"value":408},"node_modules\u002Fchat\u002Fdocs\u002Fapi\u002Fchat.mdx",{"type":176,"value":410}," — exact ",{"type":171,"tag":197,"props":412,"children":414},{"className":413},[],[415],{"type":176,"value":259},{"type":176,"value":417}," API",{"type":171,"tag":232,"props":419,"children":420},{},[421,427,428,434],{"type":171,"tag":197,"props":422,"children":424},{"className":423},[],[425],{"type":176,"value":426},"node_modules\u002Fchat\u002Fdocs\u002Fapi\u002Fthread.mdx",{"type":176,"value":410},{"type":171,"tag":197,"props":429,"children":431},{"className":430},[],[432],{"type":176,"value":433},"Thread",{"type":176,"value":417},{"type":171,"tag":232,"props":436,"children":437},{},[438,444,445,450],{"type":171,"tag":197,"props":439,"children":441},{"className":440},[],[442],{"type":176,"value":443},"node_modules\u002Fchat\u002Fdocs\u002Fapi\u002Fmessage.mdx",{"type":176,"value":410},{"type":171,"tag":197,"props":446,"children":448},{"className":447},[],[449],{"type":176,"value":139},{"type":176,"value":417},{"type":171,"tag":232,"props":452,"children":453},{},[454,460],{"type":171,"tag":197,"props":455,"children":457},{"className":456},[],[458],{"type":176,"value":459},"node_modules\u002Fchat\u002Fdocs\u002Fapi\u002Fmodals.mdx",{"type":176,"value":461}," — modal element and event details",{"type":171,"tag":179,"props":463,"children":464},{},[465,467,473,475,480],{"type":176,"value":466},"For the specific adapter or state package you are using, inspect that installed package's ",{"type":171,"tag":197,"props":468,"children":470},{"className":469},[],[471],{"type":176,"value":472},"dist\u002Findex.d.ts",{"type":176,"value":474}," export surface in ",{"type":171,"tag":197,"props":476,"children":478},{"className":477},[],[479],{"type":176,"value":202},{"type":176,"value":481},".",{"type":171,"tag":185,"props":483,"children":485},{"id":484},"quick-start",[486],{"type":176,"value":487},"Quick start",{"type":171,"tag":206,"props":489,"children":493},{"className":490,"code":491,"language":492,"meta":214,"style":214},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Chat } from \"chat\";\nimport { createSlackAdapter } from \"@chat-adapter\u002Fslack\";\nimport { createRedisState } from \"@chat-adapter\u002Fstate-redis\";\n\nconst bot = new Chat({\n  userName: \"mybot\",\n  adapters: {\n    slack: createSlackAdapter(),\n  },\n  state: createRedisState(),\n  dedupeTtlMs: 600_000,\n});\n\nbot.onNewMention(async (thread) => {\n  await thread.subscribe();\n  await thread.post(\"Hello! I'm listening to this thread.\");\n});\n\nbot.onSubscribedMessage(async (thread, message) => {\n  await thread.post(`You said: ${message.text}`);\n});\n","typescript",[494],{"type":171,"tag":197,"props":495,"children":496},{"__ignoreMap":214},[497,551,593,635,645,685,716,734,759,768,793,816,834,842,891,922,968,984,992,1046,1111],{"type":171,"tag":498,"props":499,"children":502},"span",{"class":500,"line":501},"line",1,[503,509,515,521,526,531,536,541,546],{"type":171,"tag":498,"props":504,"children":506},{"style":505},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[507],{"type":176,"value":508},"import",{"type":171,"tag":498,"props":510,"children":512},{"style":511},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[513],{"type":176,"value":514}," {",{"type":171,"tag":498,"props":516,"children":518},{"style":517},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[519],{"type":176,"value":520}," Chat",{"type":171,"tag":498,"props":522,"children":523},{"style":511},[524],{"type":176,"value":525}," }",{"type":171,"tag":498,"props":527,"children":528},{"style":505},[529],{"type":176,"value":530}," from",{"type":171,"tag":498,"props":532,"children":533},{"style":511},[534],{"type":176,"value":535}," \"",{"type":171,"tag":498,"props":537,"children":539},{"style":538},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[540],{"type":176,"value":89},{"type":171,"tag":498,"props":542,"children":543},{"style":511},[544],{"type":176,"value":545},"\"",{"type":171,"tag":498,"props":547,"children":548},{"style":511},[549],{"type":176,"value":550},";\n",{"type":171,"tag":498,"props":552,"children":554},{"class":500,"line":553},2,[555,559,563,568,572,576,580,585,589],{"type":171,"tag":498,"props":556,"children":557},{"style":505},[558],{"type":176,"value":508},{"type":171,"tag":498,"props":560,"children":561},{"style":511},[562],{"type":176,"value":514},{"type":171,"tag":498,"props":564,"children":565},{"style":517},[566],{"type":176,"value":567}," createSlackAdapter",{"type":171,"tag":498,"props":569,"children":570},{"style":511},[571],{"type":176,"value":525},{"type":171,"tag":498,"props":573,"children":574},{"style":505},[575],{"type":176,"value":530},{"type":171,"tag":498,"props":577,"children":578},{"style":511},[579],{"type":176,"value":535},{"type":171,"tag":498,"props":581,"children":582},{"style":538},[583],{"type":176,"value":584},"@chat-adapter\u002Fslack",{"type":171,"tag":498,"props":586,"children":587},{"style":511},[588],{"type":176,"value":545},{"type":171,"tag":498,"props":590,"children":591},{"style":511},[592],{"type":176,"value":550},{"type":171,"tag":498,"props":594,"children":596},{"class":500,"line":595},3,[597,601,605,610,614,618,622,627,631],{"type":171,"tag":498,"props":598,"children":599},{"style":505},[600],{"type":176,"value":508},{"type":171,"tag":498,"props":602,"children":603},{"style":511},[604],{"type":176,"value":514},{"type":171,"tag":498,"props":606,"children":607},{"style":517},[608],{"type":176,"value":609}," createRedisState",{"type":171,"tag":498,"props":611,"children":612},{"style":511},[613],{"type":176,"value":525},{"type":171,"tag":498,"props":615,"children":616},{"style":505},[617],{"type":176,"value":530},{"type":171,"tag":498,"props":619,"children":620},{"style":511},[621],{"type":176,"value":535},{"type":171,"tag":498,"props":623,"children":624},{"style":538},[625],{"type":176,"value":626},"@chat-adapter\u002Fstate-redis",{"type":171,"tag":498,"props":628,"children":629},{"style":511},[630],{"type":176,"value":545},{"type":171,"tag":498,"props":632,"children":633},{"style":511},[634],{"type":176,"value":550},{"type":171,"tag":498,"props":636,"children":638},{"class":500,"line":637},4,[639],{"type":171,"tag":498,"props":640,"children":642},{"emptyLinePlaceholder":641},true,[643],{"type":176,"value":644},"\n",{"type":171,"tag":498,"props":646,"children":648},{"class":500,"line":647},5,[649,655,660,665,670,675,680],{"type":171,"tag":498,"props":650,"children":652},{"style":651},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[653],{"type":176,"value":654},"const",{"type":171,"tag":498,"props":656,"children":657},{"style":517},[658],{"type":176,"value":659}," bot ",{"type":171,"tag":498,"props":661,"children":662},{"style":511},[663],{"type":176,"value":664},"=",{"type":171,"tag":498,"props":666,"children":667},{"style":511},[668],{"type":176,"value":669}," new",{"type":171,"tag":498,"props":671,"children":673},{"style":672},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[674],{"type":176,"value":520},{"type":171,"tag":498,"props":676,"children":677},{"style":517},[678],{"type":176,"value":679},"(",{"type":171,"tag":498,"props":681,"children":682},{"style":511},[683],{"type":176,"value":684},"{\n",{"type":171,"tag":498,"props":686,"children":687},{"class":500,"line":127},[688,694,698,702,707,711],{"type":171,"tag":498,"props":689,"children":691},{"style":690},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[692],{"type":176,"value":693},"  userName",{"type":171,"tag":498,"props":695,"children":696},{"style":511},[697],{"type":176,"value":204},{"type":171,"tag":498,"props":699,"children":700},{"style":511},[701],{"type":176,"value":535},{"type":171,"tag":498,"props":703,"children":704},{"style":538},[705],{"type":176,"value":706},"mybot",{"type":171,"tag":498,"props":708,"children":709},{"style":511},[710],{"type":176,"value":545},{"type":171,"tag":498,"props":712,"children":713},{"style":511},[714],{"type":176,"value":715},",\n",{"type":171,"tag":498,"props":717,"children":719},{"class":500,"line":718},7,[720,725,729],{"type":171,"tag":498,"props":721,"children":722},{"style":690},[723],{"type":176,"value":724},"  adapters",{"type":171,"tag":498,"props":726,"children":727},{"style":511},[728],{"type":176,"value":204},{"type":171,"tag":498,"props":730,"children":731},{"style":511},[732],{"type":176,"value":733}," {\n",{"type":171,"tag":498,"props":735,"children":736},{"class":500,"line":37},[737,742,746,750,755],{"type":171,"tag":498,"props":738,"children":739},{"style":690},[740],{"type":176,"value":741},"    slack",{"type":171,"tag":498,"props":743,"children":744},{"style":511},[745],{"type":176,"value":204},{"type":171,"tag":498,"props":747,"children":748},{"style":672},[749],{"type":176,"value":567},{"type":171,"tag":498,"props":751,"children":752},{"style":517},[753],{"type":176,"value":754},"()",{"type":171,"tag":498,"props":756,"children":757},{"style":511},[758],{"type":176,"value":715},{"type":171,"tag":498,"props":760,"children":762},{"class":500,"line":761},9,[763],{"type":171,"tag":498,"props":764,"children":765},{"style":511},[766],{"type":176,"value":767},"  },\n",{"type":171,"tag":498,"props":769,"children":771},{"class":500,"line":770},10,[772,777,781,785,789],{"type":171,"tag":498,"props":773,"children":774},{"style":690},[775],{"type":176,"value":776},"  state",{"type":171,"tag":498,"props":778,"children":779},{"style":511},[780],{"type":176,"value":204},{"type":171,"tag":498,"props":782,"children":783},{"style":672},[784],{"type":176,"value":609},{"type":171,"tag":498,"props":786,"children":787},{"style":517},[788],{"type":176,"value":754},{"type":171,"tag":498,"props":790,"children":791},{"style":511},[792],{"type":176,"value":715},{"type":171,"tag":498,"props":794,"children":796},{"class":500,"line":795},11,[797,802,806,812],{"type":171,"tag":498,"props":798,"children":799},{"style":690},[800],{"type":176,"value":801},"  dedupeTtlMs",{"type":171,"tag":498,"props":803,"children":804},{"style":511},[805],{"type":176,"value":204},{"type":171,"tag":498,"props":807,"children":809},{"style":808},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[810],{"type":176,"value":811}," 600_000",{"type":171,"tag":498,"props":813,"children":814},{"style":511},[815],{"type":176,"value":715},{"type":171,"tag":498,"props":817,"children":819},{"class":500,"line":818},12,[820,825,830],{"type":171,"tag":498,"props":821,"children":822},{"style":511},[823],{"type":176,"value":824},"}",{"type":171,"tag":498,"props":826,"children":827},{"style":517},[828],{"type":176,"value":829},")",{"type":171,"tag":498,"props":831,"children":832},{"style":511},[833],{"type":176,"value":550},{"type":171,"tag":498,"props":835,"children":837},{"class":500,"line":836},13,[838],{"type":171,"tag":498,"props":839,"children":840},{"emptyLinePlaceholder":641},[841],{"type":176,"value":644},{"type":171,"tag":498,"props":843,"children":845},{"class":500,"line":844},14,[846,850,854,858,862,867,872,878,882,887],{"type":171,"tag":498,"props":847,"children":848},{"style":517},[849],{"type":176,"value":116},{"type":171,"tag":498,"props":851,"children":852},{"style":511},[853],{"type":176,"value":481},{"type":171,"tag":498,"props":855,"children":856},{"style":672},[857],{"type":176,"value":121},{"type":171,"tag":498,"props":859,"children":860},{"style":517},[861],{"type":176,"value":679},{"type":171,"tag":498,"props":863,"children":864},{"style":651},[865],{"type":176,"value":866},"async",{"type":171,"tag":498,"props":868,"children":869},{"style":511},[870],{"type":176,"value":871}," (",{"type":171,"tag":498,"props":873,"children":875},{"style":874},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[876],{"type":176,"value":877},"thread",{"type":171,"tag":498,"props":879,"children":880},{"style":511},[881],{"type":176,"value":829},{"type":171,"tag":498,"props":883,"children":884},{"style":651},[885],{"type":176,"value":886}," =>",{"type":171,"tag":498,"props":888,"children":889},{"style":511},[890],{"type":176,"value":733},{"type":171,"tag":498,"props":892,"children":894},{"class":500,"line":893},15,[895,900,905,909,914,918],{"type":171,"tag":498,"props":896,"children":897},{"style":505},[898],{"type":176,"value":899},"  await",{"type":171,"tag":498,"props":901,"children":902},{"style":517},[903],{"type":176,"value":904}," thread",{"type":171,"tag":498,"props":906,"children":907},{"style":511},[908],{"type":176,"value":481},{"type":171,"tag":498,"props":910,"children":911},{"style":672},[912],{"type":176,"value":913},"subscribe",{"type":171,"tag":498,"props":915,"children":916},{"style":690},[917],{"type":176,"value":754},{"type":171,"tag":498,"props":919,"children":920},{"style":511},[921],{"type":176,"value":550},{"type":171,"tag":498,"props":923,"children":925},{"class":500,"line":924},16,[926,930,934,938,943,947,951,956,960,964],{"type":171,"tag":498,"props":927,"children":928},{"style":505},[929],{"type":176,"value":899},{"type":171,"tag":498,"props":931,"children":932},{"style":517},[933],{"type":176,"value":904},{"type":171,"tag":498,"props":935,"children":936},{"style":511},[937],{"type":176,"value":481},{"type":171,"tag":498,"props":939,"children":940},{"style":672},[941],{"type":176,"value":942},"post",{"type":171,"tag":498,"props":944,"children":945},{"style":690},[946],{"type":176,"value":679},{"type":171,"tag":498,"props":948,"children":949},{"style":511},[950],{"type":176,"value":545},{"type":171,"tag":498,"props":952,"children":953},{"style":538},[954],{"type":176,"value":955},"Hello! I'm listening to this thread.",{"type":171,"tag":498,"props":957,"children":958},{"style":511},[959],{"type":176,"value":545},{"type":171,"tag":498,"props":961,"children":962},{"style":690},[963],{"type":176,"value":829},{"type":171,"tag":498,"props":965,"children":966},{"style":511},[967],{"type":176,"value":550},{"type":171,"tag":498,"props":969,"children":971},{"class":500,"line":970},17,[972,976,980],{"type":171,"tag":498,"props":973,"children":974},{"style":511},[975],{"type":176,"value":824},{"type":171,"tag":498,"props":977,"children":978},{"style":517},[979],{"type":176,"value":829},{"type":171,"tag":498,"props":981,"children":982},{"style":511},[983],{"type":176,"value":550},{"type":171,"tag":498,"props":985,"children":987},{"class":500,"line":986},18,[988],{"type":171,"tag":498,"props":989,"children":990},{"emptyLinePlaceholder":641},[991],{"type":176,"value":644},{"type":171,"tag":498,"props":993,"children":995},{"class":500,"line":994},19,[996,1000,1004,1008,1012,1016,1020,1024,1029,1034,1038,1042],{"type":171,"tag":498,"props":997,"children":998},{"style":517},[999],{"type":176,"value":116},{"type":171,"tag":498,"props":1001,"children":1002},{"style":511},[1003],{"type":176,"value":481},{"type":171,"tag":498,"props":1005,"children":1006},{"style":672},[1007],{"type":176,"value":122},{"type":171,"tag":498,"props":1009,"children":1010},{"style":517},[1011],{"type":176,"value":679},{"type":171,"tag":498,"props":1013,"children":1014},{"style":651},[1015],{"type":176,"value":866},{"type":171,"tag":498,"props":1017,"children":1018},{"style":511},[1019],{"type":176,"value":871},{"type":171,"tag":498,"props":1021,"children":1022},{"style":874},[1023],{"type":176,"value":877},{"type":171,"tag":498,"props":1025,"children":1026},{"style":511},[1027],{"type":176,"value":1028},",",{"type":171,"tag":498,"props":1030,"children":1031},{"style":874},[1032],{"type":176,"value":1033}," message",{"type":171,"tag":498,"props":1035,"children":1036},{"style":511},[1037],{"type":176,"value":829},{"type":171,"tag":498,"props":1039,"children":1040},{"style":651},[1041],{"type":176,"value":886},{"type":171,"tag":498,"props":1043,"children":1044},{"style":511},[1045],{"type":176,"value":733},{"type":171,"tag":498,"props":1047,"children":1049},{"class":500,"line":1048},20,[1050,1054,1058,1062,1066,1070,1075,1080,1085,1090,1094,1098,1103,1107],{"type":171,"tag":498,"props":1051,"children":1052},{"style":505},[1053],{"type":176,"value":899},{"type":171,"tag":498,"props":1055,"children":1056},{"style":517},[1057],{"type":176,"value":904},{"type":171,"tag":498,"props":1059,"children":1060},{"style":511},[1061],{"type":176,"value":481},{"type":171,"tag":498,"props":1063,"children":1064},{"style":672},[1065],{"type":176,"value":942},{"type":171,"tag":498,"props":1067,"children":1068},{"style":690},[1069],{"type":176,"value":679},{"type":171,"tag":498,"props":1071,"children":1072},{"style":511},[1073],{"type":176,"value":1074},"`",{"type":171,"tag":498,"props":1076,"children":1077},{"style":538},[1078],{"type":176,"value":1079},"You said: ",{"type":171,"tag":498,"props":1081,"children":1082},{"style":511},[1083],{"type":176,"value":1084},"${",{"type":171,"tag":498,"props":1086,"children":1087},{"style":517},[1088],{"type":176,"value":1089},"message",{"type":171,"tag":498,"props":1091,"children":1092},{"style":511},[1093],{"type":176,"value":481},{"type":171,"tag":498,"props":1095,"children":1096},{"style":517},[1097],{"type":176,"value":176},{"type":171,"tag":498,"props":1099,"children":1100},{"style":511},[1101],{"type":176,"value":1102},"}`",{"type":171,"tag":498,"props":1104,"children":1105},{"style":690},[1106],{"type":176,"value":829},{"type":171,"tag":498,"props":1108,"children":1109},{"style":511},[1110],{"type":176,"value":550},{"type":171,"tag":498,"props":1112,"children":1114},{"class":500,"line":1113},21,[1115,1119,1123],{"type":171,"tag":498,"props":1116,"children":1117},{"style":511},[1118],{"type":176,"value":824},{"type":171,"tag":498,"props":1120,"children":1121},{"style":517},[1122],{"type":176,"value":829},{"type":171,"tag":498,"props":1124,"children":1125},{"style":511},[1126],{"type":176,"value":550},{"type":171,"tag":185,"props":1128,"children":1130},{"id":1129},"core-concepts",[1131],{"type":176,"value":1132},"Core concepts",{"type":171,"tag":228,"props":1134,"children":1135},{},[1136,1146,1156,1166,1210,1239],{"type":171,"tag":232,"props":1137,"children":1138},{},[1139,1144],{"type":171,"tag":1140,"props":1141,"children":1142},"strong",{},[1143],{"type":176,"value":259},{"type":176,"value":1145}," — main entry point; coordinates adapters, routing, locks, and state",{"type":171,"tag":232,"props":1147,"children":1148},{},[1149,1154],{"type":171,"tag":1140,"props":1150,"children":1151},{},[1152],{"type":176,"value":1153},"Adapters",{"type":176,"value":1155}," — platform-specific integrations for Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, and WhatsApp",{"type":171,"tag":232,"props":1157,"children":1158},{},[1159,1164],{"type":171,"tag":1140,"props":1160,"children":1161},{},[1162],{"type":176,"value":1163},"State adapters",{"type":176,"value":1165}," — persistence for subscriptions, locks, dedupe, and thread state",{"type":171,"tag":232,"props":1167,"children":1168},{},[1169,1173,1175,1181,1183,1189,1190,1196,1197,1203,1204],{"type":171,"tag":1140,"props":1170,"children":1171},{},[1172],{"type":176,"value":433},{"type":176,"value":1174}," — conversation context with ",{"type":171,"tag":197,"props":1176,"children":1178},{"className":1177},[],[1179],{"type":176,"value":1180},"post()",{"type":176,"value":1182},", ",{"type":171,"tag":197,"props":1184,"children":1186},{"className":1185},[],[1187],{"type":176,"value":1188},"stream()",{"type":176,"value":1182},{"type":171,"tag":197,"props":1191,"children":1193},{"className":1192},[],[1194],{"type":176,"value":1195},"subscribe()",{"type":176,"value":1182},{"type":171,"tag":197,"props":1198,"children":1200},{"className":1199},[],[1201],{"type":176,"value":1202},"setState()",{"type":176,"value":1182},{"type":171,"tag":197,"props":1205,"children":1207},{"className":1206},[],[1208],{"type":176,"value":1209},"startTyping()",{"type":171,"tag":232,"props":1211,"children":1212},{},[1213,1217,1219,1224,1225,1231,1233],{"type":171,"tag":1140,"props":1214,"children":1215},{},[1216],{"type":176,"value":139},{"type":176,"value":1218}," — normalized content with ",{"type":171,"tag":197,"props":1220,"children":1222},{"className":1221},[],[1223],{"type":176,"value":176},{"type":176,"value":1182},{"type":171,"tag":197,"props":1226,"children":1228},{"className":1227},[],[1229],{"type":176,"value":1230},"formatted",{"type":176,"value":1232},", attachments, author info, and platform ",{"type":171,"tag":197,"props":1234,"children":1236},{"className":1235},[],[1237],{"type":176,"value":1238},"raw",{"type":171,"tag":232,"props":1240,"children":1241},{},[1242,1247],{"type":171,"tag":1140,"props":1243,"children":1244},{},[1245],{"type":176,"value":1246},"Channel",{"type":176,"value":1248}," — container for threads and top-level posts",{"type":171,"tag":185,"props":1250,"children":1252},{"id":1251},"event-handlers",[1253],{"type":176,"value":1254},"Event handlers",{"type":171,"tag":1256,"props":1257,"children":1258},"table",{},[1259,1278],{"type":171,"tag":1260,"props":1261,"children":1262},"thead",{},[1263],{"type":171,"tag":1264,"props":1265,"children":1266},"tr",{},[1267,1273],{"type":171,"tag":1268,"props":1269,"children":1270},"th",{},[1271],{"type":176,"value":1272},"Handler",{"type":171,"tag":1268,"props":1274,"children":1275},{},[1276],{"type":176,"value":1277},"Trigger",{"type":171,"tag":1279,"props":1280,"children":1281},"tbody",{},[1282,1299,1316,1332,1349,1366,1383,1400,1417,1434,1451,1468,1485],{"type":171,"tag":1264,"props":1283,"children":1284},{},[1285,1294],{"type":171,"tag":1286,"props":1287,"children":1288},"td",{},[1289],{"type":171,"tag":197,"props":1290,"children":1292},{"className":1291},[],[1293],{"type":176,"value":121},{"type":171,"tag":1286,"props":1295,"children":1296},{},[1297],{"type":176,"value":1298},"Bot @-mentioned in an unsubscribed thread",{"type":171,"tag":1264,"props":1300,"children":1301},{},[1302,1311],{"type":171,"tag":1286,"props":1303,"children":1304},{},[1305],{"type":171,"tag":197,"props":1306,"children":1308},{"className":1307},[],[1309],{"type":176,"value":1310},"onDirectMessage",{"type":171,"tag":1286,"props":1312,"children":1313},{},[1314],{"type":176,"value":1315},"New DM in an unsubscribed DM thread",{"type":171,"tag":1264,"props":1317,"children":1318},{},[1319,1327],{"type":171,"tag":1286,"props":1320,"children":1321},{},[1322],{"type":171,"tag":197,"props":1323,"children":1325},{"className":1324},[],[1326],{"type":176,"value":122},{"type":171,"tag":1286,"props":1328,"children":1329},{},[1330],{"type":176,"value":1331},"Any message in a subscribed thread",{"type":171,"tag":1264,"props":1333,"children":1334},{},[1335,1344],{"type":171,"tag":1286,"props":1336,"children":1337},{},[1338],{"type":171,"tag":197,"props":1339,"children":1341},{"className":1340},[],[1342],{"type":176,"value":1343},"onNewMessage(regex)",{"type":171,"tag":1286,"props":1345,"children":1346},{},[1347],{"type":176,"value":1348},"Regex match in an unsubscribed thread",{"type":171,"tag":1264,"props":1350,"children":1351},{},[1352,1361],{"type":171,"tag":1286,"props":1353,"children":1354},{},[1355],{"type":171,"tag":197,"props":1356,"children":1358},{"className":1357},[],[1359],{"type":176,"value":1360},"onReaction(emojis?)",{"type":171,"tag":1286,"props":1362,"children":1363},{},[1364],{"type":176,"value":1365},"Emoji added or removed",{"type":171,"tag":1264,"props":1367,"children":1368},{},[1369,1378],{"type":171,"tag":1286,"props":1370,"children":1371},{},[1372],{"type":171,"tag":197,"props":1373,"children":1375},{"className":1374},[],[1376],{"type":176,"value":1377},"onAction(actionIds?)",{"type":171,"tag":1286,"props":1379,"children":1380},{},[1381],{"type":176,"value":1382},"Button clicks and select\u002Fradio interactions",{"type":171,"tag":1264,"props":1384,"children":1385},{},[1386,1395],{"type":171,"tag":1286,"props":1387,"children":1388},{},[1389],{"type":171,"tag":197,"props":1390,"children":1392},{"className":1391},[],[1393],{"type":176,"value":1394},"onModalSubmit(callbackId?)",{"type":171,"tag":1286,"props":1396,"children":1397},{},[1398],{"type":176,"value":1399},"Modal form submitted",{"type":171,"tag":1264,"props":1401,"children":1402},{},[1403,1412],{"type":171,"tag":1286,"props":1404,"children":1405},{},[1406],{"type":171,"tag":197,"props":1407,"children":1409},{"className":1408},[],[1410],{"type":176,"value":1411},"onModalClose(callbackId?)",{"type":171,"tag":1286,"props":1413,"children":1414},{},[1415],{"type":176,"value":1416},"Modal dismissed\u002Fcancelled",{"type":171,"tag":1264,"props":1418,"children":1419},{},[1420,1429],{"type":171,"tag":1286,"props":1421,"children":1422},{},[1423],{"type":171,"tag":197,"props":1424,"children":1426},{"className":1425},[],[1427],{"type":176,"value":1428},"onSlashCommand(commands?)",{"type":171,"tag":1286,"props":1430,"children":1431},{},[1432],{"type":176,"value":1433},"Slash command invocation",{"type":171,"tag":1264,"props":1435,"children":1436},{},[1437,1446],{"type":171,"tag":1286,"props":1438,"children":1439},{},[1440],{"type":171,"tag":197,"props":1441,"children":1443},{"className":1442},[],[1444],{"type":176,"value":1445},"onAssistantThreadStarted",{"type":171,"tag":1286,"props":1447,"children":1448},{},[1449],{"type":176,"value":1450},"Slack assistant thread opened",{"type":171,"tag":1264,"props":1452,"children":1453},{},[1454,1463],{"type":171,"tag":1286,"props":1455,"children":1456},{},[1457],{"type":171,"tag":197,"props":1458,"children":1460},{"className":1459},[],[1461],{"type":176,"value":1462},"onAssistantContextChanged",{"type":171,"tag":1286,"props":1464,"children":1465},{},[1466],{"type":176,"value":1467},"Slack assistant context changed",{"type":171,"tag":1264,"props":1469,"children":1470},{},[1471,1480],{"type":171,"tag":1286,"props":1472,"children":1473},{},[1474],{"type":171,"tag":197,"props":1475,"children":1477},{"className":1476},[],[1478],{"type":176,"value":1479},"onAppHomeOpened",{"type":171,"tag":1286,"props":1481,"children":1482},{},[1483],{"type":176,"value":1484},"Slack App Home opened",{"type":171,"tag":1264,"props":1486,"children":1487},{},[1488,1497],{"type":171,"tag":1286,"props":1489,"children":1490},{},[1491],{"type":171,"tag":197,"props":1492,"children":1494},{"className":1493},[],[1495],{"type":176,"value":1496},"onMemberJoinedChannel",{"type":171,"tag":1286,"props":1498,"children":1499},{},[1500],{"type":176,"value":1501},"Slack member joined channel event",{"type":171,"tag":179,"props":1503,"children":1504},{},[1505,1507,1512,1513,1518,1519,1524,1526,1531,1533,1538,1540,1545],{"type":176,"value":1506},"Read ",{"type":171,"tag":197,"props":1508,"children":1510},{"className":1509},[],[1511],{"type":176,"value":270},{"type":176,"value":1182},{"type":171,"tag":197,"props":1514,"children":1516},{"className":1515},[],[1517],{"type":176,"value":325},{"type":176,"value":1182},{"type":171,"tag":197,"props":1520,"children":1522},{"className":1521},[],[1523],{"type":176,"value":336},{"type":176,"value":1525},", and ",{"type":171,"tag":197,"props":1527,"children":1529},{"className":1528},[],[1530],{"type":176,"value":347},{"type":176,"value":1532}," before wiring handlers. ",{"type":171,"tag":197,"props":1534,"children":1536},{"className":1535},[],[1537],{"type":176,"value":1310},{"type":176,"value":1539}," behavior is documented in ",{"type":171,"tag":197,"props":1541,"children":1543},{"className":1542},[],[1544],{"type":176,"value":358},{"type":176,"value":481},{"type":171,"tag":185,"props":1547,"children":1549},{"id":1548},"streaming",[1550],{"type":176,"value":1551},"Streaming",{"type":171,"tag":179,"props":1553,"children":1554},{},[1555,1557,1563,1565,1571,1573,1579,1581,1587,1589,1595],{"type":176,"value":1556},"Pass any ",{"type":171,"tag":197,"props":1558,"children":1560},{"className":1559},[],[1561],{"type":176,"value":1562},"AsyncIterable\u003Cstring>",{"type":176,"value":1564}," to ",{"type":171,"tag":197,"props":1566,"children":1568},{"className":1567},[],[1569],{"type":176,"value":1570},"thread.post()",{"type":176,"value":1572}," or ",{"type":171,"tag":197,"props":1574,"children":1576},{"className":1575},[],[1577],{"type":176,"value":1578},"thread.stream()",{"type":176,"value":1580},". For AI SDK, prefer ",{"type":171,"tag":197,"props":1582,"children":1584},{"className":1583},[],[1585],{"type":176,"value":1586},"result.fullStream",{"type":176,"value":1588}," over ",{"type":171,"tag":197,"props":1590,"children":1592},{"className":1591},[],[1593],{"type":176,"value":1594},"result.textStream",{"type":176,"value":1596}," when available so step boundaries are preserved.",{"type":171,"tag":206,"props":1598,"children":1600},{"className":490,"code":1599,"language":492,"meta":214,"style":214},"import { ToolLoopAgent } from \"ai\";\n\nconst agent = new ToolLoopAgent({ model: \"anthropic\u002Fclaude-4.5-sonnet\" });\n\nbot.onNewMention(async (thread, message) => {\n  const result = await agent.stream({ prompt: message.text });\n  await thread.post(result.fullStream);\n});\n",[1601],{"type":171,"tag":197,"props":1602,"children":1603},{"__ignoreMap":214},[1604,1645,1652,1719,1726,1777,1855,1900],{"type":171,"tag":498,"props":1605,"children":1606},{"class":500,"line":501},[1607,1611,1615,1620,1624,1628,1632,1637,1641],{"type":171,"tag":498,"props":1608,"children":1609},{"style":505},[1610],{"type":176,"value":508},{"type":171,"tag":498,"props":1612,"children":1613},{"style":511},[1614],{"type":176,"value":514},{"type":171,"tag":498,"props":1616,"children":1617},{"style":517},[1618],{"type":176,"value":1619}," ToolLoopAgent",{"type":171,"tag":498,"props":1621,"children":1622},{"style":511},[1623],{"type":176,"value":525},{"type":171,"tag":498,"props":1625,"children":1626},{"style":505},[1627],{"type":176,"value":530},{"type":171,"tag":498,"props":1629,"children":1630},{"style":511},[1631],{"type":176,"value":535},{"type":171,"tag":498,"props":1633,"children":1634},{"style":538},[1635],{"type":176,"value":1636},"ai",{"type":171,"tag":498,"props":1638,"children":1639},{"style":511},[1640],{"type":176,"value":545},{"type":171,"tag":498,"props":1642,"children":1643},{"style":511},[1644],{"type":176,"value":550},{"type":171,"tag":498,"props":1646,"children":1647},{"class":500,"line":553},[1648],{"type":171,"tag":498,"props":1649,"children":1650},{"emptyLinePlaceholder":641},[1651],{"type":176,"value":644},{"type":171,"tag":498,"props":1653,"children":1654},{"class":500,"line":595},[1655,1659,1664,1668,1672,1676,1680,1685,1690,1694,1698,1703,1707,1711,1715],{"type":171,"tag":498,"props":1656,"children":1657},{"style":651},[1658],{"type":176,"value":654},{"type":171,"tag":498,"props":1660,"children":1661},{"style":517},[1662],{"type":176,"value":1663}," agent ",{"type":171,"tag":498,"props":1665,"children":1666},{"style":511},[1667],{"type":176,"value":664},{"type":171,"tag":498,"props":1669,"children":1670},{"style":511},[1671],{"type":176,"value":669},{"type":171,"tag":498,"props":1673,"children":1674},{"style":672},[1675],{"type":176,"value":1619},{"type":171,"tag":498,"props":1677,"children":1678},{"style":517},[1679],{"type":176,"value":679},{"type":171,"tag":498,"props":1681,"children":1682},{"style":511},[1683],{"type":176,"value":1684},"{",{"type":171,"tag":498,"props":1686,"children":1687},{"style":690},[1688],{"type":176,"value":1689}," model",{"type":171,"tag":498,"props":1691,"children":1692},{"style":511},[1693],{"type":176,"value":204},{"type":171,"tag":498,"props":1695,"children":1696},{"style":511},[1697],{"type":176,"value":535},{"type":171,"tag":498,"props":1699,"children":1700},{"style":538},[1701],{"type":176,"value":1702},"anthropic\u002Fclaude-4.5-sonnet",{"type":171,"tag":498,"props":1704,"children":1705},{"style":511},[1706],{"type":176,"value":545},{"type":171,"tag":498,"props":1708,"children":1709},{"style":511},[1710],{"type":176,"value":525},{"type":171,"tag":498,"props":1712,"children":1713},{"style":517},[1714],{"type":176,"value":829},{"type":171,"tag":498,"props":1716,"children":1717},{"style":511},[1718],{"type":176,"value":550},{"type":171,"tag":498,"props":1720,"children":1721},{"class":500,"line":637},[1722],{"type":171,"tag":498,"props":1723,"children":1724},{"emptyLinePlaceholder":641},[1725],{"type":176,"value":644},{"type":171,"tag":498,"props":1727,"children":1728},{"class":500,"line":647},[1729,1733,1737,1741,1745,1749,1753,1757,1761,1765,1769,1773],{"type":171,"tag":498,"props":1730,"children":1731},{"style":517},[1732],{"type":176,"value":116},{"type":171,"tag":498,"props":1734,"children":1735},{"style":511},[1736],{"type":176,"value":481},{"type":171,"tag":498,"props":1738,"children":1739},{"style":672},[1740],{"type":176,"value":121},{"type":171,"tag":498,"props":1742,"children":1743},{"style":517},[1744],{"type":176,"value":679},{"type":171,"tag":498,"props":1746,"children":1747},{"style":651},[1748],{"type":176,"value":866},{"type":171,"tag":498,"props":1750,"children":1751},{"style":511},[1752],{"type":176,"value":871},{"type":171,"tag":498,"props":1754,"children":1755},{"style":874},[1756],{"type":176,"value":877},{"type":171,"tag":498,"props":1758,"children":1759},{"style":511},[1760],{"type":176,"value":1028},{"type":171,"tag":498,"props":1762,"children":1763},{"style":874},[1764],{"type":176,"value":1033},{"type":171,"tag":498,"props":1766,"children":1767},{"style":511},[1768],{"type":176,"value":829},{"type":171,"tag":498,"props":1770,"children":1771},{"style":651},[1772],{"type":176,"value":886},{"type":171,"tag":498,"props":1774,"children":1775},{"style":511},[1776],{"type":176,"value":733},{"type":171,"tag":498,"props":1778,"children":1779},{"class":500,"line":127},[1780,1785,1790,1795,1800,1805,1809,1814,1818,1822,1827,1831,1835,1839,1843,1847,1851],{"type":171,"tag":498,"props":1781,"children":1782},{"style":651},[1783],{"type":176,"value":1784},"  const",{"type":171,"tag":498,"props":1786,"children":1787},{"style":517},[1788],{"type":176,"value":1789}," result",{"type":171,"tag":498,"props":1791,"children":1792},{"style":511},[1793],{"type":176,"value":1794}," =",{"type":171,"tag":498,"props":1796,"children":1797},{"style":505},[1798],{"type":176,"value":1799}," await",{"type":171,"tag":498,"props":1801,"children":1802},{"style":517},[1803],{"type":176,"value":1804}," agent",{"type":171,"tag":498,"props":1806,"children":1807},{"style":511},[1808],{"type":176,"value":481},{"type":171,"tag":498,"props":1810,"children":1811},{"style":672},[1812],{"type":176,"value":1813},"stream",{"type":171,"tag":498,"props":1815,"children":1816},{"style":690},[1817],{"type":176,"value":679},{"type":171,"tag":498,"props":1819,"children":1820},{"style":511},[1821],{"type":176,"value":1684},{"type":171,"tag":498,"props":1823,"children":1824},{"style":690},[1825],{"type":176,"value":1826}," prompt",{"type":171,"tag":498,"props":1828,"children":1829},{"style":511},[1830],{"type":176,"value":204},{"type":171,"tag":498,"props":1832,"children":1833},{"style":517},[1834],{"type":176,"value":1033},{"type":171,"tag":498,"props":1836,"children":1837},{"style":511},[1838],{"type":176,"value":481},{"type":171,"tag":498,"props":1840,"children":1841},{"style":517},[1842],{"type":176,"value":176},{"type":171,"tag":498,"props":1844,"children":1845},{"style":511},[1846],{"type":176,"value":525},{"type":171,"tag":498,"props":1848,"children":1849},{"style":690},[1850],{"type":176,"value":829},{"type":171,"tag":498,"props":1852,"children":1853},{"style":511},[1854],{"type":176,"value":550},{"type":171,"tag":498,"props":1856,"children":1857},{"class":500,"line":718},[1858,1862,1866,1870,1874,1878,1883,1887,1892,1896],{"type":171,"tag":498,"props":1859,"children":1860},{"style":505},[1861],{"type":176,"value":899},{"type":171,"tag":498,"props":1863,"children":1864},{"style":517},[1865],{"type":176,"value":904},{"type":171,"tag":498,"props":1867,"children":1868},{"style":511},[1869],{"type":176,"value":481},{"type":171,"tag":498,"props":1871,"children":1872},{"style":672},[1873],{"type":176,"value":942},{"type":171,"tag":498,"props":1875,"children":1876},{"style":690},[1877],{"type":176,"value":679},{"type":171,"tag":498,"props":1879,"children":1880},{"style":517},[1881],{"type":176,"value":1882},"result",{"type":171,"tag":498,"props":1884,"children":1885},{"style":511},[1886],{"type":176,"value":481},{"type":171,"tag":498,"props":1888,"children":1889},{"style":517},[1890],{"type":176,"value":1891},"fullStream",{"type":171,"tag":498,"props":1893,"children":1894},{"style":690},[1895],{"type":176,"value":829},{"type":171,"tag":498,"props":1897,"children":1898},{"style":511},[1899],{"type":176,"value":550},{"type":171,"tag":498,"props":1901,"children":1902},{"class":500,"line":37},[1903,1907,1911],{"type":171,"tag":498,"props":1904,"children":1905},{"style":511},[1906],{"type":176,"value":824},{"type":171,"tag":498,"props":1908,"children":1909},{"style":517},[1910],{"type":176,"value":829},{"type":171,"tag":498,"props":1912,"children":1913},{"style":511},[1914],{"type":176,"value":550},{"type":171,"tag":179,"props":1916,"children":1917},{},[1918],{"type":176,"value":1919},"Key details:",{"type":171,"tag":228,"props":1921,"children":1922},{},[1923,1934,1961],{"type":171,"tag":232,"props":1924,"children":1925},{},[1926,1932],{"type":171,"tag":197,"props":1927,"children":1929},{"className":1928},[],[1930],{"type":176,"value":1931},"streamingUpdateIntervalMs",{"type":176,"value":1933}," controls post+edit fallback cadence",{"type":171,"tag":232,"props":1935,"children":1936},{},[1937,1943,1945,1951,1953,1959],{"type":171,"tag":197,"props":1938,"children":1940},{"className":1939},[],[1941],{"type":176,"value":1942},"fallbackStreamingPlaceholderText",{"type":176,"value":1944}," defaults to ",{"type":171,"tag":197,"props":1946,"children":1948},{"className":1947},[],[1949],{"type":176,"value":1950},"\"...\"",{"type":176,"value":1952},"; set ",{"type":171,"tag":197,"props":1954,"children":1956},{"className":1955},[],[1957],{"type":176,"value":1958},"null",{"type":176,"value":1960}," to disable",{"type":171,"tag":232,"props":1962,"children":1963},{},[1964,1966,1972],{"type":176,"value":1965},"Structured ",{"type":171,"tag":197,"props":1967,"children":1969},{"className":1968},[],[1970],{"type":176,"value":1971},"StreamChunk",{"type":176,"value":1973}," support is Slack-only; other adapters ignore non-text chunks",{"type":171,"tag":185,"props":1975,"children":1977},{"id":1976},"cards-and-modals-jsx",[1978],{"type":176,"value":1979},"Cards and modals (JSX)",{"type":171,"tag":179,"props":1981,"children":1982},{},[1983,1985,1991,1993,1999],{"type":176,"value":1984},"Set ",{"type":171,"tag":197,"props":1986,"children":1988},{"className":1987},[],[1989],{"type":176,"value":1990},"jsxImportSource: \"chat\"",{"type":176,"value":1992}," in ",{"type":171,"tag":197,"props":1994,"children":1996},{"className":1995},[],[1997],{"type":176,"value":1998},"tsconfig.json",{"type":176,"value":481},{"type":171,"tag":179,"props":2001,"children":2002},{},[2003],{"type":176,"value":2004},"Card components:",{"type":171,"tag":228,"props":2006,"children":2007},{},[2008],{"type":171,"tag":232,"props":2009,"children":2010},{},[2011,2017,2018,2024,2025,2031,2032,2038,2039,2045,2046,2052,2053,2059,2060,2066,2067,2073,2074,2080,2081,2087,2088,2094,2095,2101,2102,2108,2109],{"type":171,"tag":197,"props":2012,"children":2014},{"className":2013},[],[2015],{"type":176,"value":2016},"Card",{"type":176,"value":1182},{"type":171,"tag":197,"props":2019,"children":2021},{"className":2020},[],[2022],{"type":176,"value":2023},"CardText",{"type":176,"value":1182},{"type":171,"tag":197,"props":2026,"children":2028},{"className":2027},[],[2029],{"type":176,"value":2030},"Section",{"type":176,"value":1182},{"type":171,"tag":197,"props":2033,"children":2035},{"className":2034},[],[2036],{"type":176,"value":2037},"Fields",{"type":176,"value":1182},{"type":171,"tag":197,"props":2040,"children":2042},{"className":2041},[],[2043],{"type":176,"value":2044},"Field",{"type":176,"value":1182},{"type":171,"tag":197,"props":2047,"children":2049},{"className":2048},[],[2050],{"type":176,"value":2051},"Button",{"type":176,"value":1182},{"type":171,"tag":197,"props":2054,"children":2056},{"className":2055},[],[2057],{"type":176,"value":2058},"CardLink",{"type":176,"value":1182},{"type":171,"tag":197,"props":2061,"children":2063},{"className":2062},[],[2064],{"type":176,"value":2065},"LinkButton",{"type":176,"value":1182},{"type":171,"tag":197,"props":2068,"children":2070},{"className":2069},[],[2071],{"type":176,"value":2072},"Actions",{"type":176,"value":1182},{"type":171,"tag":197,"props":2075,"children":2077},{"className":2076},[],[2078],{"type":176,"value":2079},"Select",{"type":176,"value":1182},{"type":171,"tag":197,"props":2082,"children":2084},{"className":2083},[],[2085],{"type":176,"value":2086},"SelectOption",{"type":176,"value":1182},{"type":171,"tag":197,"props":2089,"children":2091},{"className":2090},[],[2092],{"type":176,"value":2093},"RadioSelect",{"type":176,"value":1182},{"type":171,"tag":197,"props":2096,"children":2098},{"className":2097},[],[2099],{"type":176,"value":2100},"Table",{"type":176,"value":1182},{"type":171,"tag":197,"props":2103,"children":2105},{"className":2104},[],[2106],{"type":176,"value":2107},"Image",{"type":176,"value":1182},{"type":171,"tag":197,"props":2110,"children":2112},{"className":2111},[],[2113],{"type":176,"value":2114},"Divider",{"type":171,"tag":179,"props":2116,"children":2117},{},[2118],{"type":176,"value":2119},"Modal components:",{"type":171,"tag":228,"props":2121,"children":2122},{},[2123],{"type":171,"tag":232,"props":2124,"children":2125},{},[2126,2132,2133,2139,2140,2145,2146,2151,2152],{"type":171,"tag":197,"props":2127,"children":2129},{"className":2128},[],[2130],{"type":176,"value":2131},"Modal",{"type":176,"value":1182},{"type":171,"tag":197,"props":2134,"children":2136},{"className":2135},[],[2137],{"type":176,"value":2138},"TextInput",{"type":176,"value":1182},{"type":171,"tag":197,"props":2141,"children":2143},{"className":2142},[],[2144],{"type":176,"value":2079},{"type":176,"value":1182},{"type":171,"tag":197,"props":2147,"children":2149},{"className":2148},[],[2150],{"type":176,"value":2086},{"type":176,"value":1182},{"type":171,"tag":197,"props":2153,"children":2155},{"className":2154},[],[2156],{"type":176,"value":2093},{"type":171,"tag":206,"props":2158,"children":2162},{"className":2159,"code":2160,"language":2161,"meta":214,"style":214},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","await thread.post(\n  \u003CCard title=\"Order #1234\">\n    \u003CCardText>Your order has been received.\u003C\u002FCardText>\n    \u003CActions>\n      \u003CButton id=\"approve\" style=\"primary\">Approve\u003C\u002FButton>\n      \u003CButton id=\"reject\" style=\"danger\">Reject\u003C\u002FButton>\n    \u003C\u002FActions>\n  \u003C\u002FCard>\n);\n","tsx",[2163],{"type":171,"tag":197,"props":2164,"children":2165},{"__ignoreMap":214},[2166,2191,2231,2266,2281,2358,2432,2448,2464],{"type":171,"tag":498,"props":2167,"children":2168},{"class":500,"line":501},[2169,2174,2178,2182,2186],{"type":171,"tag":498,"props":2170,"children":2171},{"style":505},[2172],{"type":176,"value":2173},"await",{"type":171,"tag":498,"props":2175,"children":2176},{"style":517},[2177],{"type":176,"value":904},{"type":171,"tag":498,"props":2179,"children":2180},{"style":511},[2181],{"type":176,"value":481},{"type":171,"tag":498,"props":2183,"children":2184},{"style":672},[2185],{"type":176,"value":942},{"type":171,"tag":498,"props":2187,"children":2188},{"style":517},[2189],{"type":176,"value":2190},"(\n",{"type":171,"tag":498,"props":2192,"children":2193},{"class":500,"line":553},[2194,2199,2204,2209,2213,2217,2222,2226],{"type":171,"tag":498,"props":2195,"children":2196},{"style":511},[2197],{"type":176,"value":2198},"  \u003C",{"type":171,"tag":498,"props":2200,"children":2202},{"style":2201},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[2203],{"type":176,"value":2016},{"type":171,"tag":498,"props":2205,"children":2206},{"style":651},[2207],{"type":176,"value":2208}," title",{"type":171,"tag":498,"props":2210,"children":2211},{"style":511},[2212],{"type":176,"value":664},{"type":171,"tag":498,"props":2214,"children":2215},{"style":511},[2216],{"type":176,"value":545},{"type":171,"tag":498,"props":2218,"children":2219},{"style":538},[2220],{"type":176,"value":2221},"Order #1234",{"type":171,"tag":498,"props":2223,"children":2224},{"style":511},[2225],{"type":176,"value":545},{"type":171,"tag":498,"props":2227,"children":2228},{"style":511},[2229],{"type":176,"value":2230},">\n",{"type":171,"tag":498,"props":2232,"children":2233},{"class":500,"line":595},[2234,2239,2243,2248,2253,2258,2262],{"type":171,"tag":498,"props":2235,"children":2236},{"style":511},[2237],{"type":176,"value":2238},"    \u003C",{"type":171,"tag":498,"props":2240,"children":2241},{"style":2201},[2242],{"type":176,"value":2023},{"type":171,"tag":498,"props":2244,"children":2245},{"style":511},[2246],{"type":176,"value":2247},">",{"type":171,"tag":498,"props":2249,"children":2250},{"style":517},[2251],{"type":176,"value":2252},"Your order has been received.",{"type":171,"tag":498,"props":2254,"children":2255},{"style":511},[2256],{"type":176,"value":2257},"\u003C\u002F",{"type":171,"tag":498,"props":2259,"children":2260},{"style":2201},[2261],{"type":176,"value":2023},{"type":171,"tag":498,"props":2263,"children":2264},{"style":511},[2265],{"type":176,"value":2230},{"type":171,"tag":498,"props":2267,"children":2268},{"class":500,"line":637},[2269,2273,2277],{"type":171,"tag":498,"props":2270,"children":2271},{"style":511},[2272],{"type":176,"value":2238},{"type":171,"tag":498,"props":2274,"children":2275},{"style":2201},[2276],{"type":176,"value":2072},{"type":171,"tag":498,"props":2278,"children":2279},{"style":511},[2280],{"type":176,"value":2230},{"type":171,"tag":498,"props":2282,"children":2283},{"class":500,"line":647},[2284,2289,2293,2298,2302,2306,2311,2315,2320,2324,2328,2333,2337,2341,2346,2350,2354],{"type":171,"tag":498,"props":2285,"children":2286},{"style":511},[2287],{"type":176,"value":2288},"      \u003C",{"type":171,"tag":498,"props":2290,"children":2291},{"style":2201},[2292],{"type":176,"value":2051},{"type":171,"tag":498,"props":2294,"children":2295},{"style":651},[2296],{"type":176,"value":2297}," id",{"type":171,"tag":498,"props":2299,"children":2300},{"style":511},[2301],{"type":176,"value":664},{"type":171,"tag":498,"props":2303,"children":2304},{"style":511},[2305],{"type":176,"value":545},{"type":171,"tag":498,"props":2307,"children":2308},{"style":538},[2309],{"type":176,"value":2310},"approve",{"type":171,"tag":498,"props":2312,"children":2313},{"style":511},[2314],{"type":176,"value":545},{"type":171,"tag":498,"props":2316,"children":2317},{"style":651},[2318],{"type":176,"value":2319}," style",{"type":171,"tag":498,"props":2321,"children":2322},{"style":511},[2323],{"type":176,"value":664},{"type":171,"tag":498,"props":2325,"children":2326},{"style":511},[2327],{"type":176,"value":545},{"type":171,"tag":498,"props":2329,"children":2330},{"style":538},[2331],{"type":176,"value":2332},"primary",{"type":171,"tag":498,"props":2334,"children":2335},{"style":511},[2336],{"type":176,"value":545},{"type":171,"tag":498,"props":2338,"children":2339},{"style":511},[2340],{"type":176,"value":2247},{"type":171,"tag":498,"props":2342,"children":2343},{"style":517},[2344],{"type":176,"value":2345},"Approve",{"type":171,"tag":498,"props":2347,"children":2348},{"style":511},[2349],{"type":176,"value":2257},{"type":171,"tag":498,"props":2351,"children":2352},{"style":2201},[2353],{"type":176,"value":2051},{"type":171,"tag":498,"props":2355,"children":2356},{"style":511},[2357],{"type":176,"value":2230},{"type":171,"tag":498,"props":2359,"children":2360},{"class":500,"line":127},[2361,2365,2369,2373,2377,2381,2386,2390,2394,2398,2402,2407,2411,2415,2420,2424,2428],{"type":171,"tag":498,"props":2362,"children":2363},{"style":511},[2364],{"type":176,"value":2288},{"type":171,"tag":498,"props":2366,"children":2367},{"style":2201},[2368],{"type":176,"value":2051},{"type":171,"tag":498,"props":2370,"children":2371},{"style":651},[2372],{"type":176,"value":2297},{"type":171,"tag":498,"props":2374,"children":2375},{"style":511},[2376],{"type":176,"value":664},{"type":171,"tag":498,"props":2378,"children":2379},{"style":511},[2380],{"type":176,"value":545},{"type":171,"tag":498,"props":2382,"children":2383},{"style":538},[2384],{"type":176,"value":2385},"reject",{"type":171,"tag":498,"props":2387,"children":2388},{"style":511},[2389],{"type":176,"value":545},{"type":171,"tag":498,"props":2391,"children":2392},{"style":651},[2393],{"type":176,"value":2319},{"type":171,"tag":498,"props":2395,"children":2396},{"style":511},[2397],{"type":176,"value":664},{"type":171,"tag":498,"props":2399,"children":2400},{"style":511},[2401],{"type":176,"value":545},{"type":171,"tag":498,"props":2403,"children":2404},{"style":538},[2405],{"type":176,"value":2406},"danger",{"type":171,"tag":498,"props":2408,"children":2409},{"style":511},[2410],{"type":176,"value":545},{"type":171,"tag":498,"props":2412,"children":2413},{"style":511},[2414],{"type":176,"value":2247},{"type":171,"tag":498,"props":2416,"children":2417},{"style":517},[2418],{"type":176,"value":2419},"Reject",{"type":171,"tag":498,"props":2421,"children":2422},{"style":511},[2423],{"type":176,"value":2257},{"type":171,"tag":498,"props":2425,"children":2426},{"style":2201},[2427],{"type":176,"value":2051},{"type":171,"tag":498,"props":2429,"children":2430},{"style":511},[2431],{"type":176,"value":2230},{"type":171,"tag":498,"props":2433,"children":2434},{"class":500,"line":718},[2435,2440,2444],{"type":171,"tag":498,"props":2436,"children":2437},{"style":511},[2438],{"type":176,"value":2439},"    \u003C\u002F",{"type":171,"tag":498,"props":2441,"children":2442},{"style":2201},[2443],{"type":176,"value":2072},{"type":171,"tag":498,"props":2445,"children":2446},{"style":511},[2447],{"type":176,"value":2230},{"type":171,"tag":498,"props":2449,"children":2450},{"class":500,"line":37},[2451,2456,2460],{"type":171,"tag":498,"props":2452,"children":2453},{"style":511},[2454],{"type":176,"value":2455},"  \u003C\u002F",{"type":171,"tag":498,"props":2457,"children":2458},{"style":2201},[2459],{"type":176,"value":2016},{"type":171,"tag":498,"props":2461,"children":2462},{"style":511},[2463],{"type":176,"value":2230},{"type":171,"tag":498,"props":2465,"children":2466},{"class":500,"line":761},[2467,2471],{"type":171,"tag":498,"props":2468,"children":2469},{"style":517},[2470],{"type":176,"value":829},{"type":171,"tag":498,"props":2472,"children":2473},{"style":511},[2474],{"type":176,"value":550},{"type":171,"tag":185,"props":2476,"children":2478},{"id":2477},"adapter-inventory",[2479],{"type":176,"value":2480},"Adapter inventory",{"type":171,"tag":2482,"props":2483,"children":2485},"h3",{"id":2484},"official-platform-adapters",[2486],{"type":176,"value":2487},"Official platform adapters",{"type":171,"tag":1256,"props":2489,"children":2490},{},[2491,2512],{"type":171,"tag":1260,"props":2492,"children":2493},{},[2494],{"type":171,"tag":1264,"props":2495,"children":2496},{},[2497,2502,2507],{"type":171,"tag":1268,"props":2498,"children":2499},{},[2500],{"type":176,"value":2501},"Platform",{"type":171,"tag":1268,"props":2503,"children":2504},{},[2505],{"type":176,"value":2506},"Package",{"type":171,"tag":1268,"props":2508,"children":2509},{},[2510],{"type":176,"value":2511},"Factory",{"type":171,"tag":1279,"props":2513,"children":2514},{},[2515,2540,2566,2592,2618,2644,2670,2696],{"type":171,"tag":1264,"props":2516,"children":2517},{},[2518,2523,2531],{"type":171,"tag":1286,"props":2519,"children":2520},{},[2521],{"type":176,"value":2522},"Slack",{"type":171,"tag":1286,"props":2524,"children":2525},{},[2526],{"type":171,"tag":197,"props":2527,"children":2529},{"className":2528},[],[2530],{"type":176,"value":584},{"type":171,"tag":1286,"props":2532,"children":2533},{},[2534],{"type":171,"tag":197,"props":2535,"children":2537},{"className":2536},[],[2538],{"type":176,"value":2539},"createSlackAdapter",{"type":171,"tag":1264,"props":2541,"children":2542},{},[2543,2548,2557],{"type":171,"tag":1286,"props":2544,"children":2545},{},[2546],{"type":176,"value":2547},"Microsoft Teams",{"type":171,"tag":1286,"props":2549,"children":2550},{},[2551],{"type":171,"tag":197,"props":2552,"children":2554},{"className":2553},[],[2555],{"type":176,"value":2556},"@chat-adapter\u002Fteams",{"type":171,"tag":1286,"props":2558,"children":2559},{},[2560],{"type":171,"tag":197,"props":2561,"children":2563},{"className":2562},[],[2564],{"type":176,"value":2565},"createTeamsAdapter",{"type":171,"tag":1264,"props":2567,"children":2568},{},[2569,2574,2583],{"type":171,"tag":1286,"props":2570,"children":2571},{},[2572],{"type":176,"value":2573},"Google Chat",{"type":171,"tag":1286,"props":2575,"children":2576},{},[2577],{"type":171,"tag":197,"props":2578,"children":2580},{"className":2579},[],[2581],{"type":176,"value":2582},"@chat-adapter\u002Fgchat",{"type":171,"tag":1286,"props":2584,"children":2585},{},[2586],{"type":171,"tag":197,"props":2587,"children":2589},{"className":2588},[],[2590],{"type":176,"value":2591},"createGoogleChatAdapter",{"type":171,"tag":1264,"props":2593,"children":2594},{},[2595,2600,2609],{"type":171,"tag":1286,"props":2596,"children":2597},{},[2598],{"type":176,"value":2599},"Discord",{"type":171,"tag":1286,"props":2601,"children":2602},{},[2603],{"type":171,"tag":197,"props":2604,"children":2606},{"className":2605},[],[2607],{"type":176,"value":2608},"@chat-adapter\u002Fdiscord",{"type":171,"tag":1286,"props":2610,"children":2611},{},[2612],{"type":171,"tag":197,"props":2613,"children":2615},{"className":2614},[],[2616],{"type":176,"value":2617},"createDiscordAdapter",{"type":171,"tag":1264,"props":2619,"children":2620},{},[2621,2626,2635],{"type":171,"tag":1286,"props":2622,"children":2623},{},[2624],{"type":176,"value":2625},"GitHub",{"type":171,"tag":1286,"props":2627,"children":2628},{},[2629],{"type":171,"tag":197,"props":2630,"children":2632},{"className":2631},[],[2633],{"type":176,"value":2634},"@chat-adapter\u002Fgithub",{"type":171,"tag":1286,"props":2636,"children":2637},{},[2638],{"type":171,"tag":197,"props":2639,"children":2641},{"className":2640},[],[2642],{"type":176,"value":2643},"createGitHubAdapter",{"type":171,"tag":1264,"props":2645,"children":2646},{},[2647,2652,2661],{"type":171,"tag":1286,"props":2648,"children":2649},{},[2650],{"type":176,"value":2651},"Linear",{"type":171,"tag":1286,"props":2653,"children":2654},{},[2655],{"type":171,"tag":197,"props":2656,"children":2658},{"className":2657},[],[2659],{"type":176,"value":2660},"@chat-adapter\u002Flinear",{"type":171,"tag":1286,"props":2662,"children":2663},{},[2664],{"type":171,"tag":197,"props":2665,"children":2667},{"className":2666},[],[2668],{"type":176,"value":2669},"createLinearAdapter",{"type":171,"tag":1264,"props":2671,"children":2672},{},[2673,2678,2687],{"type":171,"tag":1286,"props":2674,"children":2675},{},[2676],{"type":176,"value":2677},"Telegram",{"type":171,"tag":1286,"props":2679,"children":2680},{},[2681],{"type":171,"tag":197,"props":2682,"children":2684},{"className":2683},[],[2685],{"type":176,"value":2686},"@chat-adapter\u002Ftelegram",{"type":171,"tag":1286,"props":2688,"children":2689},{},[2690],{"type":171,"tag":197,"props":2691,"children":2693},{"className":2692},[],[2694],{"type":176,"value":2695},"createTelegramAdapter",{"type":171,"tag":1264,"props":2697,"children":2698},{},[2699,2704,2713],{"type":171,"tag":1286,"props":2700,"children":2701},{},[2702],{"type":176,"value":2703},"WhatsApp Business Cloud",{"type":171,"tag":1286,"props":2705,"children":2706},{},[2707],{"type":171,"tag":197,"props":2708,"children":2710},{"className":2709},[],[2711],{"type":176,"value":2712},"@chat-adapter\u002Fwhatsapp",{"type":171,"tag":1286,"props":2714,"children":2715},{},[2716],{"type":171,"tag":197,"props":2717,"children":2719},{"className":2718},[],[2720],{"type":176,"value":2721},"createWhatsAppAdapter",{"type":171,"tag":2482,"props":2723,"children":2725},{"id":2724},"official-state-adapters",[2726],{"type":176,"value":2727},"Official state adapters",{"type":171,"tag":1256,"props":2729,"children":2730},{},[2731,2750],{"type":171,"tag":1260,"props":2732,"children":2733},{},[2734],{"type":171,"tag":1264,"props":2735,"children":2736},{},[2737,2742,2746],{"type":171,"tag":1268,"props":2738,"children":2739},{},[2740],{"type":176,"value":2741},"State backend",{"type":171,"tag":1268,"props":2743,"children":2744},{},[2745],{"type":176,"value":2506},{"type":171,"tag":1268,"props":2747,"children":2748},{},[2749],{"type":176,"value":2511},{"type":171,"tag":1279,"props":2751,"children":2752},{},[2753,2778,2804,2830],{"type":171,"tag":1264,"props":2754,"children":2755},{},[2756,2761,2769],{"type":171,"tag":1286,"props":2757,"children":2758},{},[2759],{"type":176,"value":2760},"Redis",{"type":171,"tag":1286,"props":2762,"children":2763},{},[2764],{"type":171,"tag":197,"props":2765,"children":2767},{"className":2766},[],[2768],{"type":176,"value":626},{"type":171,"tag":1286,"props":2770,"children":2771},{},[2772],{"type":171,"tag":197,"props":2773,"children":2775},{"className":2774},[],[2776],{"type":176,"value":2777},"createRedisState",{"type":171,"tag":1264,"props":2779,"children":2780},{},[2781,2786,2795],{"type":171,"tag":1286,"props":2782,"children":2783},{},[2784],{"type":176,"value":2785},"ioredis",{"type":171,"tag":1286,"props":2787,"children":2788},{},[2789],{"type":171,"tag":197,"props":2790,"children":2792},{"className":2791},[],[2793],{"type":176,"value":2794},"@chat-adapter\u002Fstate-ioredis",{"type":171,"tag":1286,"props":2796,"children":2797},{},[2798],{"type":171,"tag":197,"props":2799,"children":2801},{"className":2800},[],[2802],{"type":176,"value":2803},"createIoRedisState",{"type":171,"tag":1264,"props":2805,"children":2806},{},[2807,2812,2821],{"type":171,"tag":1286,"props":2808,"children":2809},{},[2810],{"type":176,"value":2811},"PostgreSQL",{"type":171,"tag":1286,"props":2813,"children":2814},{},[2815],{"type":171,"tag":197,"props":2816,"children":2818},{"className":2817},[],[2819],{"type":176,"value":2820},"@chat-adapter\u002Fstate-pg",{"type":171,"tag":1286,"props":2822,"children":2823},{},[2824],{"type":171,"tag":197,"props":2825,"children":2827},{"className":2826},[],[2828],{"type":176,"value":2829},"createPostgresState",{"type":171,"tag":1264,"props":2831,"children":2832},{},[2833,2838,2847],{"type":171,"tag":1286,"props":2834,"children":2835},{},[2836],{"type":176,"value":2837},"Memory",{"type":171,"tag":1286,"props":2839,"children":2840},{},[2841],{"type":171,"tag":197,"props":2842,"children":2844},{"className":2843},[],[2845],{"type":176,"value":2846},"@chat-adapter\u002Fstate-memory",{"type":171,"tag":1286,"props":2848,"children":2849},{},[2850],{"type":171,"tag":197,"props":2851,"children":2853},{"className":2852},[],[2854],{"type":176,"value":2855},"createMemoryState",{"type":171,"tag":2482,"props":2857,"children":2859},{"id":2858},"community-adapters",[2860],{"type":176,"value":2861},"Community adapters",{"type":171,"tag":228,"props":2863,"children":2864},{},[2865,2874,2883,2892,2901,2910],{"type":171,"tag":232,"props":2866,"children":2867},{},[2868],{"type":171,"tag":197,"props":2869,"children":2871},{"className":2870},[],[2872],{"type":176,"value":2873},"chat-state-cloudflare-do",{"type":171,"tag":232,"props":2875,"children":2876},{},[2877],{"type":171,"tag":197,"props":2878,"children":2880},{"className":2879},[],[2881],{"type":176,"value":2882},"@beeper\u002Fchat-adapter-matrix",{"type":171,"tag":232,"props":2884,"children":2885},{},[2886],{"type":171,"tag":197,"props":2887,"children":2889},{"className":2888},[],[2890],{"type":176,"value":2891},"chat-adapter-imessage",{"type":171,"tag":232,"props":2893,"children":2894},{},[2895],{"type":171,"tag":197,"props":2896,"children":2898},{"className":2897},[],[2899],{"type":176,"value":2900},"@bitbasti\u002Fchat-adapter-webex",{"type":171,"tag":232,"props":2902,"children":2903},{},[2904],{"type":171,"tag":197,"props":2905,"children":2907},{"className":2906},[],[2908],{"type":176,"value":2909},"@resend\u002Fchat-sdk-adapter",{"type":171,"tag":232,"props":2911,"children":2912},{},[2913],{"type":171,"tag":197,"props":2914,"children":2916},{"className":2915},[],[2917],{"type":176,"value":2918},"chat-adapter-baileys",{"type":171,"tag":2482,"props":2920,"children":2922},{"id":2921},"coming-soon-platform-entries",[2923],{"type":176,"value":2924},"Coming-soon platform entries",{"type":171,"tag":228,"props":2926,"children":2927},{},[2928,2933,2938,2943],{"type":171,"tag":232,"props":2929,"children":2930},{},[2931],{"type":176,"value":2932},"Instagram",{"type":171,"tag":232,"props":2934,"children":2935},{},[2936],{"type":176,"value":2937},"Signal",{"type":171,"tag":232,"props":2939,"children":2940},{},[2941],{"type":176,"value":2942},"X",{"type":171,"tag":232,"props":2944,"children":2945},{},[2946],{"type":176,"value":2947},"Messenger",{"type":171,"tag":185,"props":2949,"children":2951},{"id":2950},"building-a-custom-adapter",[2952],{"type":176,"value":2953},"Building a custom adapter",{"type":171,"tag":179,"props":2955,"children":2956},{},[2957],{"type":176,"value":2958},"Read these published docs first:",{"type":171,"tag":228,"props":2960,"children":2961},{},[2962,2971,2980],{"type":171,"tag":232,"props":2963,"children":2964},{},[2965],{"type":171,"tag":197,"props":2966,"children":2968},{"className":2967},[],[2969],{"type":176,"value":2970},"node_modules\u002Fchat\u002Fdocs\u002Fcontributing\u002Fbuilding.mdx",{"type":171,"tag":232,"props":2972,"children":2973},{},[2974],{"type":171,"tag":197,"props":2975,"children":2977},{"className":2976},[],[2978],{"type":176,"value":2979},"node_modules\u002Fchat\u002Fdocs\u002Fcontributing\u002Ftesting.mdx",{"type":171,"tag":232,"props":2981,"children":2982},{},[2983],{"type":171,"tag":197,"props":2984,"children":2986},{"className":2985},[],[2987],{"type":176,"value":2988},"node_modules\u002Fchat\u002Fdocs\u002Fcontributing\u002Fpublishing.mdx",{"type":171,"tag":179,"props":2990,"children":2991},{},[2992],{"type":176,"value":2993},"Also inspect:",{"type":171,"tag":228,"props":2995,"children":2996},{},[2997,3015,3026],{"type":171,"tag":232,"props":2998,"children":2999},{},[3000,3006,3007,3013],{"type":171,"tag":197,"props":3001,"children":3003},{"className":3002},[],[3004],{"type":176,"value":3005},"node_modules\u002Fchat\u002Fdist\u002Findex.d.ts",{"type":176,"value":253},{"type":171,"tag":197,"props":3008,"children":3010},{"className":3009},[],[3011],{"type":176,"value":3012},"Adapter",{"type":176,"value":3014}," and related interfaces",{"type":171,"tag":232,"props":3016,"children":3017},{},[3018,3024],{"type":171,"tag":197,"props":3019,"children":3021},{"className":3020},[],[3022],{"type":176,"value":3023},"node_modules\u002F@chat-adapter\u002Fshared\u002Fdist\u002Findex.d.ts",{"type":176,"value":3025}," — shared errors and utilities",{"type":171,"tag":232,"props":3027,"children":3028},{},[3029,3031,3036],{"type":176,"value":3030},"Installed official adapter ",{"type":171,"tag":197,"props":3032,"children":3034},{"className":3033},[],[3035],{"type":176,"value":472},{"type":176,"value":3037}," files — reference implementations for config and APIs",{"type":171,"tag":179,"props":3039,"children":3040},{},[3041,3043,3049,3051,3056,3058,3064],{"type":176,"value":3042},"A custom adapter needs request verification, webhook parsing, message\u002Fthread\u002Fchannel operations, ID encoding\u002Fdecoding, and a format converter. Use ",{"type":171,"tag":197,"props":3044,"children":3046},{"className":3045},[],[3047],{"type":176,"value":3048},"BaseFormatConverter",{"type":176,"value":3050}," from ",{"type":171,"tag":197,"props":3052,"children":3054},{"className":3053},[],[3055],{"type":176,"value":89},{"type":176,"value":3057}," and shared utilities from ",{"type":171,"tag":197,"props":3059,"children":3061},{"className":3060},[],[3062],{"type":176,"value":3063},"@chat-adapter\u002Fshared",{"type":176,"value":481},{"type":171,"tag":185,"props":3066,"children":3068},{"id":3067},"webhook-setup",[3069],{"type":176,"value":3070},"Webhook setup",{"type":171,"tag":179,"props":3072,"children":3073},{},[3074,3076,3082,3084,3090,3092,3098],{"type":176,"value":3075},"Each registered adapter exposes ",{"type":171,"tag":197,"props":3077,"children":3079},{"className":3078},[],[3080],{"type":176,"value":3081},"bot.webhooks.\u003Cname>",{"type":176,"value":3083},". Wire those directly to your HTTP framework routes. See ",{"type":171,"tag":197,"props":3085,"children":3087},{"className":3086},[],[3088],{"type":176,"value":3089},"node_modules\u002Fchat\u002Fdocs\u002Fguides\u002Fslack-nextjs.mdx",{"type":176,"value":3091}," and ",{"type":171,"tag":197,"props":3093,"children":3095},{"className":3094},[],[3096],{"type":176,"value":3097},"node_modules\u002Fchat\u002Fdocs\u002Fguides\u002Fdiscord-nuxt.mdx",{"type":176,"value":3099}," for framework-specific route patterns.",{"type":171,"tag":3101,"props":3102,"children":3103},"style",{},[3104],{"type":176,"value":3105},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3107,"total":3211},[3108,3124,3144,3161,3178,3185,3200],{"slug":164,"name":164,"fn":3109,"description":3110,"org":3111,"tags":3112,"stars":23,"repoUrl":24,"updatedAt":3123},"configure and manage Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3113,3116,3119,3122],{"name":3114,"slug":3115,"type":13},"AI Infrastructure","ai-infrastructure",{"name":3117,"slug":3118,"type":13},"Cost Optimization","cost-optimization",{"name":3120,"slug":3121,"type":13},"LLM","llm",{"name":9,"slug":8,"type":13},"2026-04-06T18:56:06.57787",{"slug":3125,"name":3125,"fn":3126,"description":3127,"org":3128,"tags":3129,"stars":23,"repoUrl":24,"updatedAt":3143},"auth","integrate authentication in Next.js apps","Authentication integration guidance — Clerk (native Vercel Marketplace), Descope, and Auth0 setup for Next.js applications. Covers middleware auth patterns, sign-in\u002Fsign-up flows, and Marketplace provisioning. Use when implementing user authentication.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3130,3133,3136,3139,3142],{"name":3131,"slug":3132,"type":13},"Auth0","auth0",{"name":3134,"slug":3135,"type":13},"Authentication","authentication",{"name":3137,"slug":3138,"type":13},"Next.js","next-js",{"name":3140,"slug":3141,"type":13},"Security","security",{"name":9,"slug":8,"type":13},"2026-04-06T18:56:17.050565",{"slug":3145,"name":3145,"fn":3146,"description":3147,"org":3148,"tags":3149,"stars":23,"repoUrl":24,"updatedAt":3160},"bootstrap","bootstrap Vercel-linked repositories","Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db\u002Fdev commands happen in the correct safe order.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3150,3153,3156,3159],{"name":3151,"slug":3152,"type":13},"Configuration","configuration",{"name":3154,"slug":3155,"type":13},"Deployment","deployment",{"name":3157,"slug":3158,"type":13},"Local Development","local-development",{"name":9,"slug":8,"type":13},"2026-04-06T18:56:18.297868",{"slug":3162,"name":3162,"fn":3163,"description":3164,"org":3165,"tags":3166,"stars":23,"repoUrl":24,"updatedAt":3177},"cdn-caching","debug Vercel CDN caching behavior","Debug Vercel CDN caching — cache hit rate, stale content, revalidation behavior, ISR + PPR, per-request cache reasons (cacheReason) and PPR state (ppr_state), and costs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3167,3170,3173,3176],{"name":3168,"slug":3169,"type":13},"Caching","caching",{"name":3171,"slug":3172,"type":13},"Observability","observability",{"name":3174,"slug":3175,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-07-30T05:31:34.628944",{"slug":4,"name":4,"fn":5,"description":6,"org":3179,"tags":3180,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3181,3182,3183,3184],{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},{"name":21,"slug":22,"type":13},{"name":9,"slug":8,"type":13},{"slug":3186,"name":3186,"fn":3187,"description":3188,"org":3189,"tags":3190,"stars":23,"repoUrl":24,"updatedAt":3199},"deployments-cicd","manage Vercel deployments and CI\u002FCD","Vercel deployment and CI\u002FCD expert guidance. Use when deploying, promoting, rolling back, inspecting deployments, building with --prebuilt, or configuring CI workflow files for Vercel.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3191,3194,3195,3198],{"name":3192,"slug":3193,"type":13},"CI\u002FCD","ci-cd",{"name":3154,"slug":3155,"type":13},{"name":3196,"slug":3197,"type":13},"Operations","operations",{"name":9,"slug":8,"type":13},"2026-04-06T18:56:22.054263",{"slug":3201,"name":3201,"fn":3202,"description":3203,"org":3204,"tags":3205,"stars":23,"repoUrl":24,"updatedAt":3210},"env-vars","manage Vercel environment variables","Vercel environment variable expert guidance. Use when working with .env files, vercel env commands, OIDC tokens, or managing environment-specific configuration.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3206,3207,3208,3209],{"name":3151,"slug":3152,"type":13},{"name":3196,"slug":3197,"type":13},{"name":3140,"slug":3141,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:56:28.150777",29,{"items":3213,"total":3375},[3214,3232,3244,3261,3272,3285,3300,3314,3326,3345,3355,3365],{"slug":3215,"name":3215,"fn":3216,"description":3217,"org":3218,"tags":3219,"stars":3229,"repoUrl":3230,"updatedAt":3231},"next-cache-components-adoption","enable and migrate to Next.js Cache Components","Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender \u002F instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3220,3221,3224,3227,3228],{"name":3168,"slug":3169,"type":13},{"name":3222,"slug":3223,"type":13},"Frontend","frontend",{"name":3225,"slug":3226,"type":13},"Migration","migration",{"name":3137,"slug":3138,"type":13},{"name":9,"slug":8,"type":13},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":3233,"name":3233,"fn":3234,"description":3235,"org":3236,"tags":3237,"stars":3229,"repoUrl":3230,"updatedAt":3243},"next-cache-components-optimizer","optimize Next.js cache components","Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components \u002F PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next\u002Fplaywright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered\u002Fserved\u002Fprefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3238,3239,3240,3241,3242],{"name":3168,"slug":3169,"type":13},{"name":3222,"slug":3223,"type":13},{"name":3137,"slug":3138,"type":13},{"name":3174,"slug":3175,"type":13},{"name":9,"slug":8,"type":13},"2026-07-30T05:31:10.674078",{"slug":3245,"name":3245,"fn":3246,"description":3247,"org":3248,"tags":3249,"stars":3229,"repoUrl":3230,"updatedAt":3260},"next-dev-loop","verify Next.js runtime behavior","Verify Next.js runtime behavior after editing app code. Use this skill to confirm a change actually works in a running app — not just that it compiles or type-checks. Combines \u002F_next\u002Fmcp (Next.js's view) with agent-browser (the browser's view). Requires a running `next dev`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3250,3253,3254,3255,3256,3257],{"name":3251,"slug":3252,"type":13},"Debugging","debugging",{"name":3222,"slug":3223,"type":13},{"name":3157,"slug":3158,"type":13},{"name":3137,"slug":3138,"type":13},{"name":9,"slug":8,"type":13},{"name":3258,"slug":3259,"type":13},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":3262,"name":3262,"fn":3263,"description":3264,"org":3265,"tags":3266,"stars":3229,"repoUrl":3230,"updatedAt":3271},"next-partial-prefetching-adoption","adopt Partial Prefetching in Next.js apps","Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the `partialPrefetching` flag, opt routes in with `export const prefetch = 'partial'`, audit `\u003CLink prefetch={true}>` calls, or resolve the link-prefetch-partial and instant-shell-url-data insights.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3267,3268,3269,3270],{"name":3222,"slug":3223,"type":13},{"name":3137,"slug":3138,"type":13},{"name":3174,"slug":3175,"type":13},{"name":9,"slug":8,"type":13},"2026-07-30T05:31:11.591864",{"slug":3273,"name":3273,"fn":3274,"description":3275,"org":3276,"tags":3277,"stars":3282,"repoUrl":3283,"updatedAt":3284},"turborepo","manage monorepos with Turborepo","Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \"turbo\" CLI, --filter, --affected, CI optimization, environment\nvariables, internal packages, monorepo structure\u002Fbest practices, and boundaries.\n\nUse when user: configures tasks\u002Fworkflows\u002Fpipelines, creates packages, sets up\nmonorepo, shares code between apps, runs changed\u002Faffected packages, debugs cache,\nor has apps\u002Fpackages directories.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3278,3279,3280],{"name":3192,"slug":3193,"type":13},{"name":3174,"slug":3175,"type":13},{"name":3281,"slug":3273,"type":13},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":3286,"name":3286,"fn":3287,"description":3288,"org":3289,"tags":3290,"stars":3297,"repoUrl":3298,"updatedAt":3299},"add-function-examples","add AI function examples for testing","Guide for adding new AI function examples, for testing specific features against the actual provider APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3291,3293,3296],{"name":3292,"slug":149,"type":13},"AI SDK",{"name":3294,"slug":3295,"type":13},"Testing","testing",{"name":9,"slug":8,"type":13},25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-04-06T18:55:51.318866",{"slug":3301,"name":3301,"fn":3302,"description":3303,"org":3304,"tags":3305,"stars":3297,"repoUrl":3298,"updatedAt":3313},"add-harness-package","add AI SDK harness packages","Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk\u002Fharness-\u003Cname> package that adapts a coding-agent runtime to HarnessV1.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3306,3307,3308,3311,3312],{"name":15,"slug":16,"type":13},{"name":3292,"slug":149,"type":13},{"name":3309,"slug":3310,"type":13},"Harness","harness",{"name":21,"slug":22,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:29:19.858737",{"slug":3315,"name":3315,"fn":3316,"description":3317,"org":3318,"tags":3319,"stars":3297,"repoUrl":3298,"updatedAt":3325},"add-provider-package","add new provider packages to AI SDK","Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3320,3321,3324],{"name":3292,"slug":149,"type":13},{"name":3322,"slug":3323,"type":13},"API Development","api-development",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:47.45549",{"slug":3327,"name":3327,"fn":3328,"description":3329,"org":3330,"tags":3331,"stars":3297,"repoUrl":3298,"updatedAt":3344},"adr-skill","create and maintain architecture decision records","Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept\u002Freject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3332,3335,3338,3341],{"name":3333,"slug":3334,"type":13},"ADR","adr",{"name":3336,"slug":3337,"type":13},"Architecture","architecture",{"name":3339,"slug":3340,"type":13},"Documentation","documentation",{"name":3342,"slug":3343,"type":13},"Engineering","engineering","2026-04-06T18:55:50.043694",{"slug":149,"name":149,"fn":3346,"description":3347,"org":3348,"tags":3349,"stars":3297,"repoUrl":3298,"updatedAt":3354},"build AI features with Vercel AI SDK","Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: \"AI SDK\", \"Vercel AI SDK\", \"generateText\", \"streamText\", \"add AI to my app\", \"build an agent\", \"tool calling\", \"structured output\", \"useChat\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3350,3351,3352,3353],{"name":15,"slug":16,"type":13},{"name":3292,"slug":149,"type":13},{"name":3120,"slug":3121,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:48.739463",{"slug":3356,"name":3356,"fn":3357,"description":3358,"org":3359,"tags":3360,"stars":3297,"repoUrl":3298,"updatedAt":3364},"capture-api-response-test-fixture","capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3361,3362,3363],{"name":3322,"slug":3323,"type":13},{"name":3294,"slug":3295,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:56.374433",{"slug":3366,"name":3366,"fn":3367,"description":3368,"org":3369,"tags":3370,"stars":3297,"repoUrl":3298,"updatedAt":3374},"develop-ai-functions-example","develop AI SDK function examples","Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3371,3372,3373],{"name":3292,"slug":149,"type":13},{"name":3294,"slug":3295,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:55.088956",68]