pub struct ToolParameter {
pub param_type: ToolParameterType,
pub description: String,
pub enum_values: Option<Vec<String>>,
pub items: Option<Box<ToolParameter>>,
}Expand description
Defines a single parameter within a tool’s schema.
Fields§
§param_type: ToolParameterTypeThe data type of the parameter.
description: StringA description of the parameter’s purpose.
enum_values: Option<Vec<String>>Optional list of allowed string values for an enum-like parameter.
items: Option<Box<ToolParameter>>Optional definition for the items if param_type is Array.
Trait Implementations§
Source§impl Clone for ToolParameter
impl Clone for ToolParameter
Source§fn clone(&self) -> ToolParameter
fn clone(&self) -> ToolParameter
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 ToolParameter
impl Debug for ToolParameter
Source§impl<'de> Deserialize<'de> for ToolParameter
impl<'de> Deserialize<'de> for ToolParameter
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
Auto Trait Implementations§
impl Freeze for ToolParameter
impl RefUnwindSafe for ToolParameter
impl Send for ToolParameter
impl Sync for ToolParameter
impl Unpin for ToolParameter
impl UnwindSafe for ToolParameter
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