Path: redb-route/redb.Route.Llm/Storage/Redb/Schemas/LlmBatchProps.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/LlmBatchProps.cs ---- using redb.Core.Attributes; namespace redb.Route.Llm.Storage.Redb.Schemas; /// /// A submitted async-batch job tracked by . /// Carries the provider-issued batch identifier on /// _objects.value_string for direct lookup (partial index on /// PostgreSQL/SQLite; no index on MSSQL) and, normalized, in /// value_unique (per-scheme unique — one row per batch id), plus an /// optional conversation id on _objects.value_long when the caller /// pre-bound the batch to a conversation. Status transitions ("submitted", "running", "completed", /// "failed") are written by /// and friends — the framework does not poll on its own; status is updated /// either when the corresponding webhook arrives or when the host explicitly /// calls UpdateStatusAsync. /// [RedbScheme("LLM Batch Job")] public class LlmBatchProps { /// Provider identifier — "anthropic", "openai", custom values for vLLM/Ollama batch endpoints. public string ProviderId { get; set; } = string.Empty; /// Model id at submit-time. Useful when a model version rolls forward between submit and callback. public string ModelId { get; set; } = string.Empty; /// Conversation correlation id — empty when the batch is conversation-less. public string ConversationId { get; set; } = string.Empty; /// Lifecycle: "submitted" → "running" → "completed" / "failed" / "cancelled". public string Status { get; set; } = "submitted"; /// When the host submitted the batch. public DateTimeOffset SubmittedAtUtc { get; set; } /// When the callback fired (or the host marked completion). public DateTimeOffset? CompletedAtUtc { get; set; } /// Optional URL where the host can fetch results — null when the provider returns them inline in the callback. public string? ResultUrl { get; set; } /// Free-form metadata supplied by the caller at submit time (caller-controlled JSON). public string? MetadataJson { get; set; } /// Last error message recorded against the batch — null while healthy. public string? ErrorMessage { get; set; } /// /// When true the callback processor appends the assistant turn from /// the callback body to the conversation store on completion. See /// . /// public bool AppendToConversation { get; set; } }