@assistant-ui/mcp-docs-server 0.1.30 → 0.1.32
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.
- package/.docs/organized/code-examples/waterfall.md +8 -8
- package/.docs/organized/code-examples/with-a2a.md +10 -10
- package/.docs/organized/code-examples/with-ag-ui.md +12 -12
- package/.docs/organized/code-examples/with-ai-sdk-v6.md +14 -14
- package/.docs/organized/code-examples/with-artifacts.md +14 -14
- package/.docs/organized/code-examples/with-assistant-transport.md +11 -11
- package/.docs/organized/code-examples/with-browser-extension.md +345 -0
- package/.docs/organized/code-examples/with-chain-of-thought.md +129 -63
- package/.docs/organized/code-examples/with-cloud-standalone.md +13 -13
- package/.docs/organized/code-examples/with-cloud.md +13 -13
- package/.docs/organized/code-examples/with-custom-thread-list.md +65 -20
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +18 -17
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +18 -17
- package/.docs/organized/code-examples/with-expo.md +25 -25
- package/.docs/organized/code-examples/with-external-store.md +10 -10
- package/.docs/organized/code-examples/with-ffmpeg.md +14 -14
- package/.docs/organized/code-examples/with-generative-ui.md +211 -14
- package/.docs/organized/code-examples/with-google-adk.md +12 -12
- package/.docs/organized/code-examples/with-heat-graph.md +8 -8
- package/.docs/organized/code-examples/with-image-generation.md +454 -0
- package/.docs/organized/code-examples/with-interactables.md +14 -14
- package/.docs/organized/code-examples/with-langchain.md +12 -12
- package/.docs/organized/code-examples/with-langgraph.md +15 -12
- package/.docs/organized/code-examples/with-livekit.md +19 -18
- package/.docs/organized/code-examples/with-mcp.md +748 -0
- package/.docs/organized/code-examples/with-opencode.md +107 -62
- package/.docs/organized/code-examples/with-parent-id-grouping.md +12 -12
- package/.docs/organized/code-examples/with-react-hook-form.md +14 -14
- package/.docs/organized/code-examples/with-react-ink.md +4 -4
- package/.docs/organized/code-examples/with-react-router.md +16 -16
- package/.docs/organized/code-examples/with-resumable-stream.md +660 -0
- package/.docs/organized/code-examples/with-store.md +8 -8
- package/.docs/organized/code-examples/with-tanstack.md +14 -14
- package/.docs/organized/code-examples/with-tap-runtime.md +11 -10
- package/.docs/raw/docs/(docs)/cli.mdx +3 -1
- package/.docs/raw/docs/(docs)/copilots/assistant-frame.mdx +1 -0
- package/.docs/raw/docs/(docs)/copilots/make-assistant-tool-ui.mdx +10 -3
- package/.docs/raw/docs/(docs)/copilots/make-assistant-tool.mdx +8 -3
- package/.docs/raw/docs/(docs)/copilots/make-assistant-visible.mdx +1 -0
- package/.docs/raw/docs/(docs)/copilots/model-context.mdx +1 -0
- package/.docs/raw/docs/(docs)/copilots/motivation.mdx +1 -0
- package/.docs/raw/docs/(docs)/copilots/use-assistant-instructions.mdx +1 -0
- package/.docs/raw/docs/(docs)/devtools.mdx +1 -0
- package/.docs/raw/docs/(docs)/index.mdx +3 -2
- package/.docs/raw/docs/(docs)/installation.mdx +2 -1
- package/.docs/raw/docs/(docs)/rtl.mdx +1 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/attachments.mdx +36 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/feedback.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/index.mdx +34 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/model.mdx +44 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/persistence.mdx +55 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/runtime.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/suggestions.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +37 -8
- package/.docs/raw/docs/(reference)/api-reference/context-providers/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/context-providers/scoped-providers.mdx +64 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +52 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +36 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/composer-triggers.mdx +98 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/index.mdx +31 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/model-context.mdx +33 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +640 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/runtimes.mdx +28 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +94 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/utilities.mdx +464 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/cloud-ai-sdk.mdx +24 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +79 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +52 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/registry.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/overview.mdx +125 -125
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar-more.mdx +78 -221
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar.mdx +127 -242
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +46 -20
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-modal.mdx +66 -87
- package/.docs/raw/docs/(reference)/api-reference/primitives/attachment.mdx +50 -58
- package/.docs/raw/docs/(reference)/api-reference/primitives/branch-picker.mdx +80 -48
- package/.docs/raw/docs/(reference)/api-reference/primitives/chain-of-thought.mdx +67 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +323 -461
- package/.docs/raw/docs/(reference)/api-reference/primitives/error.mdx +36 -43
- package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +70 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/message-part.mdx +63 -245
- package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +182 -554
- package/.docs/raw/docs/(reference)/api-reference/primitives/queue-item.mdx +65 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +35 -22
- package/.docs/raw/docs/(reference)/api-reference/primitives/suggestion.mdx +57 -140
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item-more.mdx +70 -161
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item.mdx +84 -108
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list.mdx +82 -86
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread.mdx +173 -314
- package/.docs/raw/docs/(reference)/api-reference/runtimes/assistant-runtime.mdx +9 -21
- package/.docs/raw/docs/(reference)/api-reference/runtimes/attachment-runtime.mdx +10 -21
- package/.docs/raw/docs/(reference)/api-reference/runtimes/composer-runtime.mdx +15 -70
- package/.docs/raw/docs/(reference)/api-reference/runtimes/index.mdx +43 -0
- package/.docs/raw/docs/(reference)/api-reference/runtimes/message-part-runtime.mdx +25 -28
- package/.docs/raw/docs/(reference)/api-reference/runtimes/message-runtime.mdx +11 -63
- package/.docs/raw/docs/(reference)/api-reference/runtimes/queue-state.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-item-runtime.mdx +11 -48
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-runtime.mdx +10 -42
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-runtime.mdx +18 -30
- package/.docs/raw/docs/(reference)/api-reference/tools/component-tools.mdx +68 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/index.mdx +39 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +79 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +42 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +92 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/assistant-transport.mdx +48 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/frame.mdx +62 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/utilities/index.mdx +19 -0
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +131 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +54 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/speech-dictation.mdx +36 -0
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +230 -2
- package/.docs/raw/docs/cloud/ai-sdk.mdx +222 -4
- package/.docs/raw/docs/cloud/index.mdx +2 -2
- package/.docs/raw/docs/cloud/langgraph.mdx +274 -2
- package/.docs/raw/docs/{(docs)/guides → guides}/attachments.mdx +45 -40
- package/.docs/raw/docs/guides/branching.mdx +76 -0
- package/.docs/raw/docs/guides/chain-of-thought.mdx +166 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/context-api.mdx +54 -26
- package/.docs/raw/docs/{(docs)/guides → guides}/dictation.mdx +3 -1
- package/.docs/raw/docs/guides/editing.mdx +102 -0
- package/.docs/raw/docs/guides/generative-ui.mdx +142 -0
- package/.docs/raw/docs/guides/image-generation.mdx +74 -0
- package/.docs/raw/docs/guides/index.mdx +103 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/interactables.mdx +51 -2
- package/.docs/raw/docs/{(docs)/guides → guides}/latex.mdx +53 -10
- package/.docs/raw/docs/guides/mcp-apps.mdx +231 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/mentions.mdx +63 -88
- package/.docs/raw/docs/{(docs)/guides → guides}/message-timing.mdx +45 -6
- package/.docs/raw/docs/{(docs)/guides → guides}/multi-agent.mdx +66 -6
- package/.docs/raw/docs/{(docs)/guides → guides}/quoting.mdx +11 -18
- package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +212 -0
- package/.docs/raw/docs/guides/resumable-stream-stores.mdx +152 -0
- package/.docs/raw/docs/guides/resumable-streams.mdx +210 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/slash-commands.mdx +104 -38
- package/.docs/raw/docs/guides/speech.mdx +156 -0
- package/.docs/raw/docs/{(docs)/guides → guides}/suggestions.mdx +91 -69
- package/.docs/raw/docs/{(docs)/guides → guides}/tool-ui.mdx +110 -38
- package/.docs/raw/docs/{(docs)/guides → guides}/tools.mdx +197 -40
- package/.docs/raw/docs/{(docs)/guides → guides}/voice.mdx +41 -2
- package/.docs/raw/docs/ink/adapters.mdx +37 -1
- package/.docs/raw/docs/ink/custom-backend.mdx +59 -8
- package/.docs/raw/docs/ink/index.mdx +11 -14
- package/.docs/raw/docs/ink/migration.mdx +1 -3
- package/.docs/raw/docs/ink/primitives.mdx +386 -9
- package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +520 -0
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +191 -0
- package/.docs/raw/docs/integrations/auth/clerk.mdx +172 -0
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +196 -0
- package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +79 -0
- package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +282 -0
- package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +188 -0
- package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +57 -0
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +201 -0
- package/.docs/raw/docs/integrations/gateways/index.mdx +162 -0
- package/.docs/raw/docs/integrations/index.mdx +185 -0
- package/.docs/raw/docs/integrations/observability/helicone.mdx +130 -0
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +163 -0
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +150 -0
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +712 -0
- package/.docs/raw/docs/integrations/tools/mcp.mdx +267 -0
- package/.docs/raw/docs/integrations/tools/react-mcp.mdx +337 -0
- package/.docs/raw/docs/migrations/v0-14.mdx +297 -0
- package/.docs/raw/docs/primitives/action-bar.mdx +1 -0
- package/.docs/raw/docs/primitives/assistant-modal.mdx +1 -0
- package/.docs/raw/docs/primitives/attachment.mdx +1 -0
- package/.docs/raw/docs/primitives/branch-picker.mdx +1 -0
- package/.docs/raw/docs/primitives/chain-of-thought.mdx +90 -85
- package/.docs/raw/docs/primitives/composer.mdx +55 -1
- package/.docs/raw/docs/primitives/error.mdx +1 -0
- package/.docs/raw/docs/primitives/index.mdx +4 -3
- package/.docs/raw/docs/primitives/message.mdx +68 -5
- package/.docs/raw/docs/primitives/selection-toolbar.mdx +1 -0
- package/.docs/raw/docs/primitives/suggestion.mdx +10 -0
- package/.docs/raw/docs/primitives/thread-list.mdx +39 -0
- package/.docs/raw/docs/primitives/thread.mdx +16 -13
- package/.docs/raw/docs/react-native/hooks.mdx +2 -2
- package/.docs/raw/docs/react-native/index.mdx +5 -7
- package/.docs/raw/docs/react-native/migration.mdx +1 -3
- package/.docs/raw/docs/runtimes/a2a/client-and-hooks.mdx +396 -0
- package/.docs/raw/docs/runtimes/a2a/overview.mdx +60 -0
- package/.docs/raw/docs/runtimes/a2a/quickstart.mdx +216 -0
- package/.docs/raw/docs/runtimes/ag-ui/overview.mdx +70 -0
- package/.docs/raw/docs/runtimes/ag-ui/quickstart.mdx +243 -0
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +154 -0
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +52 -0
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +73 -128
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +70 -64
- package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +337 -123
- package/.docs/raw/docs/runtimes/concepts/adapters.mdx +265 -0
- package/.docs/raw/docs/runtimes/concepts/architecture.mdx +125 -0
- package/.docs/raw/docs/runtimes/concepts/stability.mdx +67 -0
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +428 -0
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +703 -0
- package/.docs/raw/docs/runtimes/custom/data-stream.mdx +348 -0
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +261 -1236
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +746 -0
- package/.docs/raw/docs/runtimes/custom/overview.mdx +71 -0
- package/.docs/raw/docs/runtimes/google-adk/api.mdx +256 -0
- package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +717 -0
- package/.docs/raw/docs/runtimes/google-adk/overview.mdx +69 -0
- package/.docs/raw/docs/runtimes/google-adk/quickstart.mdx +229 -0
- package/.docs/raw/docs/runtimes/langchain.mdx +533 -0
- package/.docs/raw/docs/runtimes/langgraph/generative-ui.mdx +305 -0
- package/.docs/raw/docs/runtimes/langgraph/interrupts.mdx +104 -0
- package/.docs/raw/docs/runtimes/langgraph/overview.mdx +84 -0
- package/.docs/raw/docs/runtimes/langgraph/quickstart.mdx +496 -0
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +127 -0
- package/.docs/raw/docs/runtimes/langgraph/threads.mdx +113 -0
- package/.docs/raw/docs/runtimes/langgraph/tutorial/introduction.mdx +3 -3
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-1.mdx +0 -23
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +1 -1
- package/.docs/raw/docs/runtimes/opencode/hooks.mdx +191 -0
- package/.docs/raw/docs/runtimes/opencode/overview.mdx +48 -0
- package/.docs/raw/docs/runtimes/opencode/quickstart.mdx +119 -0
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +78 -203
- package/.docs/raw/docs/ui/accordion.mdx +1 -0
- package/.docs/raw/docs/ui/assistant-modal.mdx +1 -0
- package/.docs/raw/docs/ui/assistant-sidebar.mdx +1 -0
- package/.docs/raw/docs/ui/attachment.mdx +1 -0
- package/.docs/raw/docs/ui/badge.mdx +1 -0
- package/.docs/raw/docs/ui/composer-trigger-popover.mdx +12 -1
- package/.docs/raw/docs/ui/context-display.mdx +1 -0
- package/.docs/raw/docs/ui/diff-viewer.mdx +1 -0
- package/.docs/raw/docs/ui/directive-text.mdx +1 -0
- package/.docs/raw/docs/ui/file.mdx +1 -0
- package/.docs/raw/docs/ui/image.mdx +1 -0
- package/.docs/raw/docs/ui/markdown.mdx +2 -14
- package/.docs/raw/docs/ui/mcp-config.mdx +102 -0
- package/.docs/raw/docs/ui/mermaid.mdx +1 -0
- package/.docs/raw/docs/ui/message-timing.mdx +3 -2
- package/.docs/raw/docs/ui/model-selector.mdx +9 -8
- package/.docs/raw/docs/ui/part-grouping.mdx +325 -313
- package/.docs/raw/docs/ui/quote.mdx +1 -0
- package/.docs/raw/docs/ui/reasoning.mdx +66 -33
- package/.docs/raw/docs/ui/scrollbar.mdx +1 -0
- package/.docs/raw/docs/ui/select.mdx +1 -0
- package/.docs/raw/docs/ui/sources.mdx +18 -0
- package/.docs/raw/docs/ui/streamdown.mdx +35 -2
- package/.docs/raw/docs/ui/syntax-highlighting.mdx +1 -0
- package/.docs/raw/docs/ui/tabs.mdx +1 -0
- package/.docs/raw/docs/ui/thread-list.mdx +19 -2
- package/.docs/raw/docs/ui/thread.mdx +58 -3
- package/.docs/raw/docs/ui/tool-fallback.mdx +1 -0
- package/.docs/raw/docs/ui/tool-group.mdx +39 -11
- package/.docs/raw/docs/ui/voice.mdx +1 -0
- package/.docs/raw/docs/utilities/heat-graph.mdx +1 -0
- package/.docs/raw/docs/utilities/react-o11y.mdx +278 -0
- package/.docs/raw/docs/utilities/tw-shimmer.mdx +1 -0
- package/README.md +14 -72
- package/dist/constants.d.ts +12 -9
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +13 -9
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -24
- package/dist/index.js.map +1 -1
- package/dist/prepare-docs/code-examples.d.ts +4 -1
- package/dist/prepare-docs/code-examples.d.ts.map +1 -1
- package/dist/prepare-docs/code-examples.js +109 -121
- package/dist/prepare-docs/code-examples.js.map +1 -1
- package/dist/prepare-docs/copy-raw.d.ts +4 -1
- package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
- package/dist/prepare-docs/copy-raw.js +45 -42
- package/dist/prepare-docs/copy-raw.js.map +1 -1
- package/dist/prepare-docs/prepare.d.ts +1 -2
- package/dist/prepare-docs/prepare.js +17 -17
- package/dist/prepare-docs/prepare.js.map +1 -1
- package/dist/stdio.d.ts +1 -3
- package/dist/stdio.js +6 -3
- package/dist/stdio.js.map +1 -1
- package/dist/tools/docs.d.ts +20 -15
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/docs.js +140 -161
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.d.ts +20 -15
- package/dist/tools/examples.d.ts.map +1 -1
- package/dist/tools/examples.js +74 -86
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/tests/test-setup.d.ts +5 -2
- package/dist/tools/tests/test-setup.d.ts.map +1 -1
- package/dist/tools/tests/test-setup.js +21 -28
- package/dist/tools/tests/test-setup.js.map +1 -1
- package/dist/utils/logger.d.ts +8 -5
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +17 -17
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/mcp-format.d.ts +8 -5
- package/dist/utils/mcp-format.d.ts.map +1 -1
- package/dist/utils/mcp-format.js +9 -9
- package/dist/utils/mcp-format.js.map +1 -1
- package/dist/utils/mdx.d.ts +8 -6
- package/dist/utils/mdx.d.ts.map +1 -1
- package/dist/utils/mdx.js +22 -22
- package/dist/utils/mdx.js.map +1 -1
- package/dist/utils/paths.d.ts +9 -6
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +66 -76
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/security.d.ts +4 -1
- package/dist/utils/security.d.ts.map +1 -1
- package/dist/utils/security.js +19 -40
- package/dist/utils/security.js.map +1 -1
- package/package.json +6 -6
- package/src/tools/tests/path-traversal.test.ts +1 -1
- package/.docs/raw/docs/(docs)/guides/branching.mdx +0 -65
- package/.docs/raw/docs/(docs)/guides/chain-of-thought.mdx +0 -164
- package/.docs/raw/docs/(docs)/guides/editing.mdx +0 -66
- package/.docs/raw/docs/(docs)/guides/speech.mdx +0 -38
- package/.docs/raw/docs/(reference)/api-reference/context-providers/text-message-part-provider.mdx +0 -40
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +0 -260
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-hook-form.mdx +0 -103
- package/.docs/raw/docs/(reference)/api-reference/integrations/vercel-ai-sdk.mdx +0 -254
- package/.docs/raw/docs/(reference)/migrations/v0-14.mdx +0 -159
- package/.docs/raw/docs/runtimes/a2a/index.mdx +0 -298
- package/.docs/raw/docs/runtimes/assistant-transport.mdx +0 -1033
- package/.docs/raw/docs/runtimes/custom/custom-thread-list.mdx +0 -314
- package/.docs/raw/docs/runtimes/custom/local.mdx +0 -1464
- package/.docs/raw/docs/runtimes/data-stream.mdx +0 -422
- package/.docs/raw/docs/runtimes/google-adk/index.mdx +0 -686
- package/.docs/raw/docs/runtimes/helicone.mdx +0 -61
- package/.docs/raw/docs/runtimes/langchain/comparison.mdx +0 -60
- package/.docs/raw/docs/runtimes/langchain/index.mdx +0 -210
- package/.docs/raw/docs/runtimes/langgraph/index.mdx +0 -699
- package/.docs/raw/docs/runtimes/langgraph/tutorial/index.mdx +0 -12
- package/.docs/raw/docs/runtimes/langserve.mdx +0 -116
- package/.docs/raw/docs/runtimes/mastra/full-stack-integration.mdx +0 -218
- package/.docs/raw/docs/runtimes/mastra/overview.mdx +0 -18
- package/.docs/raw/docs/runtimes/mastra/separate-server-integration.mdx +0 -217
- package/dist/prepare-docs/prepare.d.ts.map +0 -1
- package/dist/stdio.d.ts.map +0 -1
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/deprecation-policy.mdx +0 -0
- /package/.docs/raw/docs/{(reference) → migrations}/react-compatibility.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/react-langgraph-v0-7.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/v0-11.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/v0-12.mdx +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Tool Rendering
|
|
3
|
+
description: Register React renderers for assistant-ui tool calls, tool results, and model data parts.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { useAssistantDataUI, useAssistantToolUI } from "@/generated/typeDocs";
|
|
7
|
+
|
|
8
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
9
|
+
{/* Do not edit manually. */}
|
|
10
|
+
|
|
11
|
+
{/* api-reference:start */}
|
|
12
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
13
|
+
{/* Do not edit this block manually. */}
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### DataRenderers
|
|
18
|
+
|
|
19
|
+
Registers renderers for `data` message parts.
|
|
20
|
+
|
|
21
|
+
Data renderers are looked up by the part's `name` field. Use this resource
|
|
22
|
+
directly for a renderer scope, or prefer [useAssistantDataUI](/docs/api-reference/tools/rendering#useassistantdataui) /
|
|
23
|
+
[makeAssistantDataUI](/docs/api-reference/tools/rendering#makeassistantdataui) when registering from React components.
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
const DataRenderers: () => ResourceElement<ClientOutput<"dataRenderers">, undefined>;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### makeAssistantDataUI
|
|
30
|
+
|
|
31
|
+
Creates a React component that registers a named data-part renderer when
|
|
32
|
+
rendered.
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
type AssistantDataUIProps = {
|
|
36
|
+
/** Data part name this renderer handles. */
|
|
37
|
+
name: string;
|
|
38
|
+
/** Component rendered for matching data message parts. */
|
|
39
|
+
render: DataMessagePartComponent<T>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const makeAssistantDataUI: <T = any>(dataUI: AssistantDataUIProps<T>) => AssistantDataUI;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### makeAssistantToolUI
|
|
46
|
+
|
|
47
|
+
Creates a React component that registers a tool-call renderer when rendered.
|
|
48
|
+
|
|
49
|
+
Use this to package reusable display components for tools whose definitions
|
|
50
|
+
are registered elsewhere.
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
type AssistantToolUIProps = {
|
|
54
|
+
/** Name of the tool whose calls should use this renderer. */
|
|
55
|
+
toolName: string;
|
|
56
|
+
/** Component rendered for matching tool-call message parts. */
|
|
57
|
+
render: ToolCallMessagePartComponent<TArgs, TResult>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const makeAssistantToolUI: <TArgs, TResult>(tool: AssistantToolUIProps<TArgs, TResult>) => AssistantToolUI;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### useAssistantDataUI
|
|
64
|
+
|
|
65
|
+
Registers a renderer for named `data` message parts while the component is
|
|
66
|
+
mounted.
|
|
67
|
+
|
|
68
|
+
<ParametersTable {...useAssistantDataUI} />
|
|
69
|
+
|
|
70
|
+
### useAssistantToolUI
|
|
71
|
+
|
|
72
|
+
Registers a tool-call renderer while the component is mounted.
|
|
73
|
+
|
|
74
|
+
This only affects rendering. Pair it with [useAssistantTool](/docs/api-reference/tools/component-tools#useassistanttool),
|
|
75
|
+
[Tools](/docs/api-reference/tools/toolkits#tools), or a backend tool registry to expose the actual tool
|
|
76
|
+
definition to the model.
|
|
77
|
+
|
|
78
|
+
<ParametersTable {...useAssistantToolUI} />
|
|
79
|
+
{/* api-reference:end */}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Tool Status
|
|
3
|
+
description: Read tool arguments, execution status, and result state inside assistant-ui tool UI components.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
9
|
+
{/* Do not edit manually. */}
|
|
10
|
+
|
|
11
|
+
{/* api-reference:start */}
|
|
12
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
13
|
+
{/* Do not edit this block manually. */}
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### useToolArgsStatus
|
|
18
|
+
|
|
19
|
+
Reads whether each argument field for the current tool-call message part is
|
|
20
|
+
still streaming or complete.
|
|
21
|
+
|
|
22
|
+
Use inside a tool-call renderer to avoid showing incomplete argument values
|
|
23
|
+
as final.
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
function WeatherToolUI({
|
|
27
|
+
args,
|
|
28
|
+
}: ToolCallMessagePartProps<{ city: string }>) {
|
|
29
|
+
const { propStatus } = useToolArgsStatus<{ city: string }>();
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<span>
|
|
33
|
+
{propStatus.city === "streaming" ? "Reading city..." : args.city}
|
|
34
|
+
</span>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const useToolArgsStatus: <TArgs extends Record<string, unknown> = Record<string, unknown>>() => ToolArgsStatus<TArgs>;
|
|
41
|
+
```
|
|
42
|
+
{/* api-reference:end */}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Toolkits
|
|
3
|
+
description: Define model-facing tools and compose them into named toolkits registered with an assistant-ui runtime scope.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { ToolDefinition, Tools, tool } from "@/generated/typeDocs";
|
|
7
|
+
|
|
8
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
9
|
+
{/* Do not edit manually. */}
|
|
10
|
+
|
|
11
|
+
{/* api-manual:start */}
|
|
12
|
+
A `Toolkit` is a named map of model-facing tool definitions. The `Tools` resource installs a toolkit into an assistant subtree, registering each tool with the model context and each `render` component with the tool-call renderer scope.
|
|
13
|
+
|
|
14
|
+
Use these APIs when you want a tool's availability to follow your runtime or provider tree rather than the mount state of a specific React component. For tools whose lifetime should follow a specific UI surface, see [Component Tools](/docs/api-reference/tools/component-tools).
|
|
15
|
+
{/* api-manual:end */}
|
|
16
|
+
|
|
17
|
+
{/* api-reference:start */}
|
|
18
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
19
|
+
{/* Do not edit this block manually. */}
|
|
20
|
+
|
|
21
|
+
## API Reference
|
|
22
|
+
|
|
23
|
+
### tool
|
|
24
|
+
|
|
25
|
+
Defines a model tool with its argument schema, execution behavior, and
|
|
26
|
+
optional model-output conversion.
|
|
27
|
+
|
|
28
|
+
This helper keeps reusable tool definitions type-checked and convenient to
|
|
29
|
+
export for a [Toolkit](/docs/api-reference/tools/toolkits#toolkit), [Tools](/docs/api-reference/tools/toolkits#tools), or [useAssistantTool](/docs/api-reference/tools/component-tools#useassistanttool).
|
|
30
|
+
Inference from parameter schemas is currently limited, so provide generic
|
|
31
|
+
arguments when you need precise args or result types.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
const getWeather = tool<{ city: string }, string>({
|
|
35
|
+
type: "frontend",
|
|
36
|
+
description: "Get the weather for a city.",
|
|
37
|
+
parameters: {
|
|
38
|
+
type: "object",
|
|
39
|
+
properties: { city: { type: "string" } },
|
|
40
|
+
required: ["city"],
|
|
41
|
+
},
|
|
42
|
+
execute: async ({ city }) => `Sunny in ${city}`,
|
|
43
|
+
});
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
<ParametersTable {...tool} />
|
|
47
|
+
|
|
48
|
+
### ToolDefinition
|
|
49
|
+
|
|
50
|
+
Tool definition accepted by the React tool registry.
|
|
51
|
+
|
|
52
|
+
Extends the core tool contract with a render component. Human tools rely on
|
|
53
|
+
the renderer to collect input from the user. Frontend tools execute in the
|
|
54
|
+
browser and require a UI surface for their progress and result. Backend
|
|
55
|
+
tools execute server-side and may omit a renderer. The `render` component is
|
|
56
|
+
required for frontend and human tools and optional for backend tools.
|
|
57
|
+
|
|
58
|
+
<ParametersTable {...ToolDefinition} />
|
|
59
|
+
|
|
60
|
+
### Toolkit
|
|
61
|
+
|
|
62
|
+
Named collection of tools exposed to the assistant model.
|
|
63
|
+
|
|
64
|
+
Keys are the tool names the model receives and uses in tool calls.
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
const toolkit = {
|
|
68
|
+
get_weather: {
|
|
69
|
+
type: "frontend",
|
|
70
|
+
description: "Get the weather for a city.",
|
|
71
|
+
parameters: weatherSchema,
|
|
72
|
+
execute: async ({ city }: { city: string }) => fetchWeather(city),
|
|
73
|
+
render: WeatherToolUI,
|
|
74
|
+
},
|
|
75
|
+
} satisfies Toolkit;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
type Toolkit = Record<string, ToolDefinition<any, any>>;
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Tools
|
|
83
|
+
|
|
84
|
+
Registers tools with model context and installs tool-call renderers.
|
|
85
|
+
|
|
86
|
+
Mount this resource near an assistant subtree when you want to expose a
|
|
87
|
+
group of tools declaratively. Tool definitions are registered with model
|
|
88
|
+
context, while each tool renderer is registered with the tools scope for
|
|
89
|
+
message rendering.
|
|
90
|
+
|
|
91
|
+
<ParametersTable {...Tools} />
|
|
92
|
+
{/* api-reference:end */}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Assistant Transport
|
|
3
|
+
description: Command, protocol, and transport types for connecting assistant-ui runtimes across execution boundaries.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { AssistantTransportCommand, AssistantTransportConnectionMetadata, AssistantTransportProtocol, SendCommandsRequestBody, useAssistantTransportRuntime } from "@/generated/typeDocs";
|
|
7
|
+
|
|
8
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
9
|
+
{/* Do not edit manually. */}
|
|
10
|
+
|
|
11
|
+
{/* api-reference:start */}
|
|
12
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
13
|
+
{/* Do not edit this block manually. */}
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### AssistantTransportCommand
|
|
18
|
+
|
|
19
|
+
<ParametersTable {...AssistantTransportCommand} />
|
|
20
|
+
|
|
21
|
+
### AssistantTransportConnectionMetadata
|
|
22
|
+
|
|
23
|
+
<ParametersTable {...AssistantTransportConnectionMetadata} />
|
|
24
|
+
|
|
25
|
+
### AssistantTransportProtocol
|
|
26
|
+
|
|
27
|
+
<ParametersTable {...AssistantTransportProtocol} />
|
|
28
|
+
|
|
29
|
+
### SendCommandsRequestBody
|
|
30
|
+
|
|
31
|
+
<ParametersTable {...SendCommandsRequestBody} />
|
|
32
|
+
|
|
33
|
+
### useAssistantTransportRuntime
|
|
34
|
+
|
|
35
|
+
<ParametersTable {...useAssistantTransportRuntime} />
|
|
36
|
+
|
|
37
|
+
### useAssistantTransportSendCommand
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const useAssistantTransportSendCommand: () => (command: AssistantTransportCommand) => void;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### useAssistantTransportState
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
function useAssistantTransportState(): UserExternalState;
|
|
47
|
+
```
|
|
48
|
+
{/* api-reference:end */}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Assistant Frame
|
|
3
|
+
description: Frame bridge APIs and serialized message types for embedding assistant-ui runtimes in external contexts.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { AssistantFrameHost, AssistantFrameProvider, FrameMessage, SerializedModelContext, SerializedTool, useAssistantFrameHost } from "@/generated/typeDocs";
|
|
7
|
+
|
|
8
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
9
|
+
{/* Do not edit manually. */}
|
|
10
|
+
|
|
11
|
+
{/* api-reference:start */}
|
|
12
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
13
|
+
{/* Do not edit this block manually. */}
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### AssistantFrameHost
|
|
18
|
+
|
|
19
|
+
<ParametersTable {...AssistantFrameHost} />
|
|
20
|
+
|
|
21
|
+
### AssistantFrameProvider
|
|
22
|
+
|
|
23
|
+
<ParametersTable {...AssistantFrameProvider} />
|
|
24
|
+
|
|
25
|
+
### FRAME_MESSAGE_CHANNEL
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
const FRAME_MESSAGE_CHANNEL: "assistant-ui-frame";
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### FrameMessage
|
|
32
|
+
|
|
33
|
+
<ParametersTable {...FrameMessage} />
|
|
34
|
+
|
|
35
|
+
### SerializedModelContext
|
|
36
|
+
|
|
37
|
+
<ParametersTable {...SerializedModelContext} />
|
|
38
|
+
|
|
39
|
+
### SerializedTool
|
|
40
|
+
|
|
41
|
+
<ParametersTable {...SerializedTool} />
|
|
42
|
+
|
|
43
|
+
### useAssistantFrameHost
|
|
44
|
+
|
|
45
|
+
React hook that manages the lifecycle of an AssistantFrameHost and its binding to the current AssistantRuntime.
|
|
46
|
+
|
|
47
|
+
Usage example:
|
|
48
|
+
```typescript
|
|
49
|
+
function MyComponent() {
|
|
50
|
+
const iframeRef = useRef<HTMLIFrameElement>(null);
|
|
51
|
+
|
|
52
|
+
useAssistantFrameHost({
|
|
53
|
+
iframeRef,
|
|
54
|
+
targetOrigin: "https://trusted-domain.com", // optional
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
return <iframe ref={iframeRef} src="..." />;
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
<ParametersTable {...useAssistantFrameHost} />
|
|
62
|
+
{/* api-reference:end */}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Transport API Reference
|
|
3
|
+
description: Transport commands, frame messages, and protocol types for synchronizing assistant-ui runtimes across process or iframe boundaries.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
7
|
+
{/* The page list is generated from exported APIs; edit only the manual prose slot. */}
|
|
8
|
+
|
|
9
|
+
{/* api-manual:start */}
|
|
10
|
+
Transport APIs are for runtimes that cross a network, worker, iframe, or other execution boundary. They document the command and frame contracts that keep assistant-ui state synchronized with an external process.
|
|
11
|
+
{/* api-manual:end */}
|
|
12
|
+
|
|
13
|
+
## Pages
|
|
14
|
+
|
|
15
|
+
<Cards>
|
|
16
|
+
<Card title={"Assistant Transport"} href={"/docs/api-reference/transport/assistant-transport"}>
|
|
17
|
+
{"Command, protocol, and transport types for connecting assistant-ui runtimes across execution boundaries."}
|
|
18
|
+
</Card>
|
|
19
|
+
<Card title={"Assistant Frame"} href={"/docs/api-reference/transport/frame"}>
|
|
20
|
+
{"Frame bridge APIs and serialized message types for embedding assistant-ui runtimes in external contexts."}
|
|
21
|
+
</Card>
|
|
22
|
+
</Cards>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Utilities API Reference
|
|
3
|
+
description: Utility exports for custom rendering, composition, and advanced assistant-ui behavior that does not fit a larger API family.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
7
|
+
{/* The page list is generated from exported APIs; edit only the manual prose slot. */}
|
|
8
|
+
|
|
9
|
+
{/* api-manual:start */}
|
|
10
|
+
Utilities collect small public exports that are useful when building custom assistant-ui components but do not belong to a larger feature area. Start here when you recognize an export name but not its surrounding API family.
|
|
11
|
+
{/* api-manual:end */}
|
|
12
|
+
|
|
13
|
+
## Pages
|
|
14
|
+
|
|
15
|
+
<Cards>
|
|
16
|
+
<Card title={"Utilities"} href={"/docs/api-reference/utilities/miscellaneous"}>
|
|
17
|
+
{"Miscellaneous @assistant-ui/react utilities for custom rendering, composition, and advanced assistant UI behavior."}
|
|
18
|
+
</Card>
|
|
19
|
+
</Cards>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Utilities
|
|
3
|
+
description: Miscellaneous @assistant-ui/react utilities for custom rendering, composition, and advanced assistant UI behavior.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { AssistantCloud, ChainOfThoughtClient, DevToolsHooks, ExportedMessageRepository, GenerativeUIRender, GenerativeUIRenderError, InMemoryThreadList, McpAppRenderer, McpAppsRemoteHost, SingleThreadList, getMcpAppFromToolPart } from "@/generated/typeDocs";
|
|
7
|
+
|
|
8
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
9
|
+
{/* Do not edit manually. */}
|
|
10
|
+
|
|
11
|
+
{/* api-reference:start */}
|
|
12
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
13
|
+
{/* Do not edit this block manually. */}
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### AssistantCloud
|
|
18
|
+
|
|
19
|
+
<ParametersTable {...AssistantCloud} />
|
|
20
|
+
|
|
21
|
+
### ChainOfThoughtClient
|
|
22
|
+
|
|
23
|
+
<ParametersTable {...ChainOfThoughtClient} />
|
|
24
|
+
|
|
25
|
+
### DevToolsHooks
|
|
26
|
+
|
|
27
|
+
<ParametersTable {...DevToolsHooks} />
|
|
28
|
+
|
|
29
|
+
### ExportedMessageRepository
|
|
30
|
+
|
|
31
|
+
<ParametersTable {...ExportedMessageRepository} />
|
|
32
|
+
|
|
33
|
+
### GenerativeUIRender
|
|
34
|
+
|
|
35
|
+
Internal renderer. Resolves a GenerativeUISpec against the consumer
|
|
36
|
+
allowlist. Used by `MessagePrimitive.GenerativeUI` and by
|
|
37
|
+
`MessagePrimitive.Parts` when handling a `generative-ui` part.
|
|
38
|
+
|
|
39
|
+
<ParametersTable {...GenerativeUIRender} />
|
|
40
|
+
|
|
41
|
+
### GenerativeUIRenderError
|
|
42
|
+
|
|
43
|
+
Thrown when a generative-ui spec references a component name that is not
|
|
44
|
+
present in the consumer-provided allowlist. The allowlist is the security
|
|
45
|
+
boundary in the same-realm rendering path — there is no fallback by
|
|
46
|
+
default. Pass `Fallback` to opt into a soft-fail UX.
|
|
47
|
+
|
|
48
|
+
<ParametersTable {...GenerativeUIRenderError} />
|
|
49
|
+
|
|
50
|
+
### getMcpAppFromToolPart
|
|
51
|
+
|
|
52
|
+
Returns MCP app metadata for a tool-call part that points at a `ui://`
|
|
53
|
+
resource.
|
|
54
|
+
|
|
55
|
+
Returns `undefined` when the part has no MCP app metadata or the metadata
|
|
56
|
+
does not reference an assistant-ui MCP app resource.
|
|
57
|
+
|
|
58
|
+
<ParametersTable {...getMcpAppFromToolPart} />
|
|
59
|
+
|
|
60
|
+
### InMemoryThreadList
|
|
61
|
+
|
|
62
|
+
<ParametersTable {...InMemoryThreadList} />
|
|
63
|
+
|
|
64
|
+
### Interactables
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
const Interactables: () => ResourceElement<ClientOutput<"interactables">, undefined>;
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### makeAssistantVisible
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
const makeAssistantVisible: <T extends ComponentType<any>>(Component: T, config?: { clickable?: boolean | undefined; editable?: boolean | undefined; }) => T;
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### McpAppRenderer
|
|
77
|
+
|
|
78
|
+
Creates a tool-call renderer for MCP Apps embedded in assistant messages.
|
|
79
|
+
|
|
80
|
+
Compose this into the `Tools` resource through its `mcpApp` option. When a
|
|
81
|
+
tool-call part carries `mcp.app` metadata for a `ui://` resource, the
|
|
82
|
+
renderer loads that resource from the configured host and displays it in a
|
|
83
|
+
sandboxed frame.
|
|
84
|
+
|
|
85
|
+
<ParametersTable {...McpAppRenderer} />
|
|
86
|
+
|
|
87
|
+
### McpAppsRemoteHost
|
|
88
|
+
|
|
89
|
+
Creates the default HTTP host for MCP App widgets.
|
|
90
|
+
|
|
91
|
+
The host POSTs widget requests to the configured route as `{ method,
|
|
92
|
+
params }`, using the method names expected by the assistant-ui MCP Apps
|
|
93
|
+
guide.
|
|
94
|
+
|
|
95
|
+
<ParametersTable {...McpAppsRemoteHost} />
|
|
96
|
+
|
|
97
|
+
### SingleThreadList
|
|
98
|
+
|
|
99
|
+
A minimal threads scope that wraps a single thread.
|
|
100
|
+
Automatically provided by ExternalThread when no threads scope exists.
|
|
101
|
+
Mounts the provided thread resource element.
|
|
102
|
+
|
|
103
|
+
<ParametersTable {...SingleThreadList} />
|
|
104
|
+
|
|
105
|
+
### Suggestions
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
const Suggestions: {
|
|
109
|
+
(): ResourceElement<
|
|
110
|
+
ClientOutput<"suggestions">,
|
|
111
|
+
undefined
|
|
112
|
+
>;
|
|
113
|
+
(
|
|
114
|
+
suggestions: SuggestionConfig[],
|
|
115
|
+
): ResourceElement<
|
|
116
|
+
ClientOutput<"suggestions">,
|
|
117
|
+
SuggestionConfig[]
|
|
118
|
+
>;
|
|
119
|
+
};
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### unstable_defaultDirectiveFormatter
|
|
123
|
+
|
|
124
|
+
Default directive formatter using the `:type[label]{name=id}` syntax.
|
|
125
|
+
|
|
126
|
+
When `id` equals `label`, the `{name=…}` attribute is omitted for brevity.
|
|
127
|
+
|
|
128
|
+
```ts
|
|
129
|
+
const unstable_defaultDirectiveFormatter: Unstable_DirectiveFormatter;
|
|
130
|
+
```
|
|
131
|
+
{/* api-reference:end */}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Voice API Reference
|
|
3
|
+
description: Realtime voice, speech synthesis, and dictation contracts for wiring spoken assistant flows into React chat UIs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
7
|
+
{/* The page list is generated from exported APIs; edit only the manual prose slot. */}
|
|
8
|
+
|
|
9
|
+
{/* api-manual:start */}
|
|
10
|
+
Voice APIs cover the state and adapters needed for spoken assistant experiences. Use this section when connecting realtime voice sessions, speech synthesis controls, or dictation input to an assistant-ui runtime.
|
|
11
|
+
{/* api-manual:end */}
|
|
12
|
+
|
|
13
|
+
## Pages
|
|
14
|
+
|
|
15
|
+
<Cards>
|
|
16
|
+
<Card title={"Voice Sessions"} href={"/docs/api-reference/voice/session"}>
|
|
17
|
+
{"Create and control realtime assistant-ui voice sessions, state, controls, and helpers."}
|
|
18
|
+
</Card>
|
|
19
|
+
<Card title={"Speech and Dictation"} href={"/docs/api-reference/voice/speech-dictation"}>
|
|
20
|
+
{"Connect speech synthesis and dictation adapters to assistant-ui voice and composer workflows."}
|
|
21
|
+
</Card>
|
|
22
|
+
</Cards>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Voice Sessions
|
|
3
|
+
description: Create and control realtime assistant-ui voice sessions, state, controls, and helpers.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { RealtimeVoiceAdapter, VoiceSessionControls, VoiceSessionHelpers, VoiceSessionState, createVoiceSession } from "@/generated/typeDocs";
|
|
7
|
+
|
|
8
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
9
|
+
{/* Do not edit manually. */}
|
|
10
|
+
|
|
11
|
+
{/* api-reference:start */}
|
|
12
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
13
|
+
{/* Do not edit this block manually. */}
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### createVoiceSession
|
|
18
|
+
|
|
19
|
+
<ParametersTable {...createVoiceSession} />
|
|
20
|
+
|
|
21
|
+
### RealtimeVoiceAdapter
|
|
22
|
+
|
|
23
|
+
<ParametersTable {...RealtimeVoiceAdapter} />
|
|
24
|
+
|
|
25
|
+
### useVoiceControls
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
const useVoiceControls: () => { connect: () => void; disconnect: () => void; mute: () => void; unmute: () => void; };
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### useVoiceState
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
const useVoiceState: () => VoiceSessionState;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### useVoiceVolume
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const useVoiceVolume: () => number;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### VoiceSessionControls
|
|
44
|
+
|
|
45
|
+
<ParametersTable {...VoiceSessionControls} />
|
|
46
|
+
|
|
47
|
+
### VoiceSessionHelpers
|
|
48
|
+
|
|
49
|
+
<ParametersTable {...VoiceSessionHelpers} />
|
|
50
|
+
|
|
51
|
+
### VoiceSessionState
|
|
52
|
+
|
|
53
|
+
<ParametersTable {...VoiceSessionState} />
|
|
54
|
+
{/* api-reference:end */}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Speech and Dictation
|
|
3
|
+
description: Connect speech synthesis and dictation adapters to assistant-ui voice and composer workflows.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { DictationAdapter, DictationState, SpeechSynthesisAdapter, WebSpeechDictationAdapter, WebSpeechSynthesisAdapter } from "@/generated/typeDocs";
|
|
7
|
+
|
|
8
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
9
|
+
{/* Do not edit manually. */}
|
|
10
|
+
|
|
11
|
+
{/* api-reference:start */}
|
|
12
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
13
|
+
{/* Do not edit this block manually. */}
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### DictationAdapter
|
|
18
|
+
|
|
19
|
+
<ParametersTable {...DictationAdapter} />
|
|
20
|
+
|
|
21
|
+
### DictationState
|
|
22
|
+
|
|
23
|
+
<ParametersTable {...DictationState} />
|
|
24
|
+
|
|
25
|
+
### SpeechSynthesisAdapter
|
|
26
|
+
|
|
27
|
+
<ParametersTable {...SpeechSynthesisAdapter} />
|
|
28
|
+
|
|
29
|
+
### WebSpeechDictationAdapter
|
|
30
|
+
|
|
31
|
+
<ParametersTable {...WebSpeechDictationAdapter} />
|
|
32
|
+
|
|
33
|
+
### WebSpeechSynthesisAdapter
|
|
34
|
+
|
|
35
|
+
<ParametersTable {...WebSpeechSynthesisAdapter} />
|
|
36
|
+
{/* api-reference:end */}
|