Skip to main content

oxibrain_core/
stats.rs

1//! Space statistics — counts for dashboards and the `stats` MCP tool.
2
3use serde::{Deserialize, Serialize};
4
5/// Aggregate counts for a space.
6#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
7pub struct SpaceStats {
8    /// Number of episodes recorded in the space.
9    pub episodes: i64,
10    /// Number of entities (excluding merged-away) in the space.
11    pub entities: i64,
12    /// Number of statements in the space.
13    pub statements: i64,
14    /// Number of contradicted statements in the space.
15    pub contradictions: usize,
16}