pub struct ChatBuilder { /* private fields */ }
Expand description
Builder for creating and sending chat requests to the LLM canister.
Implementations§
Source§impl ChatBuilder
impl ChatBuilder
Sourcepub fn with_messages(self, messages: Vec<ChatMessage>) -> Self
pub fn with_messages(self, messages: Vec<ChatMessage>) -> Self
Sets the messages for the chat.
Sourcepub fn with_tools(self, tools: Vec<Tool>) -> Self
pub fn with_tools(self, tools: Vec<Tool>) -> Self
Sets the tools for the chat.
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