MCPcopy
hub / github.com/CopilotKit/CopilotKit / registerHumanInTheLoop

Function registerHumanInTheLoop

packages/angular/src/lib/tools.ts:138–149  ·  view source on GitHub ↗
(humanInTheLoop: HumanInTheLoopConfig<Args>)

Source from the content-addressed store, hash-verified

136}
137
138export function registerHumanInTheLoop<
139 Args extends Record<string, unknown> = Record<string, unknown>,
140>(humanInTheLoop: HumanInTheLoopConfig<Args>): void {
141 const destroyRef = inject(DestroyRef);
142 const copilotKit = inject(CopilotKit);
143
144 copilotKit.addHumanInTheLoop(humanInTheLoop);
145
146 destroyRef.onDestroy(() => {
147 copilotKit.removeTool(humanInTheLoop.name, humanInTheLoop.agentId);
148 });
149}

Callers 2

constructorMethod · 0.90
constructorMethod · 0.90

Calls 2

addHumanInTheLoopMethod · 0.80
removeToolMethod · 0.45

Tested by 1

constructorMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…