a2a-debugger

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 1 Imported by: 0

README ΒΆ

A2A Debugger

CI Go Report Card GoDoc Release

The ultimate A2A (Agent-to-Agent) troubleshooting and debugging tool

A powerful command-line utility for debugging, monitoring, and inspecting A2A servers. Connect to A2A servers, list tasks, view conversation histories, and inspect task statuses with ease.

⚠️ Warning

This project is in its early stages of development.

Breaking changes are expected as we actively develop and refine the tool. Use with caution in production environments and be prepared for API changes, configuration format updates, and command-line interface modifications between versions.

We recommend pinning to specific versions in your scripts and monitoring the CHANGELOG.md for breaking changes.

πŸš€ Features

  • Server Connectivity: Test connections to A2A servers and retrieve agent information
  • Task Management: List, filter, and inspect tasks with detailed status information
  • Conversation History: View detailed conversation histories and message flows
  • Agent Information: Retrieve and display agent cards with capabilities
  • Flexible Configuration: Support for configuration files and environment variables
  • Debug Logging: Comprehensive logging with configurable verbosity levels

πŸ“¦ Installation

Use our install script to automatically download and install the latest binary:

curl -fsSL https://raw.githubusercontent.com/inference-gateway/a2a-debugger/main/install.sh | bash

Or download and run the script manually:

wget https://raw.githubusercontent.com/inference-gateway/a2a-debugger/main/install.sh
chmod +x install.sh
./install.sh

Install Options:

  • Install specific version: ./install.sh --version v1.0.0
  • Custom install directory: INSTALL_DIR=~/bin ./install.sh
  • Show help: ./install.sh --help
Using Go Install
go install github.com/inference-gateway/a2a-debugger@latest
From Release

Download the latest binary from the releases page.

Build from Source
git clone https://github.com/inference-gateway/a2a-debugger.git
cd a2a-debugger
task build

πŸ”§ Usage

Quick Start

Test connection to an A2A server:

a2a connect --server-url http://localhost:8080

List all tasks:

a2a list-tasks --server-url http://localhost:8080

Get specific task details:

a2a get-task --server-url http://localhost:8080 --task-id <task-id>

View conversation history:

a2a history --server-url http://localhost:8080 --context-id <context-id>
Configuration

Create a configuration file at ~/.a2a.yaml:

server-url: http://localhost:8080
timeout: 30s
debug: false
insecure: false
Command Options
Global Options
  • --server-url: A2A server URL (default: http://localhost:8080)
  • --timeout: Request timeout (default: 30s)
  • --debug: Enable debug logging
  • --insecure: Skip TLS verification
  • --config: Config file path
List Tasks Options
  • --state: Filter by task state (pending, running, completed, failed)
  • --context-id: Filter by context ID
  • --limit: Maximum number of tasks to return
  • --offset: Number of tasks to skip
Examples
Connect and view agent information
$ a2a connect --server-url https://my-agent.example.com

βœ… Successfully connected to A2A server!

Agent Information:
  Name: My A2A Agent
  Description: A helpful assistant agent
  Version: 1.0.0
  URL: https://my-agent.example.com

Capabilities:
  Streaming: true
  Push Notifications: false
  State Transition History: true
List tasks with filtering
$ a2a list-tasks --state running --limit 5

πŸ“‹ Tasks (Total: 23, Showing: 5)

1. Task ID: task-abc123
   Context ID: ctx-xyz789
   Status: running
   Message ID: msg-456
   Role: assistant

2. Task ID: task-def456
   Context ID: ctx-uvw123
   Status: running
   Message ID: msg-789
   Role: user
View detailed task information
$ a2a get-task --task-id task-abc123

πŸ“ Task Details

Task ID: task-abc123
Context ID: ctx-xyz789
Status: completed
Created: 2025-06-17T10:30:00Z
Updated: 2025-06-17T10:35:00Z

Message:
  ID: msg-456
  Role: assistant
  Content: Hello! How can I help you today?

πŸ› οΈ Development

Prerequisites
  • Go 1.24 or later
  • Task for build automation
Available Tasks
task generate    # Generate code from schemas
task lint       # Run linting
task build      # Build the application
task test       # Run tests
task clean      # Clean build artifacts
Development Workflow
  1. Make your changes
  2. Run task generate to update generated files
  3. Run task lint to check code quality
  4. Run task build to verify compilation
  5. Run task test to ensure all tests pass

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
Code generated from JSON schema.
Code generated from JSON schema.

Jump to

Keyboard shortcuts

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