Struct langchain_rust::chain::sql_datbase::SQLDatabaseChainBuilder
source · pub struct SQLDatabaseChainBuilder<L>where
L: LLM + 'static,{ /* private fields */ }
Implementations§
source§impl<L> SQLDatabaseChainBuilder<L>where
L: LLM + 'static,
impl<L> SQLDatabaseChainBuilder<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 top_k(self, top_k: usize) -> Self
pub fn database(self, database: SQLDatabase) -> Self
pub fn build(self) -> Result<SQLDatabaseChain, ChainError>
Auto Trait Implementations§
impl<L> Freeze for SQLDatabaseChainBuilder<L>where
L: Freeze,
impl<L> !RefUnwindSafe for SQLDatabaseChainBuilder<L>
impl<L> Send for SQLDatabaseChainBuilder<L>
impl<L> !Sync for SQLDatabaseChainBuilder<L>
impl<L> Unpin for SQLDatabaseChainBuilder<L>where
L: Unpin,
impl<L> !UnwindSafe for SQLDatabaseChainBuilder<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