pub struct GroundedAnswerResponse {
pub question: String,
pub answer: String,
pub retrieve_statement: String,
pub verify_statement: Option<String>,
pub context: ContextPackResponse,
pub grounding: AnswerGroundingReportResponse,
pub verification: Option<VerificationReportResponse>,
pub citations: Vec<String>,
pub used_context_cell_ids: Vec<u64>,
pub rejected: bool,
}Fields§
§question: String§answer: String§retrieve_statement: String§verify_statement: Option<String>§context: ContextPackResponse§grounding: AnswerGroundingReportResponse§verification: Option<VerificationReportResponse>§citations: Vec<String>§used_context_cell_ids: Vec<u64>§rejected: boolImplementations§
Source§impl GroundedAnswerResponse
impl GroundedAnswerResponse
pub fn from_context_answer( request: &GroundedAnswerRequest, retrieve_statement: String, verify_statement: Option<String>, context: ContextPackResponse, answer: String, verification: Option<VerificationReportResponse>, ) -> Self
pub fn answer_supported(&self) -> bool
pub fn verification_status(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for GroundedAnswerResponse
impl Clone for GroundedAnswerResponse
Source§fn clone(&self) -> GroundedAnswerResponse
fn clone(&self) -> GroundedAnswerResponse
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 GroundedAnswerResponse
impl Debug for GroundedAnswerResponse
impl Eq for GroundedAnswerResponse
Source§impl PartialEq for GroundedAnswerResponse
impl PartialEq for GroundedAnswerResponse
Source§fn eq(&self, other: &GroundedAnswerResponse) -> bool
fn eq(&self, other: &GroundedAnswerResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GroundedAnswerResponse
Auto Trait Implementations§
impl Freeze for GroundedAnswerResponse
impl RefUnwindSafe for GroundedAnswerResponse
impl Send for GroundedAnswerResponse
impl Sync for GroundedAnswerResponse
impl Unpin for GroundedAnswerResponse
impl UnsafeUnpin for GroundedAnswerResponse
impl UnwindSafe for GroundedAnswerResponse
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