Skip to main content

route_skill

Function route_skill 

Source
pub fn route_skill<S>(skill: Box<dyn Skill<S>>) -> ToolRoute<S>
where S: Send + Sync + 'static,
Expand description

Adapt one boxed Skill into a ready-to-register ToolRoute. Applies the declarative validation gate before invoking the skill body. See the module docs for the exact behavior.