@assistant-ui/mcp-docs-server 0.1.20 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/.docs/organized/code-examples/with-ag-ui.md +112 -16
  2. package/.docs/organized/code-examples/with-ai-sdk-v6.md +5 -5
  3. package/.docs/organized/code-examples/with-assistant-transport.md +3 -3
  4. package/.docs/organized/code-examples/with-chain-of-thought.md +598 -0
  5. package/.docs/organized/code-examples/with-cloud.md +5 -5
  6. package/.docs/organized/code-examples/with-custom-thread-list.md +5 -5
  7. package/.docs/organized/code-examples/with-elevenlabs-scribe.md +8 -8
  8. package/.docs/organized/code-examples/with-external-store.md +4 -4
  9. package/.docs/organized/code-examples/with-ffmpeg.md +5 -5
  10. package/.docs/organized/code-examples/with-langgraph.md +4 -4
  11. package/.docs/organized/code-examples/with-parent-id-grouping.md +4 -4
  12. package/.docs/organized/code-examples/with-react-hook-form.md +6 -6
  13. package/.docs/organized/code-examples/with-react-router.md +4 -4
  14. package/.docs/organized/code-examples/with-store.md +3 -3
  15. package/.docs/organized/code-examples/with-tanstack.md +6 -6
  16. package/.docs/organized/code-examples/with-tap-runtime.md +812 -0
  17. package/.docs/raw/docs/(docs)/copilots/make-assistant-tool-ui.mdx +0 -1
  18. package/.docs/raw/docs/(docs)/copilots/make-assistant-tool.mdx +0 -1
  19. package/.docs/raw/docs/(docs)/devtools.mdx +0 -1
  20. package/.docs/raw/docs/(docs)/guides/attachments.mdx +0 -1
  21. package/.docs/raw/docs/(docs)/guides/chain-of-thought.mdx +162 -0
  22. package/.docs/raw/docs/(docs)/index.mdx +1 -1
  23. package/.docs/raw/docs/(docs)/installation.mdx +0 -1
  24. package/.docs/raw/docs/(docs)/llm.mdx +1 -1
  25. package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +0 -1
  26. package/.docs/raw/docs/(reference)/api-reference/context-providers/text-message-part-provider.mdx +0 -1
  27. package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +1 -2
  28. package/.docs/raw/docs/(reference)/api-reference/integrations/react-hook-form.mdx +0 -1
  29. package/.docs/raw/docs/(reference)/api-reference/integrations/vercel-ai-sdk.mdx +0 -1
  30. package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar-more.mdx +13 -45
  31. package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar.mdx +12 -35
  32. package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +0 -1
  33. package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-modal.mdx +3 -11
  34. package/.docs/raw/docs/(reference)/api-reference/primitives/attachment.mdx +0 -3
  35. package/.docs/raw/docs/(reference)/api-reference/primitives/branch-picker.mdx +0 -1
  36. package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +5 -16
  37. package/.docs/raw/docs/(reference)/api-reference/primitives/composition.mdx +0 -1
  38. package/.docs/raw/docs/(reference)/api-reference/primitives/error.mdx +0 -1
  39. package/.docs/raw/docs/(reference)/api-reference/primitives/message-part.mdx +1 -2
  40. package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +0 -1
  41. package/.docs/raw/docs/(reference)/api-reference/primitives/suggestion.mdx +0 -1
  42. package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item-more.mdx +0 -1
  43. package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item.mdx +1 -2
  44. package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list.mdx +1 -2
  45. package/.docs/raw/docs/(reference)/api-reference/primitives/thread.mdx +0 -1
  46. package/.docs/raw/docs/(reference)/api-reference/runtimes/assistant-runtime.mdx +0 -1
  47. package/.docs/raw/docs/(reference)/api-reference/runtimes/attachment-runtime.mdx +1 -2
  48. package/.docs/raw/docs/(reference)/api-reference/runtimes/composer-runtime.mdx +2 -3
  49. package/.docs/raw/docs/(reference)/api-reference/runtimes/message-part-runtime.mdx +1 -2
  50. package/.docs/raw/docs/(reference)/api-reference/runtimes/message-runtime.mdx +1 -2
  51. package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-item-runtime.mdx +0 -1
  52. package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-runtime.mdx +0 -1
  53. package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-runtime.mdx +1 -2
  54. package/.docs/raw/docs/(reference)/legacy/styled/assistant-modal.mdx +0 -1
  55. package/.docs/raw/docs/(reference)/legacy/styled/markdown.mdx +0 -1
  56. package/.docs/raw/docs/(reference)/legacy/styled/thread.mdx +0 -1
  57. package/.docs/raw/docs/(reference)/react-compatibility.mdx +0 -1
  58. package/.docs/raw/docs/cloud/persistence/ai-sdk.mdx +0 -1
  59. package/.docs/raw/docs/cloud/persistence/langgraph.mdx +0 -1
  60. package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +0 -1
  61. package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +118 -0
  62. package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +198 -0
  63. package/.docs/raw/docs/runtimes/custom/custom-thread-list.mdx +0 -1
  64. package/.docs/raw/docs/runtimes/custom/external-store.mdx +9 -11
  65. package/.docs/raw/docs/runtimes/custom/local.mdx +0 -2
  66. package/.docs/raw/docs/runtimes/data-stream.mdx +0 -1
  67. package/.docs/raw/docs/runtimes/langgraph/index.mdx +1 -2
  68. package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +0 -1
  69. package/.docs/raw/docs/runtimes/langserve.mdx +0 -1
  70. package/.docs/raw/docs/runtimes/mastra/full-stack-integration.mdx +0 -1
  71. package/.docs/raw/docs/runtimes/mastra/separate-server-integration.mdx +0 -1
  72. package/.docs/raw/docs/ui/accordion.mdx +0 -2
  73. package/.docs/raw/docs/ui/assistant-modal.mdx +1 -3
  74. package/.docs/raw/docs/ui/assistant-sidebar.mdx +1 -3
  75. package/.docs/raw/docs/ui/attachment.mdx +0 -2
  76. package/.docs/raw/docs/ui/badge.mdx +0 -2
  77. package/.docs/raw/docs/ui/diff-viewer.mdx +279 -0
  78. package/.docs/raw/docs/ui/file.mdx +0 -1
  79. package/.docs/raw/docs/ui/image.mdx +0 -1
  80. package/.docs/raw/docs/ui/markdown.mdx +0 -1
  81. package/.docs/raw/docs/ui/mermaid.mdx +0 -1
  82. package/.docs/raw/docs/ui/model-selector.mdx +0 -2
  83. package/.docs/raw/docs/ui/part-grouping.mdx +2 -3
  84. package/.docs/raw/docs/ui/reasoning.mdx +2 -3
  85. package/.docs/raw/docs/ui/scrollbar.mdx +26 -9
  86. package/.docs/raw/docs/ui/select.mdx +0 -2
  87. package/.docs/raw/docs/ui/sources.mdx +0 -1
  88. package/.docs/raw/docs/ui/syntax-highlighting.mdx +8 -63
  89. package/.docs/raw/docs/ui/tabs.mdx +0 -2
  90. package/.docs/raw/docs/ui/thread-list.mdx +98 -16
  91. package/.docs/raw/docs/ui/thread.mdx +1 -3
  92. package/.docs/raw/docs/ui/tool-fallback.mdx +0 -1
  93. package/.docs/raw/docs/ui/tool-group.mdx +1 -3
  94. package/package.json +3 -3
  95. package/.docs/raw/docs/runtimes/ai-sdk/use-chat.mdx +0 -219
