pub struct ChatCompletionRequestFunctionParameters {
pub schema_type: JSONSchemaType,
pub properties: Option<HashMap<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<HashMap<String, Box<JSONSchemaDefine>>>§required: Option<Vec<String>>Trait Implementations§
source§impl Clone for ChatCompletionRequestFunctionParameters
impl Clone for ChatCompletionRequestFunctionParameters
source§fn clone(&self) -> ChatCompletionRequestFunctionParameters
fn clone(&self) -> ChatCompletionRequestFunctionParameters
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<'de> Deserialize<'de> for ChatCompletionRequestFunctionParameters
impl<'de> Deserialize<'de> for ChatCompletionRequestFunctionParameters
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 ChatCompletionRequestFunctionParameters
impl RefUnwindSafe for ChatCompletionRequestFunctionParameters
impl Send for ChatCompletionRequestFunctionParameters
impl Sync for ChatCompletionRequestFunctionParameters
impl Unpin for ChatCompletionRequestFunctionParameters
impl UnwindSafe for ChatCompletionRequestFunctionParameters
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)