File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
contributing/samples/adk_agent_builder_assistant Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2424from google .adk .models import BaseLlm
2525from google .adk .tools import AgentTool
2626from google .adk .tools import FunctionTool
27+ from google .genai import types
2728
2829from .sub_agents .google_search_agent import create_google_search_agent
2930from .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 )
Original file line number Diff line number Diff line change @@ -101,15 +101,15 @@ Always reference this schema when creating configurations to ensure compliance.
101101
102102**STEP 2: PYTHON FILES SECOND**
1031031. 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
1051053. Ask: "Should I create these Python files?"
1061064. 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`
You can’t perform that action at this time.
0 commit comments