fix(askquestion): disablet the tool for subagents

This commit is contained in:
iljod 2025-12-23 09:23:17 +01:00
parent 19ad1ee520
commit 53eebfc1a4

View file

@ -101,6 +101,7 @@ export const TaskTool = Tool.define("task", async () => {
todowrite: false,
todoread: false,
task: false,
askquestion: false,
...Object.fromEntries((config.experimental?.primary_tools ?? []).map((t) => [t, false])),
...agent.tools,
},