pub struct LLMChainBuilder { /* private fields */ }Expand description
LLMChain Builder.
Convenience builder for LLMChain.
Implementations§
Source§impl LLMChainBuilder
impl LLMChainBuilder
Sourcepub fn new<L>(llm: L, prompt_template: impl Into<String>) -> Self
pub fn new<L>(llm: L, prompt_template: impl Into<String>) -> Self
Create a new LLMChainBuilder with the given LLM and prompt template.
Sourcepub fn output_key(self, key: impl Into<String>) -> Self
pub fn output_key(self, key: impl Into<String>) -> Self
Set the output key.
Auto Trait Implementations§
impl !RefUnwindSafe for LLMChainBuilder
impl !UnwindSafe for LLMChainBuilder
impl Freeze for LLMChainBuilder
impl Send for LLMChainBuilder
impl Sync for LLMChainBuilder
impl Unpin for LLMChainBuilder
impl UnsafeUnpin 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