Path: redb-route/redb.Route.Llm/Storage/Redb/Schemas/ConversationProps.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm/Storage/Redb/Schemas/ConversationProps.cs ---- using redb.Core.Attributes; namespace redb.Route.Llm.Storage.Redb.Schemas; /// /// Root record of a single LLM conversation. Top-level scalar fields are /// hoisted so that WhereRedb queries (by tenant, status, last activity) /// hit the _objects table directly without scanning _values. /// Message nodes are stored as child via /// TreeRedbObject; this record holds only conversation-level counters /// and metadata. /// [RedbScheme("LLM Conversation")] public class ConversationProps { /// Tenant or organization owning the conversation. public string TenantId { get; set; } = string.Empty; /// Human-readable title; null when not yet set by the agent. public string? Title { get; set; } /// Lifecycle state: "active" / "closed" / "archived". public string Status { get; set; } = "active"; /// When the conversation was created. public DateTimeOffset StartedAtUtc { get; set; } /// When the most recent message was appended. public DateTimeOffset LastActivityAtUtc { get; set; } /// Cumulative input tokens across every iteration of every run. public long TotalInputTokens { get; set; } /// Cumulative output tokens across every iteration of every run. public long TotalOutputTokens { get; set; } /// Cumulative cost in USD across the conversation. public decimal TotalCostUsd { get; set; } /// Number of agent runs (resumes) that have touched the conversation. public int RunCount { get; set; } }