pub struct ScriptToolMeta {
pub name: String,
pub description: String,
pub params: Vec<ParamSpec>,
pub required_caps: Vec<String>,
}Expand description
Metadata describing a script tool: its name, description, and parameters.
Fields§
§name: StringTool name advertised to the model (must match a blueprint available_tools entry).
description: StringOne-line description of what the tool does.
params: Vec<ParamSpec>Declared parameters, in declaration order.
required_caps: Vec<String>Platform capabilities the tool declares it needs (e.g. network, shell,
filesystem). The host drops the tool when the platform can’t provide one -
a script self-declares what it depends on. Empty = always available.
Implementations§
Source§impl ScriptToolMeta
impl ScriptToolMeta
Sourcepub fn parameters_schema(&self) -> Value
pub fn parameters_schema(&self) -> Value
Build the JSON-schema parameters object advertised to the model, from
the declared ParamSpecs. Mirrors the hand-written schemas in
leviath-tools ({ type: object, properties, required }).
Trait Implementations§
Source§impl Clone for ScriptToolMeta
impl Clone for ScriptToolMeta
Source§fn clone(&self) -> ScriptToolMeta
fn clone(&self) -> ScriptToolMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptToolMeta
impl Debug for ScriptToolMeta
Source§impl PartialEq for ScriptToolMeta
impl PartialEq for ScriptToolMeta
impl StructuralPartialEq for ScriptToolMeta
Auto Trait Implementations§
impl Freeze for ScriptToolMeta
impl RefUnwindSafe for ScriptToolMeta
impl Send for ScriptToolMeta
impl Sync for ScriptToolMeta
impl Unpin for ScriptToolMeta
impl UnsafeUnpin for ScriptToolMeta
impl UnwindSafe for ScriptToolMeta
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