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: agent_starter_pack/agents/adk_a2a_base/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,18 @@ This agent uses the `gemini-2.5-flash` model and is equipped with two simple too
11
11
*`get_weather`: Simulates fetching weather (hardcoded for SF).
12
12
*`get_current_time`: Simulates fetching the time (hardcoded for SF).
13
13
14
+
## Validating Your A2A Implementation
15
+
16
+
When deploying to **Cloud Run**, this template includes the **[A2A Protocol Inspector](https://github.com/a2aproject/a2a-inspector)** for validating your agent's A2A implementation.
17
+
18
+
```bash
19
+
make inspector
20
+
```
21
+
22
+
**Note:** The inspector currently supports JSON-RPC 2.0 only and is not yet compatible with Agent Engine's HTTP-JSON transport protocol.
23
+
24
+
For detailed setup instructions including local and remote testing workflows, refer to the `README.md` in your generated project.
{# when a2a-inspector adds HTTP-JSON transport support (currently JSON-RPC 2.0 only) #}
93
+
{%- if cookiecutter.is_adk_a2a %}
94
+
{%- if cookiecutter.deployment_target == 'cloud_run' %}
95
+
96
+
## Using the A2A Inspector
97
+
98
+
This agent implements the [Agent2Agent (A2A) Protocol](https://a2a-protocol.org/), enabling interoperability with agents across different frameworks and languages.
99
+
100
+
The [A2A Inspector](https://github.com/a2aproject/a2a-inspector) provides the following core features:
101
+
- 🔍 View agent card and capabilities
102
+
- ✅ Validate A2A specification compliance
103
+
- 💬 Test communication with live chat interface
104
+
- 🐛 Debug with raw JSON-RPC 2.0 message console
105
+
106
+
### Local Testing
107
+
108
+
1. Start your agent:
109
+
```bash
110
+
make local-backend
111
+
```
112
+
113
+
2. In a separate terminal, launch the A2A Protocol Inspector:
114
+
```bash
115
+
make inspector
116
+
```
117
+
118
+
3. Open http://localhost:5001 and connect to `http://localhost:8000`
119
+
120
+
### Remote Testing
121
+
122
+
1. Deploy your agent:
123
+
```bash
124
+
make deploy
125
+
```
126
+
127
+
2. Launch the inspector:
128
+
```bash
129
+
make inspector
130
+
```
131
+
132
+
3. Get an authentication token:
133
+
```bash
134
+
{%- if cookiecutter.deployment_target == 'cloud_run' %}
135
+
gcloud auth print-identity-token
136
+
{%- else %}
137
+
gcloud auth print-access-token
138
+
{%- endif %}
139
+
```
140
+
141
+
4. In the inspector UI at http://localhost:5001:
142
+
- Add an HTTP header with name: `Authorization`
143
+
- Set the value to: `Bearer <your-token-from-step-3>`
144
+
{%- if cookiecutter.deployment_target == 'cloud_run' %}
145
+
- Connect to your deployed Cloud Run URL
146
+
{%- else %}
147
+
- Connect to your Agent Engine URL using this format:
0 commit comments