pub struct AgentFileIngestReport {Show 14 fields
pub candidates: usize,
pub stored: usize,
pub removed: usize,
pub deduplicated: usize,
pub semantic: usize,
pub procedural: usize,
pub anti_pattern: usize,
pub trigger_tagged: usize,
pub sections: usize,
pub file_token_estimate: usize,
pub avg_memory_token_estimate: usize,
pub parsed_by: &'static str,
pub triggers: Vec<String>,
pub llm_chunks: usize,
}Expand description
What an ingest did, in numbers the caller can show a user.
Fields§
§candidates: usizeAtomic candidates produced by segmentation.
stored: usizeMemories actually stored (candidates minus dedup and failures).
removed: usizeMemories from a previous ingest forgotten by sync because their rule no longer appears in the file.
deduplicated: usizeCandidates the write pipeline folded into an existing memory.
semantic: usizeStored memories by type.
procedural: usize§anti_pattern: usize§trigger_tagged: usizeStored memories carrying a trigger: action tag.
sections: usizeDistinct section paths seen.
file_token_estimate: usizeRough size of the whole file in tokens (length divided by four, an estimate for comparison displays, not a tokenizer).
avg_memory_token_estimate: usizeRough average tokens per stored memory (same estimate).
parsed_by: &'static strWhich parser produced the atoms: “llm” or “deterministic”.
triggers: Vec<String>The distinct action trigger names assigned, so callers can discover the open vocabulary the parser chose (“order-refund”, “ticket-escalation”) instead of guessing slugs.
llm_chunks: usizeNumber of chunks sent to the LLM (zero for the deterministic parser).