pub struct RepoChatAnswer {
pub answer: String,
pub grounded: bool,
pub abstained: bool,
pub citations: Vec<RepoChatCitation>,
pub caveat: Option<String>,
pub manifest_id: Option<String>,
pub route: RepoQuestionRoute,
pub grounding_mode: RepoChatGroundingMode,
pub evidence: Vec<RepoChatEvidence>,
}Fields§
§answer: String§grounded: bool§abstained: bool§citations: Vec<RepoChatCitation>§caveat: Option<String>§manifest_id: Option<String>§route: RepoQuestionRoute§grounding_mode: RepoChatGroundingMode§evidence: Vec<RepoChatEvidence>Implementations§
Source§impl RepoChatAnswer
impl RepoChatAnswer
Sourcepub fn thin_or_degraded(
route: RepoQuestionRoute,
richness: BootstrapRichness,
) -> RepoChatGroundingMode
pub fn thin_or_degraded( route: RepoQuestionRoute, richness: BootstrapRichness, ) -> RepoChatGroundingMode
Chooses the grounding mode implied by route and bootstrap richness.
Trait Implementations§
Source§impl Clone for RepoChatAnswer
impl Clone for RepoChatAnswer
Source§fn clone(&self) -> RepoChatAnswer
fn clone(&self) -> RepoChatAnswer
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 RepoChatAnswer
impl Debug for RepoChatAnswer
Source§impl<'de> Deserialize<'de> for RepoChatAnswer
impl<'de> Deserialize<'de> for RepoChatAnswer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RepoChatAnswer
impl JsonSchema for RepoChatAnswer
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RepoChatAnswer
impl PartialEq for RepoChatAnswer
Source§fn eq(&self, other: &RepoChatAnswer) -> bool
fn eq(&self, other: &RepoChatAnswer) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepoChatAnswer
impl Serialize for RepoChatAnswer
impl StructuralPartialEq for RepoChatAnswer
Auto Trait Implementations§
impl Freeze for RepoChatAnswer
impl RefUnwindSafe for RepoChatAnswer
impl Send for RepoChatAnswer
impl Sync for RepoChatAnswer
impl Unpin for RepoChatAnswer
impl UnsafeUnpin for RepoChatAnswer
impl UnwindSafe for RepoChatAnswer
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