pub struct ChatBotBuilder<T>(/* private fields */);Implementations§
Source§impl ChatBotBuilder<NoImplProvided>
impl ChatBotBuilder<NoImplProvided>
pub fn new() -> ChatBotBuilder<NoImplProvided>
pub fn agent<M>(self, agent: Agent<M>) -> ChatBotBuilder<AgentImpl<M>>where
M: CompletionModel + 'static,
pub fn chat<T>(self, chatbot: T) -> ChatBotBuilder<ChatImpl<T>>where
T: Chat,
Source§impl<T> ChatBotBuilder<ChatImpl<T>>where
T: Chat,
impl<T> ChatBotBuilder<ChatImpl<T>>where
T: Chat,
Source§impl<M> ChatBotBuilder<AgentImpl<M>>where
M: CompletionModel + 'static,
impl<M> ChatBotBuilder<AgentImpl<M>>where
M: CompletionModel + 'static,
pub fn multi_turn_depth( self, multi_turn_depth: usize, ) -> ChatBotBuilder<AgentImpl<M>>
pub fn show_usage(self) -> ChatBotBuilder<AgentImpl<M>>
pub fn build(self) -> ChatBot<AgentImpl<M>>
Trait Implementations§
Source§impl Default for ChatBotBuilder<NoImplProvided>
impl Default for ChatBotBuilder<NoImplProvided>
Source§fn default() -> ChatBotBuilder<NoImplProvided>
fn default() -> ChatBotBuilder<NoImplProvided>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for ChatBotBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChatBotBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for ChatBotBuilder<T>where
T: Send,
impl<T> Sync for ChatBotBuilder<T>where
T: Sync,
impl<T> Unpin for ChatBotBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for ChatBotBuilder<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more