pub struct ToolPrompt {
pub name: String,
pub snippet: String,
pub guidelines: Vec<String>,
}Expand description
A tool’s contribution to the system prompt.
Fields§
§name: StringTool name (e.g. “bash”).
snippet: StringOne-line description for the “Available tools” list.
guidelines: Vec<String>Extra guideline bullets for the “Guidelines” section.
Trait Implementations§
Source§impl Clone for ToolPrompt
impl Clone for ToolPrompt
Source§fn clone(&self) -> ToolPrompt
fn clone(&self) -> ToolPrompt
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolPrompt
impl Debug for ToolPrompt
Source§impl From<&PluginToolDef> for ToolPrompt
Convert a PluginToolDef into a ToolPrompt.
impl From<&PluginToolDef> for ToolPrompt
Convert a PluginToolDef into a ToolPrompt.
Source§fn from(def: &PluginToolDef) -> ToolPrompt
fn from(def: &PluginToolDef) -> ToolPrompt
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolPrompt
impl RefUnwindSafe for ToolPrompt
impl Send for ToolPrompt
impl Sync for ToolPrompt
impl Unpin for ToolPrompt
impl UnsafeUnpin for ToolPrompt
impl UnwindSafe for ToolPrompt
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