pub struct ToolFunctionParameters {
pub schema_type: JSONSchemaType,
pub properties: Option<IndexMap<String, Box<JSONSchemaDefine>>>,
pub required: Option<Vec<String>>,
}Expand description
The parameters the functions accepts, described as a JSON Schema object.
See the guide for examples, and the JSON Schema reference for documentation about the format.
To describe a function that accepts no parameters, provide the value
{"type": "object", "properties": {}}.
Fields§
§schema_type: JSONSchemaType§properties: Option<IndexMap<String, Box<JSONSchemaDefine>>>§required: Option<Vec<String>>Trait Implementations§
Source§impl Clone for ToolFunctionParameters
impl Clone for ToolFunctionParameters
Source§fn clone(&self) -> ToolFunctionParameters
fn clone(&self) -> ToolFunctionParameters
Returns a copy 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 ToolFunctionParameters
impl Debug for ToolFunctionParameters
Source§impl<'de> Deserialize<'de> for ToolFunctionParameters
impl<'de> Deserialize<'de> for ToolFunctionParameters
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 ToolFunctionParameters
impl RefUnwindSafe for ToolFunctionParameters
impl Send for ToolFunctionParameters
impl Sync for ToolFunctionParameters
impl Unpin for ToolFunctionParameters
impl UnwindSafe for ToolFunctionParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)