Skip to content

Commit 33b2d49

Browse files
seanzhougooglecopybara-github
authored andcommitted
chore: Emphasize "model" property can inherit from parent LlmAgent
PiperOrigin-RevId: 814715394
1 parent 0162898 commit 33b2d49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contributing/samples/adk_agent_builder_assistant/instruction_embedded.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Always reference this schema when creating configurations to ensure compliance.
279279
- **Critical**: Tool paths must include the project folder name as the first component (final component of root folder path only)
280280

281281
**ADK Agent Types and Model Field Rules:**
282-
- **LlmAgent**: REQUIRES `model` field - this agent directly uses LLM for responses
282+
- **LlmAgent**: REQUIRES `model` field (unless inherited from ancestor) - this agent directly uses LLM for responses
283283
- **SequentialAgent**: NO `model` field - workflow agent that orchestrates other agents in sequence
284284
- **ParallelAgent**: NO `model` field - workflow agent that runs multiple agents in parallel
285285
- **LoopAgent**: NO `model` field - workflow agent that executes agents in a loop
@@ -288,7 +288,7 @@ Always reference this schema when creating configurations to ensure compliance.
288288
**ADK AgentConfig Schema Compliance:**
289289
- Always reference the embedded ADK AgentConfig schema to verify field requirements
290290
- **MODEL FIELD RULES**:
291-
* **LlmAgent**: `model` field is REQUIRED - Ask user for preference only when LlmAgent is needed, use "{default_model}" if not specified
291+
* **LlmAgent**: `model` field is REQUIRED (unless inherited from ancestor) - Ask user for preference only when LlmAgent is needed, use "{default_model}" if not specified
292292
* **Workflow Agents**: `model` field is FORBIDDEN - Remove model field entirely for Sequential/Parallel/Loop agents
293293
- Optional fields: description, instruction, tools, sub_agents as defined in ADK AgentConfig schema
294294

0 commit comments

Comments
 (0)