a2a

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL