pub struct SqlToolLoopOptions {
pub model: Model,
pub prompt: String,
pub system: Option<String>,
pub policy: Option<SqlPolicy>,
pub profile_id: Option<Uuid>,
pub max_attempts: Option<usize>,
pub require_schema_inspection: Option<bool>,
pub sample_rows: Option<bool>,
pub sample_rows_limit: Option<usize>,
pub result_limit: Option<usize>,
}Fields§
§model: Model§prompt: String§system: Option<String>§policy: Option<SqlPolicy>§profile_id: Option<Uuid>§max_attempts: Option<usize>§require_schema_inspection: Option<bool>§sample_rows: Option<bool>§sample_rows_limit: Option<usize>§result_limit: Option<usize>Implementations§
Source§impl SqlToolLoopOptions
impl SqlToolLoopOptions
pub fn new(model: impl Into<Model>, prompt: impl Into<String>) -> Self
pub fn with_system(self, system: impl Into<String>) -> Self
pub fn with_policy(self, policy: SqlPolicy) -> Self
pub fn with_profile_id(self, profile_id: Uuid) -> Self
pub fn with_max_attempts(self, max_attempts: usize) -> Self
pub fn with_sample_rows(self, enabled: bool) -> Self
pub fn with_sample_rows_limit(self, limit: usize) -> Self
pub fn with_result_limit(self, limit: usize) -> Self
pub fn with_require_schema_inspection(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for SqlToolLoopOptions
impl Clone for SqlToolLoopOptions
Source§fn clone(&self) -> SqlToolLoopOptions
fn clone(&self) -> SqlToolLoopOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SqlToolLoopOptions
impl RefUnwindSafe for SqlToolLoopOptions
impl Send for SqlToolLoopOptions
impl Sync for SqlToolLoopOptions
impl Unpin for SqlToolLoopOptions
impl UnwindSafe for SqlToolLoopOptions
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