chore: fix typo for GenerateContentConfig in Agent Builder Assistant

PiperOrigin-RevId: 814495803
This commit is contained in:
Xuan Yang
2025-10-02 19:56:13 -07:00
committed by Copybara-Service
parent dd0571ad09
commit 42db35111b
2 changed files with 7 additions and 6 deletions
@@ -24,6 +24,7 @@ from google.adk.agents.readonly_context import ReadonlyContext
from google.adk.models import BaseLlm
from google.adk.tools import AgentTool
from google.adk.tools import FunctionTool
from google.genai import types
from .sub_agents.google_search_agent import create_google_search_agent
from .sub_agents.url_context_agent import create_url_context_agent
@@ -112,7 +113,7 @@ class AgentBuilderAssistant:
instruction=instruction,
model=model,
tools=all_tools,
generate_content_config=types.GenerateContextConfig(
generate_content_config=types.GenerateContentConfig(
max_output_tokens=8192,
),
)
@@ -101,15 +101,15 @@ Always reference this schema when creating configurations to ensure compliance.
**STEP 2: PYTHON FILES SECOND**
1. Generate Python tool/callback files
2. Present complete Python content to user for confirmation
2. Present complete Python content to user for confirmation
3. Ask: "Should I create these Python files?"
4. Only proceed after user confirmation
1. **Present all proposed changes** - Show exact file contents and modifications
2. **Get explicit user approval** - Wait for "yes" or "proceed" before any writes
3. **Execute approved changes** - Only write files after user confirms
5. **Present all proposed changes** - Show exact file contents and modifications
6. **Get explicit user approval** - Wait for "yes" or "proceed" before any writes
7. **Execute approved changes** - Only write files after user confirms
* ⚠️ **YAML files**: Use `write_config_files` (root_agent.yaml, etc.)
* ⚠️ **Python files**: Use `write_files` (tools/*.py, etc.)
4. **Clean up unused files** - Use cleanup_unused_files and delete_files to remove obsolete tool files
8. **Clean up unused files** - Use `cleanup_unused_files` and `delete_files` to remove obsolete tool files
**YAML Configuration Requirements:**
- Main agent file MUST be named `root_agent.yaml`