pub struct RealtimeSessionCreateResponseBuilder(/* private fields */);Expand description
Builder for RealtimeSessionCreateResponse.
Implementations§
Source§impl RealtimeSessionCreateResponseBuilder
impl RealtimeSessionCreateResponseBuilder
pub fn audio( self, value: impl Into<Option<RealtimeSessionCreateResponseAudio>>, ) -> Self
pub fn expires_at(self, value: impl Into<Option<i64>>) -> Self
pub fn include( self, value: impl Into<Option<Vec<RealtimeSessionCreateResponseIncludeItem>>>, ) -> Self
pub fn instructions(self, value: impl Into<Option<String>>) -> Self
pub fn max_output_tokens( self, value: impl Into<Option<RealtimeSessionCreateResponseMaxOutputTokens>>, ) -> Self
pub fn model(self, value: impl Into<Option<String>>) -> Self
pub fn output_modalities( self, value: impl Into<Option<Vec<RealtimeSessionCreateResponseOutputModalitiesItem>>>, ) -> Self
pub fn prompt(self, value: impl Into<Option<ResponsePrompt>>) -> Self
pub fn reasoning(self, value: impl Into<Option<RealtimeReasoning>>) -> Self
pub fn tool_choice( self, value: impl Into<Option<RealtimeSessionCreateResponseToolChoice>>, ) -> Self
pub fn tools( self, value: impl Into<Option<Vec<RealtimeSessionCreateResponseTool>>>, ) -> Self
pub fn tracing( self, value: impl Into<Option<RealtimeSessionCreateResponseTracing>>, ) -> Self
pub fn truncation(self, value: impl Into<Option<RealtimeTruncation>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> RealtimeSessionCreateResponse
pub fn build(self) -> RealtimeSessionCreateResponse
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for RealtimeSessionCreateResponseBuilder
impl RefUnwindSafe for RealtimeSessionCreateResponseBuilder
impl Send for RealtimeSessionCreateResponseBuilder
impl Sync for RealtimeSessionCreateResponseBuilder
impl Unpin for RealtimeSessionCreateResponseBuilder
impl UnsafeUnpin for RealtimeSessionCreateResponseBuilder
impl UnwindSafe for RealtimeSessionCreateResponseBuilder
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