pub struct RealtimeClientEventResponseCreate {
pub event_id: Option<String>,
pub response: Option<RealtimeResponseCreateParams>,
}
Expand description
This event instructs the server to create a Response, which means triggering model inference. When in Server VAD mode, the server will create Responses automatically.
A Response will include at least one Item, and may have two, in which case the second will be a function call. These Items will be appended to the conversation history.
The server will respond with a response.created
event, events for Items
and content created, and finally a response.done
event to indicate the
Response is complete.
The response.create
event includes inference configuration like
instructions
, and temperature
. These fields will override the Session’s
configuration for this Response only.
Fields§
§event_id: Option<String>
Optional client-generated ID used to identify this event.
response: Option<RealtimeResponseCreateParams>
Implementations§
Source§impl RealtimeClientEventResponseCreate
impl RealtimeClientEventResponseCreate
Sourcepub fn builder() -> RealtimeClientEventResponseCreateBuilder<((), ())>
pub fn builder() -> RealtimeClientEventResponseCreateBuilder<((), ())>
Create a builder for building RealtimeClientEventResponseCreate
.
On the builder, call .event_id(...)
(optional), .response(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeClientEventResponseCreate
.
Trait Implementations§
Source§impl Clone for RealtimeClientEventResponseCreate
impl Clone for RealtimeClientEventResponseCreate
Source§fn clone(&self) -> RealtimeClientEventResponseCreate
fn clone(&self) -> RealtimeClientEventResponseCreate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RealtimeClientEventResponseCreate
impl Default for RealtimeClientEventResponseCreate
Source§fn default() -> RealtimeClientEventResponseCreate
fn default() -> RealtimeClientEventResponseCreate
Source§impl<'de> Deserialize<'de> for RealtimeClientEventResponseCreate
impl<'de> Deserialize<'de> for RealtimeClientEventResponseCreate
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>,
Source§impl PartialEq for RealtimeClientEventResponseCreate
impl PartialEq for RealtimeClientEventResponseCreate
Source§fn eq(&self, other: &RealtimeClientEventResponseCreate) -> bool
fn eq(&self, other: &RealtimeClientEventResponseCreate) -> bool
self
and other
values to be equal, and is used by ==
.