Struct langchain_rust::chain::llm_chain::LLMChainBuilder
source · pub struct LLMChainBuilder { /* private fields */ }
Implementations§
source§impl LLMChainBuilder
impl LLMChainBuilder
pub fn new() -> Self
pub fn options(self, options: ChainCallOptions) -> Self
pub fn prompt<P>(self, prompt: P) -> Selfwhere
P: FormatPrompter + 'static,
pub fn llm<L>(self, llm: L) -> Selfwhere
L: LLM + 'static,
pub fn output_key<S: Into<String>>(self, output_key: S) -> Self
pub fn build(self) -> Result<LLMChain, ChainError>
Auto Trait Implementations§
impl Freeze for LLMChainBuilder
impl !RefUnwindSafe for LLMChainBuilder
impl Send for LLMChainBuilder
impl !Sync for LLMChainBuilder
impl Unpin for LLMChainBuilder
impl !UnwindSafe for LLMChainBuilder
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