pub struct MentionRef {
pub surface: String,
pub entity_type: String,
pub quote: Option<String>,
pub span: (u32, u32),
}Expand description
A reference to an entity mention in the episode text.
Extraction contract v2 (ADR-006): the model provides a verbatim quote
copied from the episode containing the surface; the byte span is
derived server-side from the located quote. Legacy responses without a
quote keep the span-verbatim ladder below. Either way, a valid mention’s
surface appears verbatim at [span.0, span.1) — the fabricated-entity
gate is unchanged.
Fields§
§surface: String§entity_type: String§quote: Option<String>Verbatim snippet copied from the episode containing surface.
When present, the model-provided span is ignored and the span is
derived by locating the quote (first occurrence, exact bytes).
span: (u32, u32)Byte span [start, end) into the episode. Server-derived when
quote is present; otherwise checked against the content by the
legacy ladder. Defaults to (0, 0) when the model omits it.
Trait Implementations§
Source§impl Clone for MentionRef
impl Clone for MentionRef
Source§fn clone(&self) -> MentionRef
fn clone(&self) -> MentionRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more