pub struct IngestionReport {
pub episodes_created: u32,
pub entities_created: u32,
pub entities_merged: u32,
pub entities_skipped: u32,
pub relationships_created: u32,
pub relationships_skipped: u32,
pub errors: Vec<String>,
pub estimated_tokens: u64,
pub measured_tokens: u64,
pub entity_ids: Vec<String>,
pub dedup_llm_calls: u32,
pub dedup_fast_path: u32,
}Expand description
Result of a full ingestion run.
Fields§
§episodes_created: u32§entities_created: u32§entities_merged: u32§entities_skipped: u32§relationships_created: u32§relationships_skipped: u32§errors: Vec<String>§estimated_tokens: u64Tokens estimated for the calls whose provider reported nothing —
claude-code’s prose output, a bridge with no counters, any custom CLI
without [llm.cli] usage_input_path.
measured_tokens: u64Tokens the providers actually reported, summed over the calls that reported them. Kept apart from the estimate so a displayed number never has to claim more precision than it has.
entity_ids: Vec<String>Record IDs of the entities this run created or merged into — the entities the session touched, and so the ones a session outcome applies to. Empty when the run had no LLM to extract with.
dedup_llm_calls: u32Candidates that reached the ambiguous band and cost one model call each. The dedup half of the ingest bill.
dedup_fast_path: u32Candidates resolved by name match or by a similarity band — decided without a model call.
Implementations§
Source§impl IngestionReport
impl IngestionReport
Sourcepub fn total_tokens(&self) -> u64
pub fn total_tokens(&self) -> u64
Every token this run is believed to have spent, measured and estimated alike. The number to budget against; the two parts are what to display.
Trait Implementations§
Source§impl Clone for IngestionReport
impl Clone for IngestionReport
Source§fn clone(&self) -> IngestionReport
fn clone(&self) -> IngestionReport
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 IngestionReport
impl Debug for IngestionReport
Source§impl Default for IngestionReport
impl Default for IngestionReport
Source§fn default() -> IngestionReport
fn default() -> IngestionReport
Source§impl<'de> Deserialize<'de> for IngestionReport
impl<'de> Deserialize<'de> for IngestionReport
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>,
Auto Trait Implementations§
impl Freeze for IngestionReport
impl RefUnwindSafe for IngestionReport
impl Send for IngestionReport
impl Sync for IngestionReport
impl Unpin for IngestionReport
impl UnsafeUnpin for IngestionReport
impl UnwindSafe for IngestionReport
Blanket Implementations§
impl<T> AsyncFriendly for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().