@assistant-ui/react
Version:
TypeScript/React library for AI Chat
13 lines • 528 B
TypeScript
import { type Tool } from "assistant-stream";
import type { AssistantTransportCommand, AssistantTransportState } from "./types";
type UseToolInvocationsParams = {
state: AssistantTransportState;
getTools: () => Record<string, Tool> | undefined;
onResult: (command: AssistantTransportCommand) => void;
};
export declare function useToolInvocations({ state, getTools, onResult, }: UseToolInvocationsParams): {
reset: () => void;
abort: () => void;
};
export {};
//# sourceMappingURL=useToolInvocations.d.ts.map