pub struct GroundingSource {
pub title: String,
pub url: String,
pub content: String,
pub score: f64,
}Expand description
One ranked source for a grounding answer.
Fields§
§title: StringPage title of the source.
url: StringURL of the source.
content: StringReadable text content used for grounding.
score: f64Positional relevance score (1.0 down to 0.05).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GroundingSource
impl RefUnwindSafe for GroundingSource
impl Send for GroundingSource
impl Sync for GroundingSource
impl Unpin for GroundingSource
impl UnsafeUnpin for GroundingSource
impl UnwindSafe for GroundingSource
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