Expand description
Agent skills for the SIM runtime.
A skill is a callable capability that an agent can invoke – a tool, a
model, a resource, a prompt, a memory, a retriever, a judge, or a router.
Each skill is described by a SkillCard that pairs a stable identity and
symbol with input and output sim_shape contracts, a SkillPolicy
governing caching/recording/privacy, and the transport that actually runs
the call. Cards are bound into a SkillRegistry and exposed as ordinary
callable runtime objects through SkillCallable.
Behavior is provided by a SkillTransport: a backend (fixture, HTTP, MCP,
process, OpenAI-compatible server, …) that knows how to discover and call
skills. SkillLib registers the skill/* operations (install, bind,
list, card, call, and the feature-gated audit/tool/runner/serve surfaces)
when the library is loaded into a sim_kernel::Cx.
Optional Cargo features select transports and integrations: mcp, http,
openai, process, agent, runner, serve, and the cache/cassette
recording surfaces.
Structs§
- Fixture
Skill Spec - Inputs for building a fixture
SkillCardviaSkillCard::fixture. - Fixture
Transport - In-memory skill transport for tests and examples.
- Skill
Callable - Callable runtime object that invokes a single bound skill.
- Skill
Card - Full runtime description of a single skill.
- Skill
Card Descriptor - Serializable
skill/Cardprojection of aSkillCard. - Skill
Function - Callable runtime object implementing one
skill/*operation. - Skill
Lib - Loadable library that registers the
skill/*operations and registry. - Skill
Policy - Privacy, caching, and recording policy attached to a
SkillCard. - Skill
Registry - Live registry of skill transports and bound cards.
- Skill
Transport Value - Runtime
Objectwrapper around a sharedSkillTransport.
Enums§
- Fixture
Behavior - Deterministic behavior a
FixtureTransportruns for an operation. - Skill
Cache Mode - Caching behavior for a skill’s results.
- Skill
Cassette Mode - Cassette (record/replay) behavior for a skill’s calls.
- Skill
Privacy Policy - How much of a skill’s raw payload may leave the local boundary.
- Skill
Role - Role a skill plays for an agent.
Constants§
- SKILL_
LIB_ ID - Stable identifier for the skill library and its symbol namespace.
Traits§
- Skill
Event Sink - Sink that receives streaming events emitted during a skill call.
- Skill
Transport - Backend that discovers and runs skills.
Functions§
- install_
fixture_ skill - Installs the skill library, registers
transport, and bindscard. - install_
skill_ lib - Installs the skill library into
cxonce and publishes its browse metadata. - manifest_
name - Returns the manifest identifier symbol for
SkillLib. - skill_
bind_ symbol - Returns the symbol for the
skill/bindoperation. - skill_
call_ capability - Returns the broad capability required to call any skill.
- skill_
call_ symbol - Returns the symbol for the
skill/calloperation. - skill_
card_ descriptor_ class_ symbol - Returns the class symbol (
skill/Card) forSkillCardDescriptor. - skill_
card_ symbol - Returns the symbol for the
skill/cardoperation. - skill_
exports - Returns the library exports: every
skill/*function plus the registry value, with the feature-gated operations included when their feature is on. - skill_
install_ capability - Returns the capability required to call
skill/install. - skill_
install_ symbol - Returns the symbol for the
skill/installoperation. - skill_
list_ symbol - Returns the symbol for the
skill/listoperation. - skill_
registry - Resolves the
SkillRegistryinstalled incx. - skill_
registry_ symbol - Returns the symbol the
SkillRegistryvalue is bound under. - skill_
serve_ capability - Returns the capability required to serve skills over a transport.
- skill_
specific_ call_ capability - Returns the per-skill call capability for the skill with the given
id. - skill_
transport_ value - Wraps
transportin an opaqueSkillTransportValueruntime value.