pub struct ToolExample {
pub scenario: String,
pub parameters: Value,
pub explanation: String,
}Expand description
Represents a usage example for a tool
Each example demonstrates a specific scenario with parameters and an explanation of the expected outcome.
Fields§
§scenario: StringDescription of the scenario/use case
parameters: ValueExample parameters in JSON format
explanation: StringExplanation of what this example does and why
Implementations§
Trait Implementations§
Source§impl Clone for ToolExample
impl Clone for ToolExample
Source§fn clone(&self) -> ToolExample
fn clone(&self) -> ToolExample
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 ToolExample
impl Debug for ToolExample
Source§impl<'de> Deserialize<'de> for ToolExample
impl<'de> Deserialize<'de> for ToolExample
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolExample
impl PartialEq for ToolExample
Source§impl Serialize for ToolExample
impl Serialize for ToolExample
impl StructuralPartialEq for ToolExample
Auto Trait Implementations§
impl Freeze for ToolExample
impl RefUnwindSafe for ToolExample
impl Send for ToolExample
impl Sync for ToolExample
impl Unpin for ToolExample
impl UnsafeUnpin for ToolExample
impl UnwindSafe for ToolExample
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