UNPKG

@assistant-ui/react

Version:

Typescript/React library for AI Chat

14 lines 715 B
import type { ToolCallContentPartComponent } from "../../types/ContentPartComponentTypes"; import { Unsubscribe } from "../../types"; export type AssistantToolUIsState = { /** * Get the tool UI configured for a given tool name. */ getToolUI: (toolName: string) => ToolCallContentPartComponent | null; /** * Registers a tool UI for a given tool name. Returns an unsubscribe function to remove the tool UI. */ setToolUI: (toolName: string, render: ToolCallContentPartComponent) => Unsubscribe; }; export declare const makeAssistantToolUIsStore: () => import("zustand").UseBoundStore<import("zustand").StoreApi<AssistantToolUIsState>>; //# sourceMappingURL=AssistantToolUIs.d.ts.map