Class LlmBatchProps

Assembly: redb.Route.Llm.dll

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

Inheritance

Object→LlmBatchProps

Properties

AppendToConversation

When true the callback processor appends the assistant turn from

public bool AppendToConversation { get; set; }

CompletedAtUtc

When the callback fired (or the host marked completion).

public DateTimeOffset? CompletedAtUtc { get; set; }

ConversationId

Conversation correlation id — empty when the batch is conversation-less.

public string ConversationId { get; set; }

ErrorMessage

Last error message recorded against the batch — null while healthy.

public string? ErrorMessage { get; set; }

MetadataJson

Free-form metadata supplied by the caller at submit time (caller-controlled JSON).

public string? MetadataJson { get; set; }

ModelId

Model id at submit-time. Useful when a model version rolls forward between submit and callback.

public string ModelId { get; set; }

ProviderId

Provider identifier — "anthropic", "openai", custom values for vLLM/Ollama batch endpoints.

public string ProviderId { get; set; }

ResultUrl

Optional URL where the host can fetch results — null when the provider returns them inline in the callback.

public string? ResultUrl { get; set; }

Status

Lifecycle: "submitted" → "running" → "completed" / "failed" / "cancelled".

public string Status { get; set; }

SubmittedAtUtc

When the host submitted the batch.

public DateTimeOffset SubmittedAtUtc { get; set; }