@@ -3,7 +3,6 @@ title: makeAssistantToolUI
3
3
  description: Register custom UI components to render tool executions and their status.
4
4
  ---
5
5
 
6
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
7
6
 
8
7
  The `makeAssistantToolUI` utility is used to register a tool UI component with the Assistant.
9
8
 
@@ -3,7 +3,6 @@ title: makeAssistantTool
3
3
  description: Create React components that provide reusable tools to the assistant.
4
4
  ---
5
5
 
6
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
7
6
 
8
7
  `makeAssistantTool` creates a React component that provides a tool to the assistant. This is useful for defining reusable tools that can be composed into your application.
9
8
 
@@ -3,7 +3,6 @@ title: DevTools
3
3
  description: Inspect runtime state, context, and events in the browser.
4
4
  ---
5
5
 
6
- import { InstallCommand } from "@/components/docs/fumadocs/install/install-command";
7
6
 
8
7
  Hey, the assistant-ui DevTools allows you to debug the assistant-ui state and context, and events without resorting to `console.log`. It's an easy way to see how data flows to the assistant-ui's runtime layer.
9
8
 
@@ -4,7 +4,6 @@ description: Let users attach files, images, and documents to messages.
4
4
  ---
5
5
 
6
6
  import { AttachmentSample } from "@/components/docs/samples/attachment";
