pub struct SkillExample {
pub title: &'static str,
pub args: &'static str,
pub note: Option<&'static str>,
}Expand description
One concrete worked example for a Skill. Surfaced through an
introspection tool (see crate::describe); not part of the MCP
tools/list payload, which stays tight (just description and
inputSchema) so the orientation is paid for once and looked up on
demand thereafter.
Fields§
§title: &'static strOne-line summary of what this example demonstrates.
args: &'static strThe tool arguments as a JSON literal, e.g. r#"{"image": "nginx:1.27"}"#.
Kept as a string so each example is embeddable verbatim into an LLM
context without round-tripping through serde_json.
note: Option<&'static str>Optional short note — what the output shape looks like, common gotchas, the right next call. Omit when self-explanatory.
Auto Trait Implementations§
impl Freeze for SkillExample
impl RefUnwindSafe for SkillExample
impl Send for SkillExample
impl Sync for SkillExample
impl Unpin for SkillExample
impl UnsafeUnpin for SkillExample
impl UnwindSafe for SkillExample
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more