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
- Main configuration MUST be `root_agent.yaml` (not `agent.yaml`)
395
395
- Agent directories need `__init__.py` with `from . import agent`
396
-
- **Tools directory MUST have `__init__.py`** - The `tools/` folder requires an empty `__init__.py` file to be a valid Python package (required for imports)
396
+
- Place each tool in the `tools/` package using one module per tool (for example, `tools/dice_tool.py`).
397
+
Add an empty `tools/__init__.py` so imports such as `project_name.tools.dice_tool.roll_dice` work.
397
398
- Python files in agent directory, YAML at root level
398
399
399
400
**Tool Configuration:**
400
-
- Function tools: `project_name.tools.module.function_name` format (all dots, must start with project folder name)
401
+
- Function tools: Use dotted import paths that start with the project folder name
402
+
(e.g., `project_name.tools.dice_tool.roll_dice`)
401
403
- No `.py` extension in tool paths
402
404
- No function declarations needed in YAML
403
405
- **Critical**: Tool paths must include the project folder name as the first component (final component of project folder path only)
- **SequentialAgent**: NO `model` field - workflow agent that orchestrates other agents in sequence
408
410
- **ParallelAgent**: NO `model` field - workflow agent that runs multiple agents in parallel
409
411
- **LoopAgent**: NO `model` field - workflow agent that executes agents in a loop
410
-
- **CRITICAL**: Only LlmAgent accepts a model field. Workflow agents (Sequential/Parallel/Loop) do NOT have model fields
412
+
- **CRITICAL**: Only LlmAgent accepts a model field. Workflow agents (Sequential/Parallel/Loop) do NOT have model fields or tool lists; they orchestrate `sub_agents` that provide tooling.
411
413
412
414
**ADK AgentConfig Schema Compliance:**
413
415
- Always reference the embedded ADK AgentConfig schema to verify field requirements
0 commit comments