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;" />

25 lines (23 loc) 601 B
import { useCopilotAction } from "./chunk-T3376SZS.mjs"; import { __objRest, __spreadProps, __spreadValues } from "./chunk-SKC7AJIV.mjs"; // src/hooks/use-human-in-the-loop.ts function useHumanInTheLoop(tool, dependencies) { const _a = tool, { render } = _a, toolRest = __objRest(_a, ["render"]); useCopilotAction( __spreadProps(__spreadValues({}, toolRest), { available: tool.available === "disabled" ? tool.available : "remote", renderAndWaitForResponse: render }), dependencies ); } export { useHumanInTheLoop }; //# sourceMappingURL=chunk-EVVO67QO.mjs.map