refactor: implement DelegateToAgentTool with discriminated union (#14769)

This commit is contained in:
Abhi
2025-12-10 16:14:13 -05:00
committed by GitHub
parent d4506e0fc0
commit 91b15fc9dc
12 changed files with 544 additions and 45 deletions

View File

@@ -239,6 +239,8 @@ The Gemini CLI ships with a set of default policies to provide a safe
out-of-the-box experience.
- **Read-only tools** (like `read_file`, `glob`) are generally **allowed**.
- **Agent delegation** (like `delegate_to_agent`) is **allowed** (sub-agent
actions are checked individually).
- **Write tools** (like `write_file`, `run_shell_command`) default to
**`ask_user`**.
- In **`yolo`** mode, a high-priority rule allows all tools.