pub struct ToolSpec {
pub name: String,
pub description: String,
pub input_schema: String,
}Expand description
Metadata describing a tool for system-prompt generation and introspection.
Fields§
§name: StringUnique name used to invoke the tool from the ReAct loop.
description: StringHuman-readable description included in the agent’s system prompt.
input_schema: StringJSON Schema string describing the tool’s input format.
Implementations§
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