Download evals/cli_help_delegation.eval.ts from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/evals/cli_help_delegation.eval.ts
- Command line
-
hf download hf://SaylorTwift/gemini-cli/evals/cli_help_delegation.eval.ts
-
curl -L -o cli_help_delegation.eval.ts https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/evals/cli_help_delegation.eval.ts
1.05 kB
| import { describe, expect } from 'vitest'; | |
| import { evalTest } from './test-helper.js'; | |
| describe('CliHelpAgent Delegation', () => { | |
| evalTest('USUALLY_PASSES', { | |
| suiteName: 'default', | |
| suiteType: 'behavioral', | |
| name: 'should delegate to cli_help agent for subagent creation questions', | |
| params: { | |
| settings: { | |
| experimental: { | |
| enableAgents: true, | |
| }, | |
| }, | |
| }, | |
| prompt: 'Help me create a subagent in this project', | |
| timeout: 60000, | |
| assert: async (rig, _result) => { | |
| const toolLogs = rig.readToolLogs(); | |
| const toolCallIndex = toolLogs.findIndex((log) => { | |
| if (log.toolRequest.name === 'invoke_agent') { | |
| try { | |
| const args = JSON.parse(log.toolRequest.args); | |
| return args.agent_name === 'cli_help'; | |
| } catch { | |
| return false; | |
| } | |
| } | |
| return false; | |
| }); | |
| expect(toolCallIndex).toBeGreaterThan(-1); | |
| expect(toolCallIndex).toBeLessThan(5); // Called within first 5 turns | |
| }, | |
| }); | |
| }); | |