@assistant-ui/react
Version:
TypeScript/React library for AI Chat
12 lines • 419 B
TypeScript
export type RunManager = Readonly<{
isRunning: boolean;
schedule: () => void;
cancel: () => void;
}>;
export declare function useRunManager(config: {
onRun: (signal: AbortSignal) => Promise<void>;
onFinish?: (() => void) | undefined;
onCancel?: (() => void) | undefined;
onError?: ((error: Error) => void | Promise<void>) | undefined;
}): RunManager;
//# sourceMappingURL=runManager.d.ts.map