Documentation
¶
Overview ¶
@sk-task a2a#polish: A2A example — two agents communicating via HTTP
This example starts two agents (Writer + Reviewer) on separate ports communicating via the A2A protocol. The Writer delegates a task to the Reviewer via DelegateToAgentTool.
Prerequisites:
- Ollama running locally with a model (default: gemma3:4b) OR any OpenAI-compatible API
Usage:
# Default (Ollama): go run main.go # Custom API: LLM_BASE_URL=https://api.openai.com/v1 \ LLM_API_KEY=sk-... \ LLM_MODEL=gpt-4o-mini \ go run main.go
Click to show internal directories.
Click to hide internal directories.