pub struct ChatBuilder { /* private fields */ }
Expand description
A builder for creating Chat
instances with specified messages.
This builder allows you to incrementally add Message
objects to a Chat
.
Implementations§
Source§impl ChatBuilder
impl ChatBuilder
Sourcepub fn add_message(self, message: Message) -> Self
pub fn add_message(self, message: Message) -> Self
Sourcepub fn conversation_id(self, conversation_id: String) -> Self
pub fn conversation_id(self, conversation_id: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChatBuilder
impl RefUnwindSafe for ChatBuilder
impl Send for ChatBuilder
impl Sync for ChatBuilder
impl Unpin for ChatBuilder
impl UnwindSafe for ChatBuilder
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