pub struct GroundingResponse {
pub query: String,
pub answer: String,
pub sources: Vec<GroundingSource>,
pub response_time: f64,
}Expand description
The response to a grounding request: an extractive answer plus the ranked sources it was built from.
Fields§
§query: StringThe query the answer was built for.
answer: StringExtractive answer synthesized from the sources.
sources: Vec<GroundingSource>Ranked sources supporting the answer.
response_time: f64Wall-clock time spent searching, in seconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GroundingResponse
impl RefUnwindSafe for GroundingResponse
impl Send for GroundingResponse
impl Sync for GroundingResponse
impl Unpin for GroundingResponse
impl UnsafeUnpin for GroundingResponse
impl UnwindSafe for GroundingResponse
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