pub struct Chatkit<'c, C: Config> { /* private fields */ }Expand description
ChatKit API for managing sessions and threads.
Related guide: ChatKit
Implementations§
Trait Implementations§
Source§impl<'c, C: Config> RequestOptionsBuilder for Chatkit<'c, C>
impl<'c, C: Config> RequestOptionsBuilder for Chatkit<'c, C>
Source§fn options_mut(&mut self) -> &mut RequestOptions
fn options_mut(&mut self) -> &mut RequestOptions
Get mutable reference to RequestOptions (for building)
Source§fn options(&self) -> &RequestOptions
fn options(&self) -> &RequestOptions
Get reference to RequestOptions
Source§fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
Add a single header to RequestOptions
Auto Trait Implementations§
impl<'c, C> Freeze for Chatkit<'c, C>
impl<'c, C> !RefUnwindSafe for Chatkit<'c, C>
impl<'c, C> Send for Chatkit<'c, C>
impl<'c, C> Sync for Chatkit<'c, C>
impl<'c, C> Unpin for Chatkit<'c, C>
impl<'c, C> !UnwindSafe for Chatkit<'c, C>
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