pub struct GroundedAnswerRequest { /* private fields */ }Implementations§
Source§impl GroundedAnswerRequest
impl GroundedAnswerRequest
pub fn new( scope: impl Into<String>, brain: impl Into<String>, question: impl Into<String>, ) -> Self
pub fn mode(self, mode: AqlRetrievalMode) -> Self
pub fn budget_tokens(self, budget_tokens: u64) -> Self
pub fn limit_candidates(self, candidate_limit: u32) -> Self
pub fn where_clause(self, where_clause: impl Into<String>) -> Self
pub fn require_citations(self, require: bool) -> Self
pub fn grounding_options(self, options: AnswerGroundingOptionsResponse) -> Self
pub fn verify_answer(self, verify: bool) -> Self
pub fn scope(&self) -> &str
pub fn brain(&self) -> &str
pub fn question(&self) -> &str
pub fn should_verify_answer(&self) -> bool
pub fn grounding_options_value(&self) -> AnswerGroundingOptionsResponse
pub fn retrieve_statement(&self) -> Result<String, AqlBuildError>
pub fn verify_statement( &self, answer: &str, ) -> Result<Option<String>, AqlBuildError>
Trait Implementations§
Source§impl Clone for GroundedAnswerRequest
impl Clone for GroundedAnswerRequest
Source§fn clone(&self) -> GroundedAnswerRequest
fn clone(&self) -> GroundedAnswerRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GroundedAnswerRequest
impl Debug for GroundedAnswerRequest
impl Eq for GroundedAnswerRequest
Source§impl PartialEq for GroundedAnswerRequest
impl PartialEq for GroundedAnswerRequest
Source§fn eq(&self, other: &GroundedAnswerRequest) -> bool
fn eq(&self, other: &GroundedAnswerRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GroundedAnswerRequest
Auto Trait Implementations§
impl Freeze for GroundedAnswerRequest
impl RefUnwindSafe for GroundedAnswerRequest
impl Send for GroundedAnswerRequest
impl Sync for GroundedAnswerRequest
impl Unpin for GroundedAnswerRequest
impl UnsafeUnpin for GroundedAnswerRequest
impl UnwindSafe for GroundedAnswerRequest
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