pub struct CreateChatSessionRequestArgs { /* private fields */ }Expand description
Builder for CreateChatSessionBody.
Implementations§
Source§impl CreateChatSessionRequestArgs
impl CreateChatSessionRequestArgs
Sourcepub fn workflow<VALUE: Into<WorkflowParam>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn workflow<VALUE: Into<WorkflowParam>>( &mut self, value: VALUE, ) -> &mut Self
Workflow that powers the session.
Sourcepub fn user<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn user<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A free-form string that identifies your end user; ensures this Session can access other objects that have the same user scope.
Sourcepub fn expires_after<VALUE: Into<ExpiresAfterParam>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn expires_after<VALUE: Into<ExpiresAfterParam>>( &mut self, value: VALUE, ) -> &mut Self
Optional override for session expiration timing in seconds from creation. Defaults to 10 minutes.
Sourcepub fn rate_limits<VALUE: Into<RateLimitsParam>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn rate_limits<VALUE: Into<RateLimitsParam>>( &mut self, value: VALUE, ) -> &mut Self
Optional override for per-minute request limits. When omitted, defaults to 10.
Sourcepub fn chatkit_configuration<VALUE: Into<ChatkitConfigurationParam>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn chatkit_configuration<VALUE: Into<ChatkitConfigurationParam>>( &mut self, value: VALUE, ) -> &mut Self
Optional overrides for ChatKit runtime configuration features
Sourcepub fn build(&self) -> Result<CreateChatSessionBody, OpenAIError>
pub fn build(&self) -> Result<CreateChatSessionBody, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateChatSessionRequestArgs
impl Clone for CreateChatSessionRequestArgs
Source§fn clone(&self) -> CreateChatSessionRequestArgs
fn clone(&self) -> CreateChatSessionRequestArgs
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 CreateChatSessionRequestArgs
impl Debug for CreateChatSessionRequestArgs
Auto Trait Implementations§
impl Freeze for CreateChatSessionRequestArgs
impl RefUnwindSafe for CreateChatSessionRequestArgs
impl Send for CreateChatSessionRequestArgs
impl Sync for CreateChatSessionRequestArgs
impl Unpin for CreateChatSessionRequestArgs
impl UnwindSafe for CreateChatSessionRequestArgs
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