pub struct ToolParametersDefinition {
pub param_type: String,
pub properties: HashMap<String, ToolParameter>,
pub required: Vec<String>,
}Expand description
Defines the parameters structure for a tool, following JSON Schema object type.
Fields§
§param_type: StringThe type of the parameters object, typically “object”.
properties: HashMap<String, ToolParameter>A map defining the individual parameters, keyed by parameter name.
required: Vec<String>A list of parameter names that are required by the tool function.
Trait Implementations§
Source§impl Clone for ToolParametersDefinition
impl Clone for ToolParametersDefinition
Source§fn clone(&self) -> ToolParametersDefinition
fn clone(&self) -> ToolParametersDefinition
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 ToolParametersDefinition
impl Debug for ToolParametersDefinition
Source§impl<'de> Deserialize<'de> for ToolParametersDefinition
impl<'de> Deserialize<'de> for ToolParametersDefinition
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 ToolParametersDefinition
impl RefUnwindSafe for ToolParametersDefinition
impl Send for ToolParametersDefinition
impl Sync for ToolParametersDefinition
impl Unpin for ToolParametersDefinition
impl UnwindSafe for ToolParametersDefinition
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