@assistant-ui/mcp-docs-server 0.2.3 → 0.3.1
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/README.md +16 -43
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -91
- package/dist/index.js.map +1 -1
- package/dist/proxy.d.ts +9 -0
- package/dist/proxy.d.ts.map +1 -0
- package/dist/proxy.js +91 -0
- package/dist/proxy.js.map +1 -0
- package/package.json +8 -12
- package/src/index.ts +3 -115
- package/src/proxy.test.ts +385 -0
- package/src/proxy.ts +126 -0
- package/.docs/organized/code-examples/waterfall.md +0 -807
- package/.docs/organized/code-examples/with-a2a.md +0 -675
- package/.docs/organized/code-examples/with-ag-ui.md +0 -553
- package/.docs/organized/code-examples/with-ai-sdk-v7.md +0 -466
- package/.docs/organized/code-examples/with-artifacts.md +0 -815
- package/.docs/organized/code-examples/with-assistant-transport.md +0 -576
- package/.docs/organized/code-examples/with-browser-extension.md +0 -371
- package/.docs/organized/code-examples/with-chain-of-thought.md +0 -962
- package/.docs/organized/code-examples/with-cloud-standalone.md +0 -681
- package/.docs/organized/code-examples/with-cloud.md +0 -439
- package/.docs/organized/code-examples/with-custom-thread-list.md +0 -569
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +0 -527
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +0 -697
- package/.docs/organized/code-examples/with-eve.md +0 -405
- package/.docs/organized/code-examples/with-expo.md +0 -2246
- package/.docs/organized/code-examples/with-external-store.md +0 -421
- package/.docs/organized/code-examples/with-ffmpeg.md +0 -829
- package/.docs/organized/code-examples/with-generative-ui.md +0 -1810
- package/.docs/organized/code-examples/with-google-adk.md +0 -368
- package/.docs/organized/code-examples/with-heat-graph.md +0 -304
- package/.docs/organized/code-examples/with-image-generation.md +0 -463
- package/.docs/organized/code-examples/with-interactables.md +0 -733
- package/.docs/organized/code-examples/with-langchain.md +0 -446
- package/.docs/organized/code-examples/with-langgraph.md +0 -855
- package/.docs/organized/code-examples/with-livekit.md +0 -643
- package/.docs/organized/code-examples/with-mcp.md +0 -782
- package/.docs/organized/code-examples/with-nuxt.md +0 -2428
- package/.docs/organized/code-examples/with-opencode.md +0 -1974
- package/.docs/organized/code-examples/with-openui.md +0 -450
- package/.docs/organized/code-examples/with-pi.md +0 -2084
- package/.docs/organized/code-examples/with-react-hook-form.md +0 -727
- package/.docs/organized/code-examples/with-react-ink-web.md +0 -740
- package/.docs/organized/code-examples/with-react-ink.md +0 -473
- package/.docs/organized/code-examples/with-react-router.md +0 -936
- package/.docs/organized/code-examples/with-resumable-stream.md +0 -668
- package/.docs/organized/code-examples/with-store.md +0 -679
- package/.docs/organized/code-examples/with-svelte.md +0 -415
- package/.docs/organized/code-examples/with-sveltekit.md +0 -1061
- package/.docs/organized/code-examples/with-tanstack.md +0 -812
- package/.docs/organized/code-examples/with-tap-runtime.md +0 -813
- package/.docs/organized/code-examples/with-virtualized-thread.md +0 -681
- package/.docs/organized/code-examples/with-vue.md +0 -408
- package/.docs/raw/docs/(getting-started)/architecture.mdx +0 -146
- package/.docs/raw/docs/(getting-started)/base-ui.mdx +0 -39
- package/.docs/raw/docs/(getting-started)/cli.mdx +0 -542
- package/.docs/raw/docs/(getting-started)/devtools.mdx +0 -79
- package/.docs/raw/docs/(getting-started)/index.mdx +0 -23
- package/.docs/raw/docs/(getting-started)/installation.mdx +0 -483
- package/.docs/raw/docs/(getting-started)/llm.mdx +0 -211
- package/.docs/raw/docs/(getting-started)/rtl.mdx +0 -78
- package/.docs/raw/docs/(reference)/api-reference/adapters/attachments.mdx +0 -36
- package/.docs/raw/docs/(reference)/api-reference/adapters/feedback.mdx +0 -20
- package/.docs/raw/docs/(reference)/api-reference/adapters/index.mdx +0 -34
- package/.docs/raw/docs/(reference)/api-reference/adapters/model.mdx +0 -44
- package/.docs/raw/docs/(reference)/api-reference/adapters/persistence.mdx +0 -59
- package/.docs/raw/docs/(reference)/api-reference/adapters/runtime.mdx +0 -20
- package/.docs/raw/docs/(reference)/api-reference/adapters/suggestions.mdx +0 -26
- package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +0 -84
- package/.docs/raw/docs/(reference)/api-reference/context-providers/index.mdx +0 -22
- package/.docs/raw/docs/(reference)/api-reference/context-providers/scoped-providers.mdx +0 -64
- package/.docs/raw/docs/(reference)/api-reference/external-store/index.mdx +0 -22
- package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +0 -57
- package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +0 -49
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/a2ui.mdx +0 -40
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/actions.mdx +0 -56
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/components.mdx +0 -86
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +0 -39
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/json-generative-ui.mdx +0 -42
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/rendering.mdx +0 -84
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +0 -85
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/spec.mdx +0 -45
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +0 -93
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/tokens.mdx +0 -62
- package/.docs/raw/docs/(reference)/api-reference/hooks/composer-triggers.mdx +0 -129
- package/.docs/raw/docs/(reference)/api-reference/hooks/index.mdx +0 -31
- package/.docs/raw/docs/(reference)/api-reference/hooks/model-context.mdx +0 -34
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +0 -350
- package/.docs/raw/docs/(reference)/api-reference/hooks/runtimes.mdx +0 -28
- package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +0 -97
- package/.docs/raw/docs/(reference)/api-reference/integrations/ai-sdk.mdx +0 -200
- package/.docs/raw/docs/(reference)/api-reference/integrations/cloud-ai-sdk.mdx +0 -24
- package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +0 -118
- package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +0 -28
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +0 -37
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +0 -50
- package/.docs/raw/docs/(reference)/api-reference/model-context/index.mdx +0 -22
- package/.docs/raw/docs/(reference)/api-reference/model-context/registry.mdx +0 -20
- package/.docs/raw/docs/(reference)/api-reference/overview.mdx +0 -566
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar-more.mdx +0 -152
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar.mdx +0 -239
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +0 -208
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-modal.mdx +0 -108
- package/.docs/raw/docs/(reference)/api-reference/primitives/attachment.mdx +0 -99
- package/.docs/raw/docs/(reference)/api-reference/primitives/branch-picker.mdx +0 -145
- package/.docs/raw/docs/(reference)/api-reference/primitives/chain-of-thought.mdx +0 -82
- package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +0 -637
- package/.docs/raw/docs/(reference)/api-reference/primitives/composition.mdx +0 -22
- package/.docs/raw/docs/(reference)/api-reference/primitives/error.mdx +0 -65
- package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +0 -73
- package/.docs/raw/docs/(reference)/api-reference/primitives/message-part.mdx +0 -117
- package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +0 -339
- package/.docs/raw/docs/(reference)/api-reference/primitives/queue-item.mdx +0 -77
- package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +0 -88
- package/.docs/raw/docs/(reference)/api-reference/primitives/suggestion.mdx +0 -81
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item-more.mdx +0 -129
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item.mdx +0 -138
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list.mdx +0 -122
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread.mdx +0 -289
- package/.docs/raw/docs/(reference)/api-reference/runtimes/assistant-runtime.mdx +0 -20
- package/.docs/raw/docs/(reference)/api-reference/runtimes/attachment-runtime.mdx +0 -24
- package/.docs/raw/docs/(reference)/api-reference/runtimes/composer-runtime.mdx +0 -32
- package/.docs/raw/docs/(reference)/api-reference/runtimes/index.mdx +0 -43
- package/.docs/raw/docs/(reference)/api-reference/runtimes/message-part-runtime.mdx +0 -43
- package/.docs/raw/docs/(reference)/api-reference/runtimes/message-runtime.mdx +0 -24
- package/.docs/raw/docs/(reference)/api-reference/runtimes/queue-state.mdx +0 -20
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-item-runtime.mdx +0 -24
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-runtime.mdx +0 -24
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-runtime.mdx +0 -36
- package/.docs/raw/docs/(reference)/api-reference/tools/component-tools.mdx +0 -85
- package/.docs/raw/docs/(reference)/api-reference/tools/index.mdx +0 -45
- package/.docs/raw/docs/(reference)/api-reference/tools/interactables-legacy.mdx +0 -55
- package/.docs/raw/docs/(reference)/api-reference/tools/interactables.mdx +0 -151
- package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +0 -106
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +0 -62
- package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +0 -178
- package/.docs/raw/docs/(reference)/api-reference/transport/assistant-transport.mdx +0 -48
- package/.docs/raw/docs/(reference)/api-reference/transport/frame.mdx +0 -62
- package/.docs/raw/docs/(reference)/api-reference/transport/index.mdx +0 -22
- package/.docs/raw/docs/(reference)/api-reference/utilities/index.mdx +0 -19
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +0 -152
- package/.docs/raw/docs/(reference)/api-reference/voice/index.mdx +0 -22
- package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +0 -54
- package/.docs/raw/docs/(reference)/api-reference/voice/speech-dictation.mdx +0 -36
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +0 -527
- package/.docs/raw/docs/cloud/ai-sdk.mdx +0 -604
- package/.docs/raw/docs/cloud/authorization.mdx +0 -252
- package/.docs/raw/docs/cloud/index.mdx +0 -46
- package/.docs/raw/docs/cloud/langgraph.mdx +0 -554
- package/.docs/raw/docs/copilots/assistant-frame.mdx +0 -411
- package/.docs/raw/docs/copilots/make-assistant-visible.mdx +0 -82
- package/.docs/raw/docs/copilots/model-context.mdx +0 -156
- package/.docs/raw/docs/copilots/motivation.mdx +0 -202
- package/.docs/raw/docs/copilots/use-assistant-instructions.mdx +0 -64
- package/.docs/raw/docs/guides/attachments.mdx +0 -619
- package/.docs/raw/docs/guides/branching.mdx +0 -76
- package/.docs/raw/docs/guides/chain-of-thought.mdx +0 -164
- package/.docs/raw/docs/guides/chatgpt-subscription.mdx +0 -108
- package/.docs/raw/docs/guides/context-api.mdx +0 -619
- package/.docs/raw/docs/guides/dictation.mdx +0 -298
- package/.docs/raw/docs/guides/editing.mdx +0 -102
- package/.docs/raw/docs/guides/electron.mdx +0 -369
- package/.docs/raw/docs/guides/headless-composer-input.mdx +0 -113
- package/.docs/raw/docs/guides/image-generation.mdx +0 -74
- package/.docs/raw/docs/guides/index.mdx +0 -117
- package/.docs/raw/docs/guides/input-history.mdx +0 -55
- package/.docs/raw/docs/guides/latex.mdx +0 -158
- package/.docs/raw/docs/guides/mentions.mdx +0 -575
- package/.docs/raw/docs/guides/message-timing.mdx +0 -215
- package/.docs/raw/docs/guides/quoting.mdx +0 -169
- package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +0 -212
- package/.docs/raw/docs/guides/resumable-stream-stores.mdx +0 -152
- package/.docs/raw/docs/guides/resumable-streams.mdx +0 -292
- package/.docs/raw/docs/guides/slash-commands.mdx +0 -358
- package/.docs/raw/docs/guides/speech.mdx +0 -172
- package/.docs/raw/docs/guides/suggestions.mdx +0 -384
- package/.docs/raw/docs/guides/virtualization.mdx +0 -133
- package/.docs/raw/docs/guides/voice.mdx +0 -310
- package/.docs/raw/docs/ink/adapters.mdx +0 -99
- package/.docs/raw/docs/ink/custom-backend.mdx +0 -254
- package/.docs/raw/docs/ink/hooks.mdx +0 -469
- package/.docs/raw/docs/ink/index.mdx +0 -237
- package/.docs/raw/docs/ink/migration.mdx +0 -138
- package/.docs/raw/docs/ink/primitives.mdx +0 -1259
- package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +0 -528
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +0 -188
- package/.docs/raw/docs/integrations/auth/clerk.mdx +0 -166
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +0 -191
- package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +0 -88
- package/.docs/raw/docs/integrations/frameworks/cloudflare-agents.mdx +0 -283
- package/.docs/raw/docs/integrations/frameworks/mastra/full-stack.mdx +0 -188
- package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +0 -57
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +0 -201
- package/.docs/raw/docs/integrations/gateways/index.mdx +0 -162
- package/.docs/raw/docs/integrations/index.mdx +0 -178
- package/.docs/raw/docs/integrations/observability/helicone.mdx +0 -129
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +0 -161
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +0 -151
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +0 -773
- package/.docs/raw/docs/migrations/deprecation-policy.mdx +0 -42
- package/.docs/raw/docs/migrations/index.mdx +0 -50
- package/.docs/raw/docs/migrations/react-compatibility.mdx +0 -74
- package/.docs/raw/docs/migrations/react-langgraph-v0-7.mdx +0 -328
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +0 -236
- package/.docs/raw/docs/migrations/v0-11.mdx +0 -172
- package/.docs/raw/docs/migrations/v0-12.mdx +0 -302
- package/.docs/raw/docs/migrations/v0-14.mdx +0 -297
- package/.docs/raw/docs/migrations/v0-15.mdx +0 -270
- package/.docs/raw/docs/primitives/action-bar.mdx +0 -352
- package/.docs/raw/docs/primitives/assistant-modal.mdx +0 -216
- package/.docs/raw/docs/primitives/attachment.mdx +0 -217
- package/.docs/raw/docs/primitives/branch-picker.mdx +0 -222
- package/.docs/raw/docs/primitives/chain-of-thought.mdx +0 -315
- package/.docs/raw/docs/primitives/composer.mdx +0 -659
- package/.docs/raw/docs/primitives/error.mdx +0 -142
- package/.docs/raw/docs/primitives/index.mdx +0 -99
- package/.docs/raw/docs/primitives/message.mdx +0 -618
- package/.docs/raw/docs/primitives/selection-toolbar.mdx +0 -191
- package/.docs/raw/docs/primitives/suggestion.mdx +0 -254
- package/.docs/raw/docs/primitives/thread-list.mdx +0 -467
- package/.docs/raw/docs/primitives/thread.mdx +0 -509
- package/.docs/raw/docs/react-native/adapters.mdx +0 -94
- package/.docs/raw/docs/react-native/custom-backend.mdx +0 -207
- package/.docs/raw/docs/react-native/hooks.mdx +0 -339
- package/.docs/raw/docs/react-native/index.mdx +0 -289
- package/.docs/raw/docs/react-native/migration.mdx +0 -142
- package/.docs/raw/docs/react-native/primitives.mdx +0 -976
- package/.docs/raw/docs/runtimes/a2a/client-and-hooks.mdx +0 -399
- package/.docs/raw/docs/runtimes/a2a/overview.mdx +0 -60
- package/.docs/raw/docs/runtimes/a2a/quickstart.mdx +0 -216
- package/.docs/raw/docs/runtimes/ag-ui/agent-state.mdx +0 -124
- package/.docs/raw/docs/runtimes/ag-ui/overview.mdx +0 -70
- package/.docs/raw/docs/runtimes/ag-ui/quickstart.mdx +0 -243
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +0 -267
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +0 -61
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +0 -122
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +0 -135
- package/.docs/raw/docs/runtimes/ai-sdk/v6-legacy.mdx +0 -636
- package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +0 -731
- package/.docs/raw/docs/runtimes/claude-managed-agents.mdx +0 -118
- package/.docs/raw/docs/runtimes/concepts/adapters.mdx +0 -265
- package/.docs/raw/docs/runtimes/concepts/architecture.mdx +0 -167
- package/.docs/raw/docs/runtimes/concepts/stability.mdx +0 -68
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +0 -513
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +0 -763
- package/.docs/raw/docs/runtimes/custom/data-stream.mdx +0 -339
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +0 -957
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +0 -902
- package/.docs/raw/docs/runtimes/custom/overview.mdx +0 -71
- package/.docs/raw/docs/runtimes/eve/overview.mdx +0 -151
- package/.docs/raw/docs/runtimes/eve/quickstart.mdx +0 -192
- package/.docs/raw/docs/runtimes/google-adk/api.mdx +0 -256
- package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +0 -784
- package/.docs/raw/docs/runtimes/google-adk/overview.mdx +0 -69
- package/.docs/raw/docs/runtimes/google-adk/quickstart.mdx +0 -229
- package/.docs/raw/docs/runtimes/langchain.mdx +0 -901
- package/.docs/raw/docs/runtimes/langgraph/agent-state.mdx +0 -181
- package/.docs/raw/docs/runtimes/langgraph/generative-ui.mdx +0 -305
- package/.docs/raw/docs/runtimes/langgraph/interrupts.mdx +0 -104
- package/.docs/raw/docs/runtimes/langgraph/overview.mdx +0 -84
- package/.docs/raw/docs/runtimes/langgraph/quickstart.mdx +0 -496
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +0 -144
- package/.docs/raw/docs/runtimes/langgraph/threads.mdx +0 -113
- package/.docs/raw/docs/runtimes/langgraph/tutorial/introduction.mdx +0 -29
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-1.mdx +0 -93
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +0 -347
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +0 -393
- package/.docs/raw/docs/runtimes/opencode/hooks.mdx +0 -194
- package/.docs/raw/docs/runtimes/opencode/overview.mdx +0 -58
- package/.docs/raw/docs/runtimes/opencode/quickstart.mdx +0 -119
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +0 -133
- package/.docs/raw/docs/tools/a2ui.mdx +0 -107
- package/.docs/raw/docs/tools/backend.mdx +0 -147
- package/.docs/raw/docs/tools/defining-tools.mdx +0 -574
- package/.docs/raw/docs/tools/dynamic-tools.mdx +0 -112
- package/.docs/raw/docs/tools/generative-ui-primitive.mdx +0 -180
- package/.docs/raw/docs/tools/generative-ui-slack.mdx +0 -167
- package/.docs/raw/docs/tools/generative-ui-teams.mdx +0 -160
- package/.docs/raw/docs/tools/generative-ui.mdx +0 -322
- package/.docs/raw/docs/tools/index.mdx +0 -72
- package/.docs/raw/docs/tools/interactables.mdx +0 -1084
- package/.docs/raw/docs/tools/mcp-apps.mdx +0 -363
- package/.docs/raw/docs/tools/mcp.mdx +0 -466
- package/.docs/raw/docs/tools/multi-agent.mdx +0 -237
- package/.docs/raw/docs/tools/openui.mdx +0 -175
- package/.docs/raw/docs/tools/tool-ui.mdx +0 -1020
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +0 -428
- package/.docs/raw/docs/ui/assistant-modal.mdx +0 -166
- package/.docs/raw/docs/ui/assistant-sidebar.mdx +0 -89
- package/.docs/raw/docs/ui/attachment.mdx +0 -279
- package/.docs/raw/docs/ui/composer-trigger-popover.mdx +0 -247
- package/.docs/raw/docs/ui/context-display.mdx +0 -148
- package/.docs/raw/docs/ui/directive-text.mdx +0 -114
- package/.docs/raw/docs/ui/file.mdx +0 -159
- package/.docs/raw/docs/ui/follow-up-suggestions.mdx +0 -82
- package/.docs/raw/docs/ui/image.mdx +0 -102
- package/.docs/raw/docs/ui/markdown.mdx +0 -103
- package/.docs/raw/docs/ui/mcp-config.mdx +0 -107
- package/.docs/raw/docs/ui/mermaid.mdx +0 -92
- package/.docs/raw/docs/ui/message-timing.mdx +0 -93
- package/.docs/raw/docs/ui/model-selector.mdx +0 -455
- package/.docs/raw/docs/ui/part-grouping.mdx +0 -614
- package/.docs/raw/docs/ui/quote.mdx +0 -211
- package/.docs/raw/docs/ui/reasoning.mdx +0 -214
- package/.docs/raw/docs/ui/scrollbar.mdx +0 -77
- package/.docs/raw/docs/ui/sources.mdx +0 -186
- package/.docs/raw/docs/ui/streamdown.mdx +0 -392
- package/.docs/raw/docs/ui/syntax-highlighting.mdx +0 -205
- package/.docs/raw/docs/ui/thread-list.mdx +0 -411
- package/.docs/raw/docs/ui/thread.mdx +0 -559
- package/.docs/raw/docs/ui/tool-fallback.mdx +0 -141
- package/.docs/raw/docs/ui/tool-group.mdx +0 -240
- package/.docs/raw/docs/ui/voice.mdx +0 -173
- package/.docs/raw/docs/utilities/heat-graph.mdx +0 -237
- package/.docs/raw/docs/utilities/react-o11y.mdx +0 -362
- package/.docs/raw/docs/utilities/tw-shimmer.mdx +0 -212
- package/dist/constants.d.ts +0 -14
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -19
- package/dist/constants.js.map +0 -1
- package/dist/prepare-docs/code-examples.d.ts +0 -5
- package/dist/prepare-docs/code-examples.d.ts.map +0 -1
- package/dist/prepare-docs/code-examples.js +0 -117
- package/dist/prepare-docs/code-examples.js.map +0 -1
- package/dist/prepare-docs/copy-raw.d.ts +0 -5
- package/dist/prepare-docs/copy-raw.d.ts.map +0 -1
- package/dist/prepare-docs/copy-raw.js +0 -49
- package/dist/prepare-docs/copy-raw.js.map +0 -1
- package/dist/prepare-docs/prepare.d.ts +0 -1
- package/dist/prepare-docs/prepare.js +0 -22
- package/dist/prepare-docs/prepare.js.map +0 -1
- package/dist/prompts/xulux-playground.d.ts +0 -12
- package/dist/prompts/xulux-playground.d.ts.map +0 -1
- package/dist/prompts/xulux-playground.js +0 -33
- package/dist/prompts/xulux-playground.js.map +0 -1
- package/dist/tools/docs.d.ts +0 -22
- package/dist/tools/docs.d.ts.map +0 -1
- package/dist/tools/docs.js +0 -177
- package/dist/tools/docs.js.map +0 -1
- package/dist/tools/examples.d.ts +0 -24
- package/dist/tools/examples.d.ts.map +0 -1
- package/dist/tools/examples.js +0 -87
- package/dist/tools/examples.js.map +0 -1
- package/dist/tools/resources.d.ts +0 -6
- package/dist/tools/resources.d.ts.map +0 -1
- package/dist/tools/resources.js +0 -75
- package/dist/tools/resources.js.map +0 -1
- package/dist/tools/search.d.ts +0 -24
- package/dist/tools/search.d.ts.map +0 -1
- package/dist/tools/search.js +0 -39
- package/dist/tools/search.js.map +0 -1
- package/dist/tools/tests/mcp-test-client.d.ts +0 -15
- package/dist/tools/tests/mcp-test-client.d.ts.map +0 -1
- package/dist/tools/tests/mcp-test-client.js +0 -68
- package/dist/tools/tests/mcp-test-client.js.map +0 -1
- package/dist/tools/tests/test-setup.d.ts +0 -7
- package/dist/tools/tests/test-setup.d.ts.map +0 -1
- package/dist/tools/tests/test-setup.js +0 -36
- package/dist/tools/tests/test-setup.js.map +0 -1
- package/dist/tools/xulux-templates.d.ts +0 -58
- package/dist/tools/xulux-templates.d.ts.map +0 -1
- package/dist/tools/xulux-templates.js +0 -84
- package/dist/tools/xulux-templates.js.map +0 -1
- package/dist/utils/cache.d.ts +0 -5
- package/dist/utils/cache.d.ts.map +0 -1
- package/dist/utils/cache.js +0 -18
- package/dist/utils/cache.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -10
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -20
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/mcp-format.d.ts +0 -11
- package/dist/utils/mcp-format.d.ts.map +0 -1
- package/dist/utils/mcp-format.js +0 -14
- package/dist/utils/mcp-format.js.map +0 -1
- package/dist/utils/mdx.d.ts +0 -12
- package/dist/utils/mdx.d.ts.map +0 -1
- package/dist/utils/mdx.js +0 -45
- package/dist/utils/mdx.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -12
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js +0 -93
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/search.d.ts +0 -10
- package/dist/utils/search.d.ts.map +0 -1
- package/dist/utils/search.js +0 -97
- package/dist/utils/search.js.map +0 -1
- package/dist/utils/security.d.ts +0 -5
- package/dist/utils/security.d.ts.map +0 -1
- package/dist/utils/security.js +0 -22
- package/dist/utils/security.js.map +0 -1
- package/dist/xulux/catalog-client.d.ts +0 -14
- package/dist/xulux/catalog-client.d.ts.map +0 -1
- package/dist/xulux/catalog-client.js +0 -112
- package/dist/xulux/catalog-client.js.map +0 -1
- package/dist/xulux/fallback-catalog.d.ts +0 -7
- package/dist/xulux/fallback-catalog.d.ts.map +0 -1
- package/dist/xulux/fallback-catalog.js +0 -47
- package/dist/xulux/fallback-catalog.js.map +0 -1
- package/dist/xulux/fetch-sandbox.d.ts +0 -5
- package/dist/xulux/fetch-sandbox.d.ts.map +0 -1
- package/dist/xulux/fetch-sandbox.js +0 -40
- package/dist/xulux/fetch-sandbox.js.map +0 -1
- package/dist/xulux/template-service.d.ts +0 -84
- package/dist/xulux/template-service.d.ts.map +0 -1
- package/dist/xulux/template-service.js +0 -223
- package/dist/xulux/template-service.js.map +0 -1
- package/dist/xulux/types.d.ts +0 -55
- package/dist/xulux/types.d.ts.map +0 -1
- package/dist/xulux/types.js +0 -6
- package/dist/xulux/types.js.map +0 -1
- package/src/constants.ts +0 -24
- package/src/prepare-docs/code-examples.ts +0 -158
- package/src/prepare-docs/copy-raw.ts +0 -50
- package/src/prepare-docs/prepare.ts +0 -24
- package/src/prompts/xulux-playground.ts +0 -36
- package/src/tools/docs.ts +0 -255
- package/src/tools/examples.ts +0 -114
- package/src/tools/resources.ts +0 -111
- package/src/tools/search.ts +0 -46
- package/src/tools/tests/completions.test.ts +0 -60
- package/src/tools/tests/directory-size-cap.test.ts +0 -50
- package/src/tools/tests/docs.test.ts +0 -147
- package/src/tools/tests/examples.test.ts +0 -94
- package/src/tools/tests/integration.test.ts +0 -45
- package/src/tools/tests/json-parsing.test.ts +0 -23
- package/src/tools/tests/listings-cache.test.ts +0 -19
- package/src/tools/tests/mcp-protocol.test.ts +0 -216
- package/src/tools/tests/mcp-test-client.ts +0 -111
- package/src/tools/tests/path-traversal.test.ts +0 -84
- package/src/tools/tests/resources.test.ts +0 -133
- package/src/tools/tests/search.test.ts +0 -37
- package/src/tools/tests/test-setup.ts +0 -50
- package/src/tools/tests/xulux-templates.test.ts +0 -325
- package/src/tools/xulux-templates.ts +0 -141
- package/src/utils/cache.ts +0 -20
- package/src/utils/logger.ts +0 -20
- package/src/utils/mcp-format.ts +0 -14
- package/src/utils/mdx.ts +0 -59
- package/src/utils/paths.ts +0 -139
- package/src/utils/search.ts +0 -131
- package/src/utils/security.ts +0 -52
- package/src/utils/tests/cache.test.ts +0 -51
- package/src/utils/tests/mcp-format.test.ts +0 -22
- package/src/utils/tests/security.test.ts +0 -119
- package/src/xulux/catalog-client.ts +0 -150
- package/src/xulux/fallback-catalog.ts +0 -63
- package/src/xulux/fetch-sandbox.ts +0 -56
- package/src/xulux/template-service.ts +0 -406
- package/src/xulux/types.ts +0 -64
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Tools API Reference
|
|
3
|
-
description: Tool definitions, React renderers, status helpers, and toolkits for exposing callable app capabilities to assistant-ui chat models.
|
|
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
|
-
Use these APIs when your assistant needs to call application code, render a custom tool result, or expose tool state inside a React UI.
|
|
11
|
-
|
|
12
|
-
Toolkits are the current registration API. Tool **rendering** and **status** are independent of the tool's execution location and apply to frontend, backend, human, and MCP tools.
|
|
13
|
-
|
|
14
|
-
| | `Tools({ toolkit })` |
|
|
15
|
-
| --- | --- |
|
|
16
|
-
| Scope | Entire assistant subtree below the mount point |
|
|
17
|
-
| Lifecycle | Tied to the runtime / provider tree |
|
|
18
|
-
| Typical use | App-wide tools, dynamic scoped tools, MCP merging, tools defined alongside the runtime |
|
|
19
|
-
| Stable reference | Pass a stable `toolkit` (module scope or `useMemo`) |
|
|
20
|
-
|
|
21
|
-
`useAssistantTool`, `makeAssistantTool`, `useAssistantToolUI`, and `makeAssistantToolUI` are deprecated compatibility APIs. See [Migrating Tools to Toolkits](/docs/migrations/toolkit-tools).
|
|
22
|
-
{/* api-manual:end */}
|
|
23
|
-
|
|
24
|
-
## Pages
|
|
25
|
-
|
|
26
|
-
<Cards>
|
|
27
|
-
<Card title={"Toolkits"} href={"/docs/api-reference/tools/toolkits"}>
|
|
28
|
-
{"Define model-facing tools and compose them into named toolkits registered with an assistant-ui runtime scope."}
|
|
29
|
-
</Card>
|
|
30
|
-
<Card title={"Component Tools"} href={"/docs/api-reference/tools/component-tools"}>
|
|
31
|
-
{"Register assistant tools from mounted React components, scoped to the lifetime of part of the UI tree."}
|
|
32
|
-
</Card>
|
|
33
|
-
<Card title={"Tool Rendering"} href={"/docs/api-reference/tools/rendering"}>
|
|
34
|
-
{"Register React renderers for assistant-ui tool calls, tool results, and model data parts."}
|
|
35
|
-
</Card>
|
|
36
|
-
<Card title={"Tool Status"} href={"/docs/api-reference/tools/status"}>
|
|
37
|
-
{"Read tool arguments, execution status, and result state inside assistant-ui tool UI components."}
|
|
38
|
-
</Card>
|
|
39
|
-
<Card title={"Interactables"} href={"/docs/api-reference/tools/interactables"}>
|
|
40
|
-
{"Unstable interactables APIs for model-editable app and message state, including hooks, resources, toolkit helpers, and snapshot utilities."}
|
|
41
|
-
</Card>
|
|
42
|
-
<Card title={"Interactables (legacy)"} href={"/docs/api-reference/tools/interactables-legacy"}>
|
|
43
|
-
{"Deprecated legacy interactables APIs for registering model-editable components with per-instance update tools."}
|
|
44
|
-
</Card>
|
|
45
|
-
</Cards>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Interactables (legacy)
|
|
3
|
-
description: Deprecated legacy interactables APIs for registering model-editable components with per-instance update tools.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { Interactables, useAssistantInteractable, useInteractableState } 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
|
-
### Interactables
|
|
18
|
-
|
|
19
|
-
<Callout type="warn">
|
|
20
|
-
<strong>Deprecated.</strong> Since 2026-06-14 — migrate to the Unstable / Experimental API.
|
|
21
|
-
Scheduled for removal on/after 2026-09-14. See
|
|
22
|
-
[Interactables migration guide](https://www.assistant-ui.com/docs/tools/interactables#migrating-from-the-previous-api).
|
|
23
|
-
</Callout>
|
|
24
|
-
|
|
25
|
-
<ParametersTable {...Interactables} />
|
|
26
|
-
|
|
27
|
-
### useAssistantInteractable
|
|
28
|
-
|
|
29
|
-
<Callout type="warn">
|
|
30
|
-
<strong>Deprecated.</strong> Since 2026-06-14 — migrate to the Unstable / Experimental API.
|
|
31
|
-
Scheduled for removal on/after 2026-09-14. See
|
|
32
|
-
[Interactables migration guide](https://www.assistant-ui.com/docs/tools/interactables#migrating-from-the-previous-api).
|
|
33
|
-
</Callout>
|
|
34
|
-
|
|
35
|
-
Registers an interactable with the AI assistant.
|
|
36
|
-
|
|
37
|
-
This hook handles registration only. To read and write the interactable's
|
|
38
|
-
state, use [useInteractableState](/docs/api-reference/tools/interactables-legacy#useinteractablestate) with the returned id.
|
|
39
|
-
|
|
40
|
-
<ParametersTable {...useAssistantInteractable} />
|
|
41
|
-
|
|
42
|
-
### useInteractableState
|
|
43
|
-
|
|
44
|
-
<Callout type="warn">
|
|
45
|
-
<strong>Deprecated.</strong> Since 2026-06-14 — migrate to the Unstable / Experimental API.
|
|
46
|
-
Scheduled for removal on/after 2026-09-14. See
|
|
47
|
-
[Interactables migration guide](https://www.assistant-ui.com/docs/tools/interactables#migrating-from-the-previous-api).
|
|
48
|
-
</Callout>
|
|
49
|
-
|
|
50
|
-
Reads and writes the state of a registered interactable.
|
|
51
|
-
|
|
52
|
-
Pair with [useAssistantInteractable](/docs/api-reference/tools/interactables-legacy#useassistantinteractable) which handles registration.
|
|
53
|
-
|
|
54
|
-
<ParametersTable {...useInteractableState} />
|
|
55
|
-
{/* api-reference:end */}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Interactables
|
|
3
|
-
description: Unstable interactables APIs for model-editable app and message state, including hooks, resources, toolkit helpers, and snapshot utilities.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions } 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
|
-
### unstable_Interactables
|
|
18
|
-
|
|
19
|
-
<Callout type="tip">
|
|
20
|
-
<strong>Experimental.</strong> Unstable / Experimental (not actually removed).
|
|
21
|
-
</Callout>
|
|
22
|
-
|
|
23
|
-
Registers the unstable interactables store scope.
|
|
24
|
-
|
|
25
|
-
```ts
|
|
26
|
-
const unstable_Interactables: Resource<ClientOutput<"unstable_interactables">, [(Unstable_InteractablesConfig | undefined)?]>;
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### unstable_useInteractable
|
|
30
|
-
|
|
31
|
-
<Callout type="tip">
|
|
32
|
-
<strong>Experimental.</strong> Unstable / Experimental (not actually removed).
|
|
33
|
-
</Callout>
|
|
34
|
-
|
|
35
|
-
Registers an interactable with the AI assistant and returns its live state,
|
|
36
|
-
like `useState` that the model can also read and update.
|
|
37
|
-
|
|
38
|
-
Call this once per place that shows the interactable. Other components can
|
|
39
|
-
read and write the same instance by passing its `id` to
|
|
40
|
-
`unstable_useInteractableState`.
|
|
41
|
-
|
|
42
|
-
For tool-created interactables rendered inside tool-call message parts,
|
|
43
|
-
`version` carries this message's version of the instance — its state as of
|
|
44
|
-
that point in the conversation, whether it is the most recent tool-driven
|
|
45
|
-
version, and a `restore()` back to it. Whether older messages render frozen history or stay
|
|
46
|
-
live-editable is the component's choice. Inside an `update_{name}` part the
|
|
47
|
-
instance `id` is inferred from the call, so the same component works at the
|
|
48
|
-
creating call and at update calls.
|
|
49
|
-
|
|
50
|
-
<ParametersTable {...unstable_useInteractable} />
|
|
51
|
-
|
|
52
|
-
### unstable_useInteractableState
|
|
53
|
-
|
|
54
|
-
<Callout type="tip">
|
|
55
|
-
<strong>Experimental.</strong> Unstable / Experimental (not actually removed).
|
|
56
|
-
</Callout>
|
|
57
|
-
|
|
58
|
-
Reads and writes the state of an interactable registered elsewhere, by id.
|
|
59
|
-
|
|
60
|
-
Use this from secondary readers (children, siblings); the owning component
|
|
61
|
-
registers with `unstable_useInteractable`, which returns state directly. Returns
|
|
62
|
-
`undefined` until the owning interactable is registered.
|
|
63
|
-
|
|
64
|
-
<ParametersTable {...unstable_useInteractableState} />
|
|
65
|
-
|
|
66
|
-
### unstable_useInteractableVersions
|
|
67
|
-
|
|
68
|
-
<Callout type="tip">
|
|
69
|
-
<strong>Experimental.</strong> Unstable / Experimental (not actually removed).
|
|
70
|
-
</Callout>
|
|
71
|
-
|
|
72
|
-
Every version of a tool-created interactable recorded in the current
|
|
73
|
-
thread, oldest first: the creating tool call, each user edit, and each
|
|
74
|
-
`update_*` call. Each entry carries the full state as of that version and a
|
|
75
|
-
`restore()` that sets the live instance back to it — enough for a version
|
|
76
|
-
picker like an artifact's history dropdown.
|
|
77
|
-
|
|
78
|
-
<ParametersTable {...unstable_useInteractableVersions} />
|
|
79
|
-
|
|
80
|
-
### unstable_interactableTool
|
|
81
|
-
|
|
82
|
-
<Callout type="tip">
|
|
83
|
-
<strong>Experimental.</strong> Unstable / Experimental (not actually removed).
|
|
84
|
-
</Callout>
|
|
85
|
-
|
|
86
|
-
Defines a tool that creates a thread-scoped interactable from its arguments,
|
|
87
|
-
for assignment to a toolkit entry — the entry key is the interactable name:
|
|
88
|
-
|
|
89
|
-
```tsx
|
|
90
|
-
notepad: unstable_interactableTool({
|
|
91
|
-
description: "A notepad the user can read and edit.",
|
|
92
|
-
stateSchema: notepadSchema,
|
|
93
|
-
render: (props) => <Notepad {...props} />,
|
|
94
|
-
}),
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
`render` shows at the creating call and — installed automatically — at every
|
|
98
|
-
`update_{name}` call, with streaming previews, instance-id wiring, and
|
|
99
|
-
registration handled. It receives the live `state`/`setState` plus this
|
|
100
|
-
message's `version`; whether older messages render frozen history or stay
|
|
101
|
-
live-editable is the render function's choice.
|
|
102
|
-
|
|
103
|
-
```ts
|
|
104
|
-
const unstable_interactableTool: <TSchema extends Unstable_InteractableStateSchema>(config: Unstable_InteractableToolConfig<TSchema>) => ToolDefinition<Record<string, unknown>, { success: true; }>;
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### unstable_getInteractableSnapshots
|
|
108
|
-
|
|
109
|
-
<Callout type="tip">
|
|
110
|
-
<strong>Experimental.</strong> Unstable / Experimental (not actually removed).
|
|
111
|
-
</Callout>
|
|
112
|
-
|
|
113
|
-
Reads the interactable snapshots stamped on a message's
|
|
114
|
-
`metadata.custom.interactables`, or `undefined` if none. This is the read
|
|
115
|
-
half of the snapshot channel — integrations use it to surface interactable
|
|
116
|
-
state to the model (see `unstable_injectInteractableContext` in
|
|
117
|
-
`@assistant-ui/ai-sdk` for the AI SDK implementation).
|
|
118
|
-
|
|
119
|
-
<ParametersTable {...unstable_getInteractableSnapshots} />
|
|
120
|
-
|
|
121
|
-
### unstable_formatInteractableSnapshot
|
|
122
|
-
|
|
123
|
-
<Callout type="tip">
|
|
124
|
-
<strong>Experimental.</strong> Unstable / Experimental (not actually removed).
|
|
125
|
-
</Callout>
|
|
126
|
-
|
|
127
|
-
Canonical model-facing wording for one snapshot entry.
|
|
128
|
-
|
|
129
|
-
<ParametersTable {...unstable_formatInteractableSnapshot} />
|
|
130
|
-
|
|
131
|
-
### unstable_getInteractableVersions
|
|
132
|
-
|
|
133
|
-
<Callout type="tip">
|
|
134
|
-
<strong>Experimental.</strong> Unstable / Experimental (not actually removed).
|
|
135
|
-
</Callout>
|
|
136
|
-
|
|
137
|
-
Every version of interactable `id` recorded in the thread, oldest first,
|
|
138
|
-
folded chronologically:
|
|
139
|
-
|
|
140
|
-
- the tool call whose `toolCallId` equals `id` seeds the baseline with its
|
|
141
|
-
args (`origin: "create"`) — the `id: toolCallId` convention for
|
|
142
|
-
tool-created interactables,
|
|
143
|
-
- a snapshot stamped on a user message is a `"user-edit"` version (a full
|
|
144
|
-
snapshot replaces the state; a partial one shallow-merges),
|
|
145
|
-
- each accepted `update_*` call shallow-merges an `"update"` version.
|
|
146
|
-
|
|
147
|
-
The last entry is the state the model knows. Partial snapshots and update
|
|
148
|
-
calls with no baseline to merge into are skipped.
|
|
149
|
-
|
|
150
|
-
<ParametersTable {...unstable_getInteractableVersions} />
|
|
151
|
-
{/* api-reference:end */}
|
|
@@ -1,106 +0,0 @@
|
|
|
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 { DataRenderers, McpAppRenderer, McpAppsRemoteHost, getMcpAppFromToolPart, 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
|
-
<ParametersTable {...DataRenderers} />
|
|
20
|
-
|
|
21
|
-
### getMcpAppFromToolPart
|
|
22
|
-
|
|
23
|
-
Returns MCP app metadata for a tool-call part that points at a `ui://`
|
|
24
|
-
resource.
|
|
25
|
-
|
|
26
|
-
Returns `undefined` when the part has no MCP app metadata or the metadata
|
|
27
|
-
does not reference an assistant-ui MCP app resource.
|
|
28
|
-
|
|
29
|
-
<ParametersTable {...getMcpAppFromToolPart} />
|
|
30
|
-
|
|
31
|
-
### makeAssistantDataUI
|
|
32
|
-
|
|
33
|
-
Creates a React component that registers a named data-part renderer when
|
|
34
|
-
rendered.
|
|
35
|
-
|
|
36
|
-
```ts
|
|
37
|
-
type AssistantDataUIProps = {
|
|
38
|
-
/** Data part name this renderer handles. */
|
|
39
|
-
name: string;
|
|
40
|
-
/** Component rendered for matching data message parts. */
|
|
41
|
-
render: DataMessagePartComponent<T>;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const makeAssistantDataUI: <T = any>(dataUI: AssistantDataUIProps<T>) => AssistantDataUI;
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### McpAppRenderer
|
|
48
|
-
|
|
49
|
-
<ParametersTable {...McpAppRenderer} />
|
|
50
|
-
|
|
51
|
-
### McpAppsRemoteHost
|
|
52
|
-
|
|
53
|
-
<ParametersTable {...McpAppsRemoteHost} />
|
|
54
|
-
|
|
55
|
-
### useAssistantDataUI
|
|
56
|
-
|
|
57
|
-
Registers a renderer for named `data` message parts while the component is
|
|
58
|
-
mounted.
|
|
59
|
-
|
|
60
|
-
<ParametersTable {...useAssistantDataUI} />
|
|
61
|
-
|
|
62
|
-
### makeAssistantToolUI
|
|
63
|
-
|
|
64
|
-
<Callout type="warn">
|
|
65
|
-
<strong>Deprecated.</strong> Put `render`/`renderText` on the matching toolkit entry, or use
|
|
66
|
-
`MessagePrimitive.Parts` inline tool render overrides for per-message UI.
|
|
67
|
-
See https://assistant-ui.com/docs/migrations/toolkit-tools.
|
|
68
|
-
</Callout>
|
|
69
|
-
|
|
70
|
-
Creates a React component that registers a tool-call renderer when rendered.
|
|
71
|
-
|
|
72
|
-
Use this to package reusable display components for tools whose definitions
|
|
73
|
-
are registered elsewhere.
|
|
74
|
-
|
|
75
|
-
```ts
|
|
76
|
-
type AssistantToolUIProps = {
|
|
77
|
-
/** Name of the tool whose calls should use this renderer. */
|
|
78
|
-
toolName: string;
|
|
79
|
-
/** Component rendered for matching tool-call message parts. */
|
|
80
|
-
render: ToolCallMessagePartComponent<TArgs, TResult>;
|
|
81
|
-
/**
|
|
82
|
-
* How the UI is presented relative to the chain-of-thought trace. Set
|
|
83
|
-
* `"standalone"` to surface it on its own (e.g. human-in-the-loop or
|
|
84
|
-
* generative UI for a backend/MCP tool). Defaults to `"inline"`.
|
|
85
|
-
*/
|
|
86
|
-
display?: "standalone" | "inline";
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
const makeAssistantToolUI: <TArgs, TResult>(tool: AssistantToolUIProps<TArgs, TResult>) => AssistantToolUI;
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### useAssistantToolUI
|
|
93
|
-
|
|
94
|
-
<Callout type="warn">
|
|
95
|
-
<strong>Deprecated.</strong> Put `render`/`renderText` on the matching toolkit entry, or use
|
|
96
|
-
`MessagePrimitive.Parts` inline tool render overrides for per-message UI.
|
|
97
|
-
See https://assistant-ui.com/docs/migrations/toolkit-tools.
|
|
98
|
-
</Callout>
|
|
99
|
-
|
|
100
|
-
Registers a tool-call renderer while the component is mounted.
|
|
101
|
-
|
|
102
|
-
This only affects rendering. Pair it with [Tools](/docs/api-reference/tools/toolkits#tools) or a backend tool
|
|
103
|
-
registry to expose the actual tool definition to the model.
|
|
104
|
-
|
|
105
|
-
<ParametersTable {...useAssistantToolUI} />
|
|
106
|
-
{/* api-reference:end */}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Tool Status
|
|
3
|
-
description: Read tool arguments, execution status, and result state inside assistant-ui tool UI components.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
7
|
-
{/* Do not edit manually. */}
|
|
8
|
-
|
|
9
|
-
{/* api-reference:start */}
|
|
10
|
-
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
11
|
-
{/* Do not edit this block manually. */}
|
|
12
|
-
|
|
13
|
-
## API Reference
|
|
14
|
-
|
|
15
|
-
### useToolArgsStatus
|
|
16
|
-
|
|
17
|
-
Reads whether each argument field for the current tool-call message part is
|
|
18
|
-
still streaming or complete.
|
|
19
|
-
|
|
20
|
-
Use inside a tool-call renderer to avoid showing incomplete argument values
|
|
21
|
-
as final.
|
|
22
|
-
|
|
23
|
-
```tsx
|
|
24
|
-
function WeatherToolUI({
|
|
25
|
-
args,
|
|
26
|
-
}: ToolCallMessagePartProps<{ city: string }>) {
|
|
27
|
-
const { propStatus } = useToolArgsStatus<{ city: string }>();
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<span>
|
|
31
|
-
{propStatus.city === "streaming" ? "Reading city..." : args.city}
|
|
32
|
-
</span>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
```ts
|
|
38
|
-
const useToolArgsStatus: <TArgs extends Record<string, unknown> = Record<string, unknown>>() => ToolArgsStatus<TArgs>;
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### useToolCallElapsed
|
|
42
|
-
|
|
43
|
-
Hook that returns the elapsed wall-clock time of the current tool call in
|
|
44
|
-
milliseconds, ticking once per second while the call runs.
|
|
45
|
-
|
|
46
|
-
Reads `part.timing`. Returns `undefined` when the part is not a tool call,
|
|
47
|
-
carries no timing, ended without a recorded completion (the duration is
|
|
48
|
-
unknown), or when no message part scope is available (so kit components
|
|
49
|
-
stay renderable standalone, e.g. in docs previews).
|
|
50
|
-
|
|
51
|
-
```tsx
|
|
52
|
-
function ToolDuration() {
|
|
53
|
-
const elapsedMs = useToolCallElapsed();
|
|
54
|
-
if (elapsedMs === undefined) return null;
|
|
55
|
-
return <span>{(elapsedMs / 1000).toFixed(1)}s</span>;
|
|
56
|
-
}
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
```ts
|
|
60
|
-
const useToolCallElapsed: () => number | undefined;
|
|
61
|
-
```
|
|
62
|
-
{/* api-reference:end */}
|
|
@@ -1,178 +0,0 @@
|
|
|
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, defineMcpToolkit, defineToolkit, providerTool, 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. The older component-scoped registration APIs are deprecated; see [Migrating Tools to Toolkits](/docs/migrations/toolkit-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) registered with [Tools](/docs/api-reference/tools/toolkits#tools).
|
|
30
|
-
When `parameters` is a Standard Schema (for example Zod v4), its input type
|
|
31
|
-
is inferred for `execute`, `streamCall`, and model-output callbacks. Plain
|
|
32
|
-
JSON Schema objects do not carry TypeScript input types, so provide generic
|
|
33
|
-
arguments or annotate callbacks when you need precise args for JSON Schema.
|
|
34
|
-
|
|
35
|
-
```ts
|
|
36
|
-
import { z } from "zod";
|
|
37
|
-
|
|
38
|
-
const getWeather = tool({
|
|
39
|
-
type: "frontend",
|
|
40
|
-
description: "Get the weather for a city.",
|
|
41
|
-
parameters: z.object({ city: z.string() }),
|
|
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 tool-call display options. Human tools
|
|
53
|
-
rely on `render` to collect input from the user. Frontend tools execute in
|
|
54
|
-
the browser and require either `render` or `renderText` for their progress
|
|
55
|
-
and result. Backend tools execute server-side and may omit a renderer.
|
|
56
|
-
|
|
57
|
-
<ParametersTable {...ToolDefinition} />
|
|
58
|
-
|
|
59
|
-
### Toolkit
|
|
60
|
-
|
|
61
|
-
Named collection of tools exposed to the assistant model.
|
|
62
|
-
|
|
63
|
-
Keys are the tool names the model receives and uses in tool calls.
|
|
64
|
-
|
|
65
|
-
```tsx
|
|
66
|
-
const toolkit = defineToolkit({
|
|
67
|
-
get_weather: {
|
|
68
|
-
type: "frontend",
|
|
69
|
-
description: "Get the weather for a city.",
|
|
70
|
-
parameters: weatherSchema,
|
|
71
|
-
execute: async ({ city }: { city: string }) => fetchWeather(city),
|
|
72
|
-
render: WeatherToolUI,
|
|
73
|
-
},
|
|
74
|
-
});
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
```ts
|
|
78
|
-
type Toolkit = Record<string, ToolDefinition<any, any>>;
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Tools
|
|
82
|
-
|
|
83
|
-
<ParametersTable {...Tools} />
|
|
84
|
-
|
|
85
|
-
### defineMcpToolkit
|
|
86
|
-
|
|
87
|
-
Defines MCP server tools as a spreadable toolkit fragment. Pass a raw
|
|
88
|
-
`McpServerConfig` for always-on servers, or `{ server, disabled, tools }`
|
|
89
|
-
when a server should stay configured but not expose all tools for the current
|
|
90
|
-
request.
|
|
91
|
-
|
|
92
|
-
<ParametersTable {...defineMcpToolkit} />
|
|
93
|
-
|
|
94
|
-
### defineToolkit
|
|
95
|
-
|
|
96
|
-
Toolkit authoring helper. Accepts the permissive ToolkitDefinition
|
|
97
|
-
(a generative `backend` tool may carry its server `execute`) and types the
|
|
98
|
-
result as the canonical [Toolkit](/docs/api-reference/tools/toolkits#toolkit).
|
|
99
|
-
|
|
100
|
-
In a `"use generative"` file, the compiler strips the wrapper per build so it
|
|
101
|
-
can split schemas, renderers, and executors across the client/server boundary.
|
|
102
|
-
Outside generative compilation, it returns the toolkit unchanged and can be
|
|
103
|
-
used for plain frontend/backend/human toolkit objects.
|
|
104
|
-
|
|
105
|
-
<ParametersTable {...defineToolkit} />
|
|
106
|
-
|
|
107
|
-
### externalTool
|
|
108
|
-
|
|
109
|
-
Marks a generative toolkit entry as an externally executed backend tool.
|
|
110
|
-
|
|
111
|
-
Use this when another system (for example a backend route or LangGraph node)
|
|
112
|
-
already defines and executes the tool, but assistant-ui should render its
|
|
113
|
-
tool calls. The use-generative compiler omits `execute: externalTool()`
|
|
114
|
-
entries from the server build and keeps a `type: "backend"` renderer on the
|
|
115
|
-
client build.
|
|
116
|
-
|
|
117
|
-
```ts
|
|
118
|
-
function externalTool(): never;
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### humanTool
|
|
122
|
-
|
|
123
|
-
Marks a tool as **human-in-the-loop**: the agent pauses and the UI (`render`)
|
|
124
|
-
supplies the result instead of code. Use it as the tool's `execute`:
|
|
125
|
-
|
|
126
|
-
```tsx
|
|
127
|
-
confirm: { execute: humanTool(), render: (props) => <Confirm {...props} /> }
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Unlike [defineToolkit](/docs/api-reference/tools/toolkits#definetoolkit), it has **no runtime implementation**: a
|
|
131
|
-
`"use generative"` compiler (e.g. `@assistant-ui/next` or `@assistant-ui/vite`)
|
|
132
|
-
detects `execute: humanTool()`, drops it, and stamps the tool `type: "human"`.
|
|
133
|
-
Reaching it at runtime means the module wasn't compiled (used outside a
|
|
134
|
-
`"use generative"` file), so it throws.
|
|
135
|
-
|
|
136
|
-
```ts
|
|
137
|
-
function humanTool(): never;
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
### providerTool
|
|
141
|
-
|
|
142
|
-
Marks a tool as provider-executed. The use-generative compiler converts
|
|
143
|
-
`execute: providerTool(...)` into a `type: "provider"` tool entry.
|
|
144
|
-
|
|
145
|
-
<ParametersTable {...providerTool} />
|
|
146
|
-
|
|
147
|
-
### stubTool
|
|
148
|
-
|
|
149
|
-
Marks a generative toolkit entry as a frontend tool whose executor will be
|
|
150
|
-
supplied by `useAuiToolOverrides(...)`.
|
|
151
|
-
|
|
152
|
-
`stubTool()` has no runtime implementation. It must be used inside a
|
|
153
|
-
`"use generative"` toolkit file so the compiler can strip it.
|
|
154
|
-
|
|
155
|
-
```ts
|
|
156
|
-
function stubTool(): never;
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### hitl
|
|
160
|
-
|
|
161
|
-
<Callout type="warn">
|
|
162
|
-
<strong>Deprecated.</strong> Use [humanTool](/docs/api-reference/tools/toolkits#humantool).
|
|
163
|
-
</Callout>
|
|
164
|
-
|
|
165
|
-
```ts
|
|
166
|
-
const hitl: typeof humanTool;
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
### hitlTool
|
|
170
|
-
|
|
171
|
-
<Callout type="warn">
|
|
172
|
-
<strong>Deprecated.</strong> Use [humanTool](/docs/api-reference/tools/toolkits#humantool).
|
|
173
|
-
</Callout>
|
|
174
|
-
|
|
175
|
-
```ts
|
|
176
|
-
const hitlTool: typeof humanTool;
|
|
177
|
-
```
|
|
178
|
-
{/* api-reference:end */}
|
|
@@ -1,48 +0,0 @@
|
|
|
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 */}
|