Skip to content

Commit 42db351

Browse files
xuanyang15copybara-github
authored andcommitted
chore: fix typo for GenerateContentConfig in Agent Builder Assistant
PiperOrigin-RevId: 814495803
1 parent dd0571a commit 42db351

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

contributing/samples/adk_agent_builder_assistant/agent_builder_assistant.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from google.adk.models import BaseLlm
2525
from google.adk.tools import AgentTool
2626
from google.adk.tools import FunctionTool
27+
from google.genai import types
2728

2829
from .sub_agents.google_search_agent import create_google_search_agent
2930
from .sub_agents.url_context_agent import create_url_context_agent
@@ -112,7 +113,7 @@ def create_agent(
112113
instruction=instruction,
113114
model=model,
114115
tools=all_tools,
115-
generate_content_config=types.GenerateContextConfig(
116+
generate_content_config=types.GenerateContentConfig(
116117
max_output_tokens=8192,
117118
),
118119
)

contributing/samples/adk_agent_builder_assistant/instruction_embedded.template

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ Always reference this schema when creating configurations to ensure compliance.
101101

102102
**STEP 2: PYTHON FILES SECOND**
103103
1. Generate Python tool/callback files
104-
2. Present complete Python content to user for confirmation
104+
2. Present complete Python content to user for confirmation
105105
3. Ask: "Should I create these Python files?"
106106
4. Only proceed after user confirmation
107-
1. **Present all proposed changes** - Show exact file contents and modifications
108-
2. **Get explicit user approval** - Wait for "yes" or "proceed" before any writes
109-
3. **Execute approved changes** - Only write files after user confirms
107+
5. **Present all proposed changes** - Show exact file contents and modifications
108+
6. **Get explicit user approval** - Wait for "yes" or "proceed" before any writes
109+
7. **Execute approved changes** - Only write files after user confirms
110110
* ⚠️ **YAML files**: Use `write_config_files` (root_agent.yaml, etc.)
111111
* ⚠️ **Python files**: Use `write_files` (tools/*.py, etc.)
112-
4. **Clean up unused files** - Use cleanup_unused_files and delete_files to remove obsolete tool files
112+
8. **Clean up unused files** - Use `cleanup_unused_files` and `delete_files` to remove obsolete tool files
113113

114114
**YAML Configuration Requirements:**
115115
- Main agent file MUST be named `root_agent.yaml`

0 commit comments

Comments
 (0)