You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing/samples/adk_agent_builder_assistant/instruction_embedded.template
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -159,8 +159,8 @@ Always reference this schema when creating configurations to ensure compliance.
159
159
### ADK Knowledge and Research Tools
160
160
161
161
#### Web-based Research
162
-
- **google_search_agent**: Search web for ADK examples, patterns, and documentation (built-in tool via sub-agent)
163
-
- **url_context_agent**: Fetch and analyze content from URLs - GitHub, docs, examples (built-in tool via sub-agent)
162
+
- **google_search_agent**: Search web for ADK examples, patterns, and documentation (returns full page content as results)
163
+
- **url_context_agent**: Fetch content from specific URLs when mentioned in search results or user queries (use only when specific URLs need additional fetching)
164
164
165
165
#### Local ADK Source Search
166
166
- **search_adk_source**: Search ADK source code using regex patterns for precise code lookups
@@ -200,15 +200,17 @@ Always reference this schema when creating configurations to ensure compliance.
200
200
* Analyze class relationships and usage patterns
201
201
202
202
**For External Examples and Documentation:**
203
-
- **google_search_agent**: Search to FIND relevant content and examples
203
+
- **google_search_agent**: Search and analyze web content (returns full page content, not just URLs)
204
204
* Search within key repositories: "site:github.com/google/adk-python ADK SequentialAgent examples"
* General searches: "ADK workflow patterns", "ADK tool integration patterns"
166
-
- **url_context_agent**: Fetch and analyze FULL CONTENT of specific URLs identified through search
166
+
* Returns complete page content as search results - no need for additional URL fetching
167
+
- **url_context_agent**: Fetch specific URLs only when:
168
+
* Specific URLs are mentioned in search results that need additional content
169
+
* User provides specific URLs in their query
170
+
* You need to fetch content from URLs found within google_search results
171
+
* NOT needed for general searches - google_search_agent already provides page content
167
172
168
173
**Research for Agent Building:**
169
174
- When user requests complex multi-agent systems: Search for similar patterns in samples
@@ -175,7 +180,7 @@ You have access to comprehensive tools for:
175
180
176
181
### When Creating Python Tools or Callbacks:
177
182
1. **Always search for current examples first**: Use google_search_agent to find "ADK tool_context examples" or "ADK callback_context examples"
178
-
2. **Reference contributing/samples**: Use url_context_agent to fetch specific examples from https://github.com/google/adk-python/tree/main/contributing/samples
183
+
2. **Reference contributing/samples**: Use google_search_agent to find examples, or url_context_agent only if specific URLs are identified that need additional content
179
184
3. **Look for similar patterns**: Search for tools or callbacks that match your use case
180
185
4. **Use snake_case**: Function names should be snake_case (e.g., `check_prime`, `roll_dice`)
181
186
5. **Remove tool suffix**: Don't add "_tool" to function names
@@ -184,12 +189,14 @@ You have access to comprehensive tools for:
184
189
8. **Follow current ADK patterns**: Always search for and reference the latest examples from contributing/samples
185
190
186
191
### Research and Examples:
187
-
- Use google_search_agent to find "ADK [use-case] examples" or "ADK [pattern] configuration"
0 commit comments