pub struct ToolSpec {
pub name: String,
pub description: String,
pub params: Vec<(String, FieldType)>,
}Expand description
A function the model may call. Built from a Kora tool declaration:
the signature becomes the schema, the docstring becomes the description.
Fields§
§name: String§description: String§params: Vec<(String, FieldType)>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