pub struct RealtimeResponseCreateParamsTool {
pub type: Option<RealtimeResponseCreateParamsToolType>,
pub name: Option<String>,
pub description: Option<String>,
pub parameters: Option<HashMap<String, Value>>,
}
Fields§
§type: Option<RealtimeResponseCreateParamsToolType>
The type of the tool, i.e. function
.
name: Option<String>
The name of the function.
description: Option<String>
The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything).
parameters: Option<HashMap<String, Value>>
Parameters of the function in JSON Schema.
Implementations§
Source§impl RealtimeResponseCreateParamsTool
impl RealtimeResponseCreateParamsTool
Sourcepub fn builder() -> RealtimeResponseCreateParamsToolBuilder<((), (), (), ())>
pub fn builder() -> RealtimeResponseCreateParamsToolBuilder<((), (), (), ())>
Create a builder for building RealtimeResponseCreateParamsTool
.
On the builder, call .r#type(...)
(optional), .name(...)
(optional), .description(...)
(optional), .parameters(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeResponseCreateParamsTool
.
Trait Implementations§
Source§impl Clone for RealtimeResponseCreateParamsTool
impl Clone for RealtimeResponseCreateParamsTool
Source§fn clone(&self) -> RealtimeResponseCreateParamsTool
fn clone(&self) -> RealtimeResponseCreateParamsTool
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 Default for RealtimeResponseCreateParamsTool
impl Default for RealtimeResponseCreateParamsTool
Source§fn default() -> RealtimeResponseCreateParamsTool
fn default() -> RealtimeResponseCreateParamsTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeResponseCreateParamsTool
impl<'de> Deserialize<'de> for RealtimeResponseCreateParamsTool
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
Source§impl PartialEq for RealtimeResponseCreateParamsTool
impl PartialEq for RealtimeResponseCreateParamsTool
Source§fn eq(&self, other: &RealtimeResponseCreateParamsTool) -> bool
fn eq(&self, other: &RealtimeResponseCreateParamsTool) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeResponseCreateParamsTool
Auto Trait Implementations§
impl Freeze for RealtimeResponseCreateParamsTool
impl RefUnwindSafe for RealtimeResponseCreateParamsTool
impl Send for RealtimeResponseCreateParamsTool
impl Sync for RealtimeResponseCreateParamsTool
impl Unpin for RealtimeResponseCreateParamsTool
impl UnwindSafe for RealtimeResponseCreateParamsTool
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