pkg/a2a/client and WithA2AClients.
Source: examples/agent_with_a2a_client/
What it demonstrates
a2aclient.NewClientwith timeout, token, skill filter options- Pre-built clients for custom transport wiring
- Same
A2A_*env vars as config example
Run
Fromexamples/:
Local server workflow
- Terminal 1:
go run ./agent_with_a2a_server - Terminal 2:
export A2A_URL=http://localhost:9999then run this example
A2A_URL, optional A2A_TOKEN, A2A_HEADERS, A2A_ALLOW_SKILLS, A2A_BLOCK_SKILLS — see Configuration.
Expected output
Withagent_with_a2a_server running in terminal 1:
Learn more
A2A
A2A feature documentation
A2A Config
WithA2AConfig variant