7
- import { InstallCommand } from "@/components/docs/fumadocs/install/install-command";
8
7
 
9
8
  Enable users to attach files to their messages, enhancing conversations with images, documents, and other content.
10
9
 
@@ -0,0 +1,162 @@
1
+ ---
2
+ title: Chain of Thought
3
+ description: Group reasoning and tool calls into a collapsible accordion UI.
4
+ ---
5
+
6
+ LLMs often produce reasoning steps and tool calls in succession. Chain of Thought lets you visually group these consecutive parts into a single collapsible accordion, giving users a clean "thinking" UI.
7
+
8
+ ## Overview
9
+
10
+ When a model like OpenAI's `o4-mini` responds, it may emit a sequence of reasoning tokens and tool calls before producing its final text answer. By default, these parts render individually. `ChainOfThoughtPrimitive` groups consecutive reasoning + tool-call parts together and renders them through a single component.
11
+
12
+ Key benefits:
13
+
14
+ - **Cleaner UI** — Collapse intermediate steps behind a "Thinking" toggle
15
+ - **Better context** — Users see that reasoning and tool calls are related
16
+ - **Built-in accordion** — Expand/collapse with a single click; collapsed by default
17
+
18
+ ## Quick Start
19
+
20
+ <Steps>
21
+ <Step>
22
+
23
+ ### Pass a ChainOfThought component to MessagePrimitive.Parts
24
+
25
+ `MessagePrimitive.Parts` accepts a `ChainOfThought` component. When provided, consecutive reasoning and tool-call parts are automatically grouped and rendered through it.
26
+
27
+ ```tsx
28
+ import {
29
+ AuiIf,
30
+ ChainOfThoughtPrimitive,
31
+ MessagePrimitive,
32
+ } from "@assistant-ui/react";
33
+ import type { FC } from "react";
34
+
35
+ const Reasoning: FC<{ text: string }> = ({ text }) => {
36
+ return (
37
+ <p className="whitespace-pre-wrap px-4 py-2 text-muted-foreground text-sm italic">
38
+ {text}
39
+ </p>
40
+ );
41
+ };
42
+
43
+ const ChainOfThought: FC = () => {
44
+ return (
45
+ <ChainOfThoughtPrimitive.Root className="my-2 rounded-lg border">
46
+ <ChainOfThoughtPrimitive.AccordionTrigger className="flex w-full cursor-pointer items-center gap-2 px-4 py-2 font-medium text-sm hover:bg-muted/50">
47
+ Thinking
48
+ </ChainOfThoughtPrimitive.AccordionTrigger>
49
+ <AuiIf condition={({ chainOfThought }) => !chainOfThought.collapsed}>
50
+ <ChainOfThoughtPrimitive.Parts
51
+ components={{ Reasoning, tools: { Fallback: ToolFallback } }}
52
+ />
53
+ </AuiIf>
54
+ </ChainOfThoughtPrimitive.Root>
55
+ );
56
+ };
57
+
58
+ const AssistantMessage: FC = () => {
59
+ return (
60
+ <MessagePrimitive.Root>
61
+ <MessagePrimitive.Parts
62
+ components={{
63
+ Text: MarkdownText,
64
+ ChainOfThought, // groups reasoning + tool parts
65
+ }}
66
+ />
67
+ </MessagePrimitive.Root>
68
+ );
69
+ };
70
+ ```
71
+
72
+ </Step>
73
+ <Step>
74
+
75
+ ### Use a reasoning model
76
+
77
+ Chain of Thought is most useful with models that produce reasoning tokens (e.g. OpenAI `o4-mini`). Here's an example backend route using the Vercel AI SDK:
78
+
79
+ ```tsx title="app/api/chat/route.ts"
80
+ import { openai } from "@ai-sdk/openai";
81
+ import { streamText, convertToModelMessages } from "ai";
82
+
83
+ export async function POST(req: Request) {
84
+ const { messages } = await req.json();
85
+
86
+ const result = streamText({
87
+ model: openai("o4-mini"),
88
+ messages: await convertToModelMessages(messages),
89
+ });
90
+
91
+ return result.toUIMessageStreamResponse();
92
+ }
93
+ ```
94
+
95
+ </Step>
96
+ </Steps>
97
+
98
+ ## API Reference
99
+
100
+ ### ChainOfThoughtPrimitive.Root
101
+
102
+ Container element for the chain of thought group. Renders a `<div>`.
103
+
104
+ ### ChainOfThoughtPrimitive.AccordionTrigger
105
+
106
+ A button that toggles the collapsed/expanded state. Collapsed by default.
107
+
108
+ ### ChainOfThoughtPrimitive.Parts
109
+
110
+ Renders the grouped parts when expanded (nothing when collapsed).
111
+
112
+ ```tsx
113
+ <AuiIf condition={({ chainOfThought }) => !chainOfThought.collapsed}>
114
+ <ChainOfThoughtPrimitive.Parts
115
+ components={{
116
+ Reasoning,
117
+ tools: { Fallback: ToolFallback },
118
+ Layout: ({ children }) => (
119
+ <div className="border-l-2 border-muted pl-4">{children}</div>
120
+ ),
121
+ }}
122
+ />
123
+ </AuiIf>
124
+ ```
125
+
126
+ | Prop | Type | Description |
127
+ | --- | --- | --- |
128
+ | `components.Reasoning` | `FC<{ text: string }>` | Component to render reasoning parts |
129
+ | `components.tools.Fallback` | `ToolCallMessagePartComponent` | Fallback component for tool-call parts |
130
+ | `components.Layout` | `ComponentType<PropsWithChildren>` | Wrapper component around each rendered part when expanded |
131
+
132
+ ## Reading Collapsed State
133
+
134
+ Use `AuiIf` to conditionally render based on the accordion state:
135
+
136
+ ```tsx
137
+ import { AuiIf, ChainOfThoughtPrimitive } from "@assistant-ui/react";
138
+ import { ChevronDownIcon, ChevronRightIcon } from "lucide-react";
139
+
140
+ const ChainOfThoughtAccordionTrigger = () => {
141
+ return (
142
+ <ChainOfThoughtPrimitive.AccordionTrigger className="flex w-full cursor-pointer items-center gap-2 px-4 py-2 text-sm">
143
+ <AuiIf condition={({ chainOfThought }) => chainOfThought.collapsed}>
144
+ <ChevronRightIcon className="size-4" />
145
+ </AuiIf>
146
+ <AuiIf condition={({ chainOfThought }) => !chainOfThought.collapsed}>
147
+ <ChevronDownIcon className="size-4" />
148
+ </AuiIf>
149
+ Thinking
150
+ </ChainOfThoughtPrimitive.AccordionTrigger>
151
+ );
152
+ };
153
+ ```
154
+
155
+ ## Full Example
156
+
157
+ See the complete [with-chain-of-thought example](https://github.com/Yonom/assistant-ui/tree/main/examples/with-chain-of-thought) for a working implementation with tool calls and reasoning.
158
+
159
+ ## Related Guides
160
+
161
+ - [Generative UI](/docs/guides/tool-ui) — Custom UI for tool calls
162
+ - [Tools](/docs/guides/tools) — Defining and using tools
@@ -57,7 +57,7 @@ npx assistant-ui@latest create -t mcp
57
57
  href="/docs/installation"
58
58
  />
59
59
  <Card
60
- title="AI-Assisted Development"
60
+ title="Agent Skills"
61
61
  description="Use AI tools to build with assistant-ui faster"
62
62
  href="/docs/llm"
63
63
  />
@@ -3,7 +3,6 @@ title: Installation
3
3
  description: Get assistant-ui running in 5 minutes with npm and your first chat component.
4
4
  ---
5
5
 
6
- import { InstallCommand } from "@/components/docs/fumadocs/install/install-command";
7
6
 
8
7
  ## Quick Start
9
8
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: "AI-Assisted Development"
2
+ title: "Agent Skills"
3
3
  description: Use AI tools to build with assistant-ui faster. AI-accessible documentation, Claude Code skills, and MCP integration.
4
4
  ---
5
5
 
@@ -3,7 +3,6 @@ title: <AssistantRuntimeProvider />
3
3
  description: Root provider that connects your runtime to assistant-ui components.
4
4
  ---
5
5
 
6
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
7
6
  import { AssistantRuntimeProvider } from "@/generated/typeDocs";
8
7
 
9
8
  The `AssistantRuntimeProvider` provides data and APIs used by assistant-ui components.
@@ -3,7 +3,6 @@ title: <TextMessagePartProvider />
3
3
  description: Context provider for reusing text components outside of message content.
4
4
  ---
5
5
 
6
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
7
6
  import { AssistantRuntimeProvider } from "@/generated/typeDocs";
8
7
 
9
8
  The `TextMessagePartProvider` provides data and APIs for `TextMessagePart` components.
@@ -5,7 +5,6 @@ description: Hooks for connecting to data stream protocol endpoints and Assistan
5
5
 
6
6
  Data Stream protocol integration for assistant-ui.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## API Reference
11
10
 
@@ -238,4 +237,4 @@ By default, filters out disabled tools and backend-only tools. Use the `filter`
238
237
  const allTools = toToolsJSONSchema(tools, {
239
238
  filter: () => true, // Include all tools
240
239
  });
241
- ```
240
+ ```
@@ -5,7 +5,6 @@ description: React Hook Form integration for AI-assisted form filling.
5
5
 
6
6
  A React Hook Form integration for @assistant-ui.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## API Reference
11
10
 
@@ -5,7 +5,6 @@ description: Vercel AI SDK v5 integration with chat runtime hooks and transport
5
5
 
6
6
  Vercel AI SDK integration for assistant-ui.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  <Callout type="info">
11
10
  This package provides integration with AI SDK v5. For AI SDK v4, see the [AI
@@ -4,9 +4,6 @@ title: ActionBarMorePrimitive
4
4
 
5
5
  A dropdown menu for additional actions that don't fit in the main action bar.
6
6
 
7
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
8
- import { DataAttributesTable } from "@/components/docs/tables/DataAttributesTable";
9
- import { Code } from "@radix-ui/themes";
10
7
 
11
8
  ## Anatomy
12
9
 
@@ -97,18 +94,10 @@ This primitive renders a `<button>` element unless `asChild` is set.
97
94
  ]}
