You've already built a Glean agent. A2A (Agent2Agent) lets any A2A-compliant client — not just Glean's own UI — discover and run it, multi-turn and streamed, with Glean's permissions still enforced.
Scaffold the project
npx tiged --mode=git gleanwork/glean-cookbook/recipes/a2a-client a2a-clientInstall dependencies
Pins a2a-sdk below 1.0 — Glean serves A2A spec 0.3 today; 1.x clients won't interop until the server upgrades.
cd a2a-client && pip install -r requirements.txtSet credentials
Fill in GLEAN_A2A_CARD_URL and GLEAN_A2A_TOKEN from the agent's Share → A2A dialog — this is a per-agent bearer token, not the general Glean OAuth/token chain.
cp .env.example .envRun it
python main.pyVerify
Confirm a real answer to "Who owns the payments service?", a follow-up reusing the same context_id to prove multi-turn, and a streaming response — all three paths this recipe exercises.
Task-based response shape explicitly if your agent uses tool calls that return structured artifacts, not just text.a2a-sdk 1.x upgrade path once Glean's server moves past spec 0.3 — the pinning caveat in this recipe is temporary.Copies a prompt your AI assistant can build from.