Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions a2a/docs/02-adk-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## Agent Configuration

```python
# agent.py:437
# agent.py: root_agent
root_agent = Agent(
name="shopper_agent",
model="gemini-3-flash-preview",
Expand Down Expand Up @@ -125,7 +125,7 @@ With callbacks:
Captures UCP data from tool results for later use:

```python
# agent.py:379
# agent.py: after_tool_modifier
def after_tool_modifier(
tool: BaseTool,
args: dict[str, Any],
Expand All @@ -150,7 +150,7 @@ def after_tool_modifier(
Transforms agent output to include structured data:

```python
# agent.py:408
# agent.py: modify_output_after_agent
from google.genai import types

def modify_output_after_agent(
Expand Down Expand Up @@ -239,7 +239,7 @@ class ADKAgentExecutor:

### Current System Instruction

The agent uses a single instruction (`agent.py:441-454`):
The agent uses a single instruction in the `root_agent` configuration:

```python
instruction=(
Expand Down Expand Up @@ -303,7 +303,7 @@ ERROR HANDLING:
| Gemini 3.0 Flash | Tool-heavy agents (this sample) | Fastest, 99% tool accuracy |
| Gemini 2.0 Pro | Complex reasoning, ambiguous queries | Slower, better nuanced understanding |

To change the model, edit `agent.py:437`:
To change the model, edit the `root_agent` configuration in `agent.py`:

```python
root_agent = Agent(
Expand Down
Loading