pub struct ConversationalChainBuilder<L>where
L: LLM + 'static,{ /* private fields */ }
Implementations§
source§impl<L> ConversationalChainBuilder<L>where
L: LLM + 'static,
impl<L> ConversationalChainBuilder<L>where
L: LLM + 'static,
pub fn new() -> Self
pub fn llm(self, llm: L) -> Self
pub fn options(self, options: ChainCallOptions) -> Self
pub fn memory(self, memory: Arc<Mutex<dyn BaseMemory>>) -> Self
pub fn output_key<S: Into<String>>(self, output_key: S) -> Self
pub fn build(self) -> Result<ConversationalChain, ChainError>
Auto Trait Implementations§
impl<L> Freeze for ConversationalChainBuilder<L>where
L: Freeze,
impl<L> !RefUnwindSafe for ConversationalChainBuilder<L>
impl<L> Send for ConversationalChainBuilder<L>
impl<L> !Sync for ConversationalChainBuilder<L>
impl<L> Unpin for ConversationalChainBuilder<L>where
L: Unpin,
impl<L> !UnwindSafe for ConversationalChainBuilder<L>
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