pub struct RealtimeSessionTool {
pub type: Option<RealtimeSessionToolType>,
pub name: Option<String>,
pub description: Option<String>,
pub parameters: Option<HashMap<String, Value>>,
}
Fields§
§type: Option<RealtimeSessionToolType>
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 RealtimeSessionTool
impl RealtimeSessionTool
Sourcepub fn builder() -> RealtimeSessionToolBuilder<((), (), (), ())>
pub fn builder() -> RealtimeSessionToolBuilder<((), (), (), ())>
Create a builder for building RealtimeSessionTool
.
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 RealtimeSessionTool
.
Trait Implementations§
Source§impl Clone for RealtimeSessionTool
impl Clone for RealtimeSessionTool
Source§fn clone(&self) -> RealtimeSessionTool
fn clone(&self) -> RealtimeSessionTool
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 RealtimeSessionTool
impl Debug for RealtimeSessionTool
Source§impl Default for RealtimeSessionTool
impl Default for RealtimeSessionTool
Source§fn default() -> RealtimeSessionTool
fn default() -> RealtimeSessionTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeSessionTool
impl<'de> Deserialize<'de> for RealtimeSessionTool
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 RealtimeSessionTool
impl PartialEq for RealtimeSessionTool
Source§impl Serialize for RealtimeSessionTool
impl Serialize for RealtimeSessionTool
impl StructuralPartialEq for RealtimeSessionTool
Auto Trait Implementations§
impl Freeze for RealtimeSessionTool
impl RefUnwindSafe for RealtimeSessionTool
impl Send for RealtimeSessionTool
impl Sync for RealtimeSessionTool
impl Unpin for RealtimeSessionTool
impl UnwindSafe for RealtimeSessionTool
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