pub struct ToolSpec {
pub name: &'static str,
pub server: &'static str,
pub mutates: bool,
pub model_fields: &'static [&'static str],
pub description: &'static str,
pub parameters: fn() -> Value,
}Expand description
One tool as the model and agentplane see it.
Fields§
§name: &'static strName offered to the model, e.g. read_file.
server: &'static stragentplane tool server: fs, proc or git.
mutates: boolWhether calling it can change the world.
model_fields: &'static [&'static str]Argument pointers the model authors (declared on mutating grants).
description: &'static strWhat the model is told.
parameters: fn() -> ValueJSON schema of the arguments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolSpec
impl RefUnwindSafe for ToolSpec
impl Send for ToolSpec
impl Sync for ToolSpec
impl Unpin for ToolSpec
impl UnsafeUnpin for ToolSpec
impl UnwindSafe for ToolSpec
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