pub struct ConversationChainBuilder<M: BaseChatModel> { /* private fields */ }Expand description
ConversationChain Builder.
Convenience builder for ConversationChain.
Implementations§
Source§impl<M: BaseChatModel + 'static> ConversationChainBuilder<M>
impl<M: BaseChatModel + 'static> ConversationChainBuilder<M>
pub fn new(llm: M) -> Self
pub fn memory<Mem: BaseMemory + 'static>(self, memory: Mem) -> Self
pub fn system_prompt(self, prompt: impl Into<String>) -> Self
pub fn input_key(self, key: impl Into<String>) -> Self
pub fn output_key(self, key: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn verbose(self, verbose: bool) -> Self
pub fn build(self) -> ConversationChain<M>
Auto Trait Implementations§
impl<M> !RefUnwindSafe for ConversationChainBuilder<M>
impl<M> !UnwindSafe for ConversationChainBuilder<M>
impl<M> Freeze for ConversationChainBuilder<M>where
M: Freeze,
impl<M> Send for ConversationChainBuilder<M>
impl<M> Sync for ConversationChainBuilder<M>
impl<M> Unpin for ConversationChainBuilder<M>where
M: Unpin,
impl<M> UnsafeUnpin for ConversationChainBuilder<M>where
M: UnsafeUnpin,
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