pub struct ToolParameters {
pub properties: HashMap<String, ToolParameter>,
pub required: Vec<String>,
}Expand description
The parameters expected by a tool.
Fields§
§properties: HashMap<String, ToolParameter>The map of parameter names to their schemas.
required: Vec<String>The list of required parameters.
Trait Implementations§
Source§impl Clone for ToolParameters
impl Clone for ToolParameters
Source§fn clone(&self) -> ToolParameters
fn clone(&self) -> ToolParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolParameters
impl Debug for ToolParameters
Source§impl Default for ToolParameters
impl Default for ToolParameters
Source§fn default() -> ToolParameters
fn default() -> ToolParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolParameters
impl<'de> Deserialize<'de> for ToolParameters
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
impl Eq for ToolParameters
Source§impl PartialEq for ToolParameters
impl PartialEq for ToolParameters
Source§impl Serialize for ToolParameters
impl Serialize for ToolParameters
impl StructuralPartialEq for ToolParameters
Auto Trait Implementations§
impl Freeze for ToolParameters
impl RefUnwindSafe for ToolParameters
impl Send for ToolParameters
impl Sync for ToolParameters
impl Unpin for ToolParameters
impl UnsafeUnpin for ToolParameters
impl UnwindSafe for ToolParameters
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