mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 18:14:29 -07:00
Refactor subagent delegation to be one tool per agent (#17346)
This commit is contained in:
committed by
GitHub
parent
07bd89399d
commit
2c6781d134
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user