UNPKG

@copilotkit/react-core

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

14 lines (11 loc) 634 B
import { FrontendAction } from '../types/frontend-action.js'; import { Parameter } from '@copilotkit/shared'; import '@copilotkit/runtime-client-gql'; import 'react'; type UseHumanInTheLoopArgs<T extends Parameter[] | [] = []> = { available?: "disabled" | "enabled"; render: FrontendAction<T>["renderAndWaitForResponse"]; followUp?: FrontendAction<T>["followUp"]; } & Pick<FrontendAction<T>, "name" | "description" | "parameters">; declare function useHumanInTheLoop<const T extends Parameter[] | [] = []>(tool: UseHumanInTheLoopArgs<T>, dependencies?: any[]): void; export { UseHumanInTheLoopArgs, useHumanInTheLoop };