ToolFallback
Overview
The ToolFallback component displays a default ToolUI for tools that do not have a dedicated ToolUI.
Getting Started
Add tool-fallback
npx assistant-ui@latest add tool-fallbacknpx shadcn@latest add @assistant-ui/tool-fallbacknpx shadcn@latest add "https://r.assistant-ui.com/tool-fallback"This adds a /components/assistant-ui/tool-fallback.tsx file to your project, which you can adjust as needed.
Use it in your application
Pass the ToolFallback component to the MessagePrimitive.Parts component
import { } from "@/components/assistant-ui/tool-fallback";
const : = () => {
return (
<. ="...">
< ="...">
<.
={{ : { : } }}
/>
</>
< />
< ="..." />
</.>
);
};