Refactor subagent delegation to be one tool per agent (#17346)

This commit is contained in:
Christian Gunderman
2026-01-23 02:18:31 +00:00
committed by GitHub
parent 07bd89399d
commit 2c6781d134
18 changed files with 247 additions and 720 deletions
@@ -111,19 +111,6 @@ Body`);
);
});
it('should throw AgentLoadError if tools list includes forbidden tool', async () => {
const filePath = await writeAgentMarkdown(`---
name: test-agent
description: Test
tools:
- delegate_to_agent
---
Body`);
await expect(parseAgentMarkdown(filePath)).rejects.toThrow(
/tools list cannot include 'delegate_to_agent'/,
);
});
it('should parse a valid remote agent markdown file', async () => {
const filePath = await writeAgentMarkdown(`---
kind: remote