98
95
  />
99
96
 
100
- <DataAttributesTable
101
- data={[
102
- {
103
- attribute: "[data-state]",
104
- values: <Code>"open" | "closed"</Code>,
105
- },
106
- {
107
- attribute: "[data-disabled]",
108
- values: "Present when disabled",
109
- },
110
- ]}
111
- />
97
+ | Data attribute | Values |
98
+ | --- | --- |
99
+ | `[data-state]` | `"open" \| "closed"` |
100
+ | `[data-disabled]` | Present when disabled |
112
101
 
113
102
  ### Content
114
103
 
@@ -154,22 +143,11 @@ This primitive renders a `<div>` element unless `asChild` is set.
154
143
  ]}
155
144
  />
156
145
 
157
- <DataAttributesTable
158
- data={[
159
- {
160
- attribute: "[data-state]",
161
- values: <Code>"open" | "closed"</Code>,
162
- },
163
- {
164
- attribute: "[data-side]",
165
- values: <Code>"top" | "right" | "bottom" | "left"</Code>,
166
- },
167
- {
168
- attribute: "[data-align]",
169
- values: <Code>"start" | "center" | "end"</Code>,
170
- },
171
- ]}
172
- />
146
+ | Data attribute | Values |
147
+ | --- | --- |
148
+ | `[data-state]` | `"open" \| "closed"` |
149
+ | `[data-side]` | `"top" \| "right" \| "bottom" \| "left"` |
150
+ | `[data-align]` | `"start" \| "center" \| "end"` |
173
151
 
174
152
  Refer to Radix UI's Documentation for [DropdownMenu.Content](https://www.radix-ui.com/primitives/docs/components/dropdown-menu#content) for more details.
175
153
 
@@ -205,18 +183,10 @@ This primitive renders a `<div>` element unless `asChild` is set.
205
183
  ]}
206
184
  />
207
185
 
208
- <DataAttributesTable
209
- data={[
210
- {
211
- attribute: "[data-disabled]",
212
- values: "Present when disabled",
213
- },
214
- {
215
- attribute: "[data-highlighted]",
216
- values: "Present when highlighted",
217
- },
218
- ]}
219
- />
186
+ | Data attribute | Values |
187
+ | --- | --- |
188
+ | `[data-disabled]` | Present when disabled |
189
+ | `[data-highlighted]` | Present when highlighted |
220
190
 
221
191
  Refer to Radix UI's Documentation for [DropdownMenu.Item](https://www.radix-ui.com/primitives/docs/components/dropdown-menu#item) for more details.
222
192
 
@@ -323,5 +293,3 @@ const MoreActionsWithHooks = () => {
323
293
  );
324
294
  };
325
295
  ```
326
-
327
-
@@ -5,9 +5,6 @@ description: Buttons for message actions like copy, edit, reload, speak, and fee
5
5
 
6
6
  Buttons to interact with the message.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
- import { DataAttributesTable } from "@/components/docs/tables/DataAttributesTable";
10
- import { Code } from "@radix-ui/themes";
11
8
 
12
9
  ## Anatomy
13
10
 
@@ -93,14 +90,9 @@ This primitive renders a `<div>` element unless `asChild` is set.
93
90
  ]}
94
91
  />
95
92
 
96
- <DataAttributesTable
97
- data={[
98
- {
99
- attribute: "[data-floating]",
100
- values: "Present when floating",
101
- },
102
- ]}
103
- />
93
+ | Data attribute | Values |
94
+ | --- | --- |
95
+ | `[data-floating]` | Present when floating |
104
96
 
105
97
  ### Edit
106
98
 
@@ -154,14 +146,9 @@ This primitive renders a `<button>` element unless `asChild` is set.
154
146
  ]}
155
147
  />
156
148
 
157
- <DataAttributesTable
158
- data={[
159
- {
160
- attribute: "[data-copied]",
161
- values: "Present when the message was recently copied.",
162
- },
163
- ]}
164
- />
149
+ | Data attribute | Values |
150
+ | --- | --- |
151
+ | `[data-copied]` | Present when the message was recently copied. |
165
152
 
166
153
  #### Copied state
167
154
 
@@ -232,14 +219,9 @@ This primitive renders a `<button>` element unless `asChild` is set.
232
219
  ]}
233
220
  />
234
221
 
235
- <DataAttributesTable
236
- data={[
237
- {
238
- attribute: "[data-submitted]",
239
- values: "Present when positive feedback was submitted.",
240
- },
241
- ]}
242
- />
222
+ | Data attribute | Values |
223
+ | --- | --- |
224
+ | `[data-submitted]` | Present when positive feedback was submitted. |
243
225
 
244
226
  ### Feedback Negative
245
227
 
@@ -256,14 +238,9 @@ This primitive renders a `<button>` element unless `asChild` is set.
256
238
  ]}
257
239
  />
258
240
 
259
- <DataAttributesTable
260
- data={[
261
- {
262
- attribute: "[data-submitted]",
263
- values: "Present when negative feedback was submitted.",
264
- },
265
- ]}
266
- />
241
+ | Data attribute | Values |
242
+ | --- | --- |
243
+ | `[data-submitted]` | Present when negative feedback was submitted. |
267
244
 
268
245
  ### ExportMarkdown
269
246
 
@@ -5,7 +5,6 @@ description: Conditional rendering component based on thread, message, or compos
5
5
 
6
6
  Conditionally render children based on assistant state.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## Anatomy
11
10
 
@@ -5,9 +5,6 @@ description: A popover chat interface for floating assistant UI in the corner of
5
5
 
6
6
  A modal chat UI usually displayed in the bottom right corner of the screen.
7
7
 
8
- import { Code } from "@radix-ui/themes";
9
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
10
- import { DataAttributesTable } from "@/components/docs/tables/DataAttributesTable";
11
8
 
12
9
  ## Anatomy
13
10
 
@@ -79,14 +76,9 @@ This primitive renders a `<button>` element unless `asChild` is set.
79
76
  ]}
80
77
  />
81
78
 
82
- <DataAttributesTable
83
- data={[
84
- {
85
- attribute: "[data-state]",
86
- values: <Code>"open" | "closed"</Code>,
87
- },
88
- ]}
89
- />
79
+ | Data attribute | Values |
80
+ | --- | --- |
81
+ | `[data-state]` | `"open" \| "closed"` |
90
82
 
91
83
  ### Anchor
92
84
 
@@ -5,9 +5,6 @@ description: Components for displaying and managing file attachments in messages
5
5
 
6
6
  Buttons to interact with attachments.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
- import { DataAttributesTable } from "@/components/docs/tables/DataAttributesTable";
10
- import { Code } from "@radix-ui/themes";
11
8
 
12
9
  <Callout>
13
10
  **Dual Use!** Attachments can appear in both messages and composers.
@@ -5,7 +5,6 @@ description: Navigate between conversation branches with previous/next controls.
5
5
 
6
6
  View and switch between branches.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## Anatomy
11
10
 
@@ -6,9 +6,6 @@ description: Primitives for the text input, send button, and attachments.
6
6
  The user interface to add new messages or edit existing ones.
7
7
 
8
8
 
9
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
10
- import { KeyboardTable } from "@/components/docs/tables/KeyboardTable";
11
- import { Code } from "@radix-ui/themes";
12
9
 
13
10
  <Callout>
14
11
  **Dual Use!** A Composer placed directly inside a `Thread` will compose new
@@ -88,18 +85,10 @@ This primitive renders a `<textarea>` element unless `asChild` is set.
88
85
 
89
86
  #### Keyboard Shortcuts
90
87
 
91
- <KeyboardTable
92
- data={[
93
- {
94
- keys: ["Enter"],
95
- description: "Sends the message.",
96
- },
97
- {
98
- keys: ["Escape"],
99
- description: "Sends a cancel action.",
100
- },
101
- ]}
102
- />
88
+ | Key | Description |
89
+ | --- | --- |
90
+ | <Kbd>Enter</Kbd> | Sends the message. |
91
+ | <Kbd>Escape</Kbd> | Sends a cancel action. |
103
92
 
104
93
  ### Send
105
94
 
@@ -126,7 +115,7 @@ This primitive renders a `<button>` element unless `asChild` is set.
126
115
 
127
116
  Sends a cancel action.
128
117
 
129
- In edit composers, this action exits the edit mode.
118
+ In edit composers, this action exits the edit mode.
130
119
  In thread composers, this action stops the current run.
131
120
 
132
121
  This primitive renders a `<button>` element unless `asChild` is set.
@@ -3,7 +3,6 @@ title: Composition
3
3
  description: How to compose primitives with custom components using asChild.
4
4
  ---
5
5
 
6
- import { Code } from "@radix-ui/themes";
7
6
 
8
7
  `assistant-ui` primitives are composable. This means that all props are forwarded, classes are merged, and event handlers are chained.
9
8
 
@@ -5,7 +5,6 @@ description: Components for displaying error messages in the chat interface.
5
5
 
6
6
  A component for displaying error messages in the UI.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## Anatomy
11
10
 
@@ -3,7 +3,6 @@ title: MessagePartPrimitive
3
3
  description: Primitives for text, images, tool calls, and other message content.
4
4
  ---
5
5
 
6
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
7
6
  import {
8
7
  MessagePartRuntime,
9
8
  TextMessagePartState,
@@ -11,7 +10,7 @@ import {
11
10
  ToolCallMessagePartState,
12
11
  } from "@/generated/typeDocs";
13
12
 
14
- Each message can have any number of message parts.
13
+ Each message can have any number of message parts.
15
14
  Message parts are usually one of text, reasoning, audio or tool-call.
16
15
 
17
16
  ## Message part Types
@@ -5,7 +5,6 @@ description: Components for rendering message content, parts, and attachments.
5
5
 
6
6
  A single message in a conversation. Messages may consist of multiple parts.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## Anatomy
11
10
 
@@ -2,7 +2,6 @@
2
2
  title: SuggestionPrimitive
3
3
  ---
4
4
 
5
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
6
5
 
7
6
  Primitives for rendering individual suggestions. These primitives must be used within a suggestion context provided by `ThreadPrimitive.Suggestions`.
8
7
 
@@ -5,7 +5,6 @@ description: Dropdown menu for additional thread actions like archive and delete
5
5
 
6
6
  A dropdown menu for displaying additional actions on a thread list item. Built on top of [Radix UI Dropdown Menu](https://www.radix-ui.com/primitives/docs/components/dropdown-menu).
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## Anatomy
11
10
 
@@ -5,7 +5,6 @@ description: Individual thread item with title, archive, and delete controls.
5
5
 
6
6
  A single thread item within a thread list.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## Anatomy
11
10
 
@@ -158,4 +157,4 @@ const ArchivedThreadListItem = () => {
158
157
  </ThreadListItemPrimitive.Root>
159
158
  );
160
159
  };
161
- ```
160
+ ```
@@ -5,7 +5,6 @@ description: Display and manage multiple conversation threads with create and ar
5
5
 
6
6
  Displays a list of conversation threads.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## Anatomy
11
10
 
@@ -126,4 +125,4 @@ Renders a single thread list item at the specified index.
126
125
  description: "The components to render for the thread list item.",
127
126
  },
128
127
  ]}
129
- />
128
+ />
@@ -5,7 +5,6 @@ description: Primitives for the message list, viewport, and welcome screen.
5
5
 
6
6
  A conversation between a user and an assistant.
7
7
 
8
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
9
8
 
10
9
  ## Anatomy
11
10
 
@@ -3,7 +3,6 @@ title: AssistantRuntime
3
3
  description: Root runtime for managing threads, tool UIs, and assistant state.
4
4
  ---
5
5
 
6
- import { ParametersTable } from "@/components/docs/tables/ParametersTable";
7
6
  import { AssistantRuntime, AssistantToolUIsState } from "@/generated/typeDocs";
8
7
 
9
8
  The `AssistantRuntime` is the root runtime of the application.