Skip to main content

Module describe

Module describe 

Source
Expand description

Human-readable rendering of skills and families — “the description” layer.

render_skill turns one Skill into a plain-text block: its description, use cases, worked examples, validation rules, and pretty- printed argument schema. render_family does the same for a FamilyMeta. These power an on-demand introspection tool (commonly named describe_skill / describe_family) so a model can look up one tool’s exact shape after the initial tools/list — handy when a host truncates the catalog, or when the model wants to double-check arguments before a call.

Both renderers accept an optional gating line so the host can splice in application-specific state (“[filesystem].enabled = true”) without this crate needing to know anything about configuration.

Functions§

render_family
Render one family as a plain-text description block: its summary, capability state, the tools it contributes, and a worked flow if it has one. gating is an optional application-specific line spliced in after the capability line.
render_skill
Render one skill as a plain-text description block.