links

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 2 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

Overview

Package links is a small metadata convention for traces that cross agents.

When an orchestrator delegates work, it marks one of its own status updates with the downstream task it created. The console reads the mark and draws the parent → child tree. Nothing here is part of the A2A spec; it rides in ordinary event metadata, so agents that don't know about it simply ignore it.

Index

Constants

View Source
const MetadataKey = "https://threeagents.dev/ext/links/v1"

MetadataKey is the metadata key that carries a Child.

Variables

This section is empty.

Functions

func Set

func Set(carrier interface{ SetMeta(string, any) }, child Child)

Set records child in the metadata of an event, task or message.

Types

type Child

type Child struct {
	// AgentURL is the base URL of the downstream agent.
	AgentURL string     `json:"agentUrl"`
	TaskID   a2a.TaskID `json:"taskId"`
	Skill    string     `json:"skill,omitempty"`
}

Child points at a task another agent runs on behalf of this one.

func Get

func Get(meta map[string]any) (Child, bool)

Get reads a Child from metadata, which usually arrived as JSON.

Jump to

Keyboard shortcuts

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