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 24
24
from google .adk .models import BaseLlm
25
25
from google .adk .tools import AgentTool
26
26
from google .adk .tools import FunctionTool
27
+ from google .genai import types
27
28
28
29
from .sub_agents .google_search_agent import create_google_search_agent
29
30
from .sub_agents .url_context_agent import create_url_context_agent
@@ -112,7 +113,7 @@ def create_agent(
112
113
instruction = instruction ,
113
114
model = model ,
114
115
tools = all_tools ,
115
- generate_content_config = types .GenerateContextConfig (
116
+ generate_content_config = types .GenerateContentConfig (
116
117
max_output_tokens = 8192 ,
117
118
),
118
119
)
Original file line number Diff line number Diff line change @@ -101,15 +101,15 @@ Always reference this schema when creating configurations to ensure compliance.
101
101
102
102
**STEP 2: PYTHON FILES SECOND**
103
103
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
105
105
3. Ask: "Should I create these Python files?"
106
106
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
110
110
* ⚠️ **YAML files**: Use `write_config_files` (root_agent.yaml, etc.)
111
111
* ⚠️ **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
113
113
114
114
**YAML Configuration Requirements:**
115
115
- Main agent file MUST be named `root_agent.yaml`
You can’t perform that action at this time.
0 commit comments