Documentation
¶
Overview ¶
Package registry holds the types shared by the registry server and its client.
The registry is an index, not the source of truth. It records where an agent's card lives and how good it is, while clients still fetch the card from the agent's own domain before they call it.
Index ¶
Constants ¶
const LatencyBandMS = 100
LatencyBandMS is the latency resolution used for ranking: agents within the same band are ordered by name, so a few milliseconds of jitter do not reshuffle results.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
// URL is the base URL the agent was registered with.
URL string `json:"url"`
// CardURL is where the card was actually served.
CardURL string `json:"cardUrl"`
// Card is nil when the card could not be decoded.
Card *a2a.AgentCard `json:"card,omitempty"`
Report lint.Report `json:"report"`
Registered time.Time `json:"registered"`
LastSeen time.Time `json:"lastSeen"`
LatencyMS int64 `json:"latencyMs"`
Up bool `json:"up"`
LastError string `json:"lastError,omitempty"`
}
Entry is one registered agent.
type Query ¶
type Query struct {
// Skill matches a skill ID or a skill tag.
Skill string
// Text matches the agent name or description, case-insensitively.
Text string
// IncludeNonConformant also returns agents whose card has errors.
IncludeNonConformant bool
// IncludeDown also returns agents that failed their last liveness check.
IncludeDown bool
}
Query filters a search. Empty fields match everything.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package client talks to a registry server: agents register themselves, and orchestrators search for agents by skill.
|
Package client talks to a registry server: agents register themselves, and orchestrators search for agents by skill. |
|
cmd
|
|
|
card-lint
command
Command card-lint grades an A2A agent card against A2A 1.0.
|
Command card-lint grades an A2A agent card against A2A 1.0. |
|
registry
command
Command registry runs an A2A agent registry with a card checker.
|
Command registry runs an A2A agent registry with a card checker. |
|
Package lint grades an A2A agent card against the A2A 1.0 AgentCard definition.
|
Package lint grades an A2A agent card against the A2A 1.0 AgentCard definition. |
|
Package server is a small A2A agent registry: agents register their base URL, the server fetches and grades the card, re-checks liveness in the background, and answers searches by skill.
|
Package server is a small A2A agent registry: agents register their base URL, the server fetches and grades the card, re-checks liveness in the background, and answers searches by skill. |