a2a

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelTask

func CancelTask(id string) error

CancelTask marks a task as cancelled.

func CreateTask

func CreateTask(skill, input string) (*storage.A2ATask, error)

CreateTask registers a new A2A task in submitted state.

func GetStats

func GetStats() map[string]int

GetStats returns current task counts by status.

func GetTask

func GetTask(id string) (*storage.A2ATask, error)

GetTask returns a specific task.

func ListTasks

func ListTasks(state, skill string, limit, offset int) ([]storage.A2ATask, int, error)

ListTasks returns matching tasks.

Types

type AgentCard

type AgentCard struct {
	Name         string            `json:"name"`
	Description  string            `json:"description"`
	URL          string            `json:"url"`
	Version      string            `json:"version"`
	Capabilities map[string]bool   `json:"capabilities"`
	Skills       []AgentSkill      `json:"skills"`
	Auth         map[string]string `json:"authentication"`
}

func GetAgentCard

func GetAgentCard(baseURL string) AgentCard

GetAgentCard generates the standard Agent Card adhering to A2A Protocol v0.3.

type AgentSkill

type AgentSkill struct {
	ID          string   `json:"id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
	Examples    []string `json:"examples,omitempty"`
}

Jump to

Keyboard shortcuts

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