pub struct StreamToken {Show 14 fields
pub trace_id: u64,
pub flow_name: String,
pub step_name: String,
pub token_index: u64,
pub content: String,
pub is_final: bool,
pub timestamp: u64,
pub epistemic_state: String,
pub effect_row: String,
pub pix_ref: Option<String>,
pub corpus_ref: Option<String>,
pub nav_trail: Option<Vec<String>>,
pub mdn_edge_type: Option<String>,
pub nav_depth: Option<u32>,
}Expand description
A stream emission record — the materialized algebraic effect.
Fields§
§trace_id: u64Execution/trace ID this token belongs to.
flow_name: StringFlow name being executed.
step_name: StringStep name that emitted this token.
token_index: u64Sequential token index within this execution.
content: StringThe emitted token/chunk content.
is_final: boolWhether this is the final token (stream complete).
timestamp: u64Unix timestamp.
epistemic_state: StringEpistemic state of this token in the lattice (⊥ ⊑ doubt ⊑ speculate ⊑ believe ⊑ know). Streaming tokens arrive as “speculate” — promoted to “know” only after anchor validation on the complete response.
effect_row: StringEffect row annotation: <effects, epistemic:level>. Declares what effects this token’s production involved. E.g., “<io, epistemic:speculate>” for LLM-generated content, “<pure, epistemic:know>” for validated results.
pix_ref: Option<String>PIX index reference (if token from PIX navigation). Links to IRPix.name — the document tree being navigated.
corpus_ref: Option<String>Corpus reference for MDN multi-document navigation. Links to IRCorpus.name — the document graph being traversed.
Navigation trail — sequence of nodes visited during PIX tree traversal. Each entry is a node identifier from the document tree D = (N, E, ρ, κ). Implements the trail step from IRTrailStep.
mdn_edge_type: Option<String>MDN edge type that led to this document (cite|depend|elaborate|contradict|…). From the MDN relation type taxonomy.
Navigation depth in PIX tree or MDN graph at time of emission.
Trait Implementations§
Source§impl Clone for StreamToken
impl Clone for StreamToken
Source§fn clone(&self) -> StreamToken
fn clone(&self) -> StreamToken
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamToken
impl Debug for StreamToken
Auto Trait Implementations§
impl Freeze for StreamToken
impl RefUnwindSafe for StreamToken
impl Send for StreamToken
impl Sync for StreamToken
impl Unpin for StreamToken
impl UnsafeUnpin for StreamToken
impl UnwindSafe for StreamToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more