Module skills

Module skills 

Source
Expand description

Skill registry — centralized publish/discover for agent capabilities, the ADK skills-registry pattern.

A skill is a named, versioned capability: locally, an AgentConfig this process can build and run; remotely, an A2A endpoint another service exposes. Registries let a deployment resolve capabilities at runtime instead of hardcoding them:

let registry = LocalSkillRegistry::new();
registry.publish(SkillInfo::local("triage", "1.2.0", "Route a support ticket", config)).await?;

// Later — possibly a different subsystem:
let skill = registry.resolve("triage", None).await?.expect("registered");
let config = skill.agent.unwrap();

LocalSkillRegistry is the in-process reference backend, and LocalSkillRegistry::load_dir hydrates one from a directory of agent config files (see discover_agent_configs). Cloud registries (a database, a service mesh, Google Cloud’s skill registry) implement SkillRegistryBackend.

Structs§

LocalSkillRegistry
In-process skill registry: a versioned map behind an async lock.
SkillFilter
Filter for SkillRegistryBackend::list. Empty filter matches all.
SkillInfo
One published skill: identity, humans-facing description, and either a locally buildable agent, a remote A2A endpoint, or both.

Enums§

SkillRegistryError
Registry backend failure.

Traits§

SkillRegistryBackend
Storage backend for a skill registry. Implement this for a database or cloud registry; LocalSkillRegistry is the in-process reference.