Documentation
¶
Overview ¶
Package lint grades an A2A agent card against the A2A 1.0 AgentCard definition.
It reads the raw JSON instead of a decoded a2a.AgentCard. The most common real-world failures (an array where an object belongs, a 0.x field layout) are exactly the ones a typed decoder either rejects with one opaque error or silently drops.
Index ¶
Constants ¶
const ( // WellKnownPath is where A2A 1.0 clients look for a card (spec 8.2, 14). WellKnownPath = "/.well-known/agent-card.json" // LegacyWellKnownPath is the pre-1.0 location that 1.0 clients don't check. LegacyWellKnownPath = "/.well-known/agent.json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetched ¶
type Fetched struct {
// CardURL is the URL that served the card.
CardURL string
Raw []byte
Latency time.Duration
// Report already includes findings about where the card was served.
Report Report
}
Fetched is a card as it was served.
type Finding ¶
type Finding struct {
Severity Severity `json:"severity"`
// Path points at the offending field, for example "skills[0].tags".
Path string `json:"path"`
Message string `json:"message"`
}
Finding is one problem found in a card.