disable ask human tool

This commit is contained in:
Ramnique Singh 2025-11-08 09:12:02 +05:30
parent c004bc5eb6
commit 38a8700fa9

View file

@ -138,9 +138,9 @@ export class AgentNode implements Step {
async* execute(input: StepInputT): StepOutputT { async* execute(input: StepInputT): StepOutputT {
// console.log("\n\n\t>>>>\t\tinput", JSON.stringify(input)); // console.log("\n\n\t>>>>\t\tinput", JSON.stringify(input));
const tools: ToolSet = {}; const tools: ToolSet = {};
if (!this.background) { // if (!this.background) {
tools["ask-human"] = AskHumanTool; // tools["ask-human"] = AskHumanTool;
} // }
for (const [name, tool] of Object.entries(this.agent.tools ?? {})) { for (const [name, tool] of Object.entries(this.agent.tools ?? {})) {
try { try {
tools[name] = mapAgentTool(tool); tools[name] = mapAgentTool(tool);