MCPcopy
hub / github.com/CopilotKit/CopilotKit / addHumanInTheLoop

Method addHumanInTheLoop

packages/angular/src/lib/copilotkit.ts:497–506  ·  view source on GitHub ↗
(humanInTheLoopTool: HumanInTheLoopConfig)

Source from the content-addressed store, hash-verified

495 }
496
497 addHumanInTheLoop(humanInTheLoopTool: HumanInTheLoopConfig): void {
498 this.#humanInTheLoopToolRenderConfigs.update((current) => [
499 ...current,
500 humanInTheLoopTool,
501 ]);
502
503 const tool = this.#bindHumanInTheLoopTool(humanInTheLoopTool);
504
505 this.core.addTool(tool);
506 }
507
508 addSuggestionsConfig(config: SuggestionsConfig): string {
509 return this.core.addSuggestionsConfig(config);

Callers 3

constructorMethod · 0.95
registerHumanInTheLoopFunction · 0.80
copilotkit.spec.tsFile · 0.80

Calls 3

updateMethod · 0.65
addToolMethod · 0.45

Tested by

no test coverage detected