Guides
Tool UIs
You can show a custom UI when a tool is called to let the user know what is happening.
Tool UI Components
You can put this component anywhere in your app inside the <AssistantRuntimeProvider />
component.
Tool UI Hooks
You can use this hook anywhere in your app inside the <AssistantRuntimeProvider />
component.
Inline Tool UI Hooks
If you need access to component props, you can use the useAssistantToolUI
hook. If you are passing a component inline, you should use the useInlineRender
hook to prevent the component from being re-mounted on every render.
Function Calling for User Input
The following example shows a date_picker
tool that the AI can call to collect a date from the user.