Class BatchJobRecord
A persisted batch-submission record.
public sealed class BatchJobRecord
Inheritance
Properties
AppendToConversation
Opt-in: when true and the batch resolves to "completed",
public bool AppendToConversation { get; init; }
BatchId
Provider-issued batch identifier — the business key.
public required string BatchId { get; init; }
CompletedAtUtc
When the callback fired (or the host marked completion); null while pending.
public DateTime? CompletedAtUtc { get; init; }
ConversationId
Optional conversation correlation; empty when the batch is conversation-less.
public string ConversationId { get; init; }
ErrorMessage
Last error message recorded against the batch; null while healthy.
public string? ErrorMessage { get; init; }
MetadataJson
Free-form metadata captured at submit time (caller-controlled JSON).
public string? MetadataJson { get; init; }
ProviderId
"anthropic", "openai", or any custom provider id.
public required string ProviderId { get; init; }
ResultUrl
Optional URL where the host can fetch results; null when results arrive inline.
public string? ResultUrl { get; init; }
Status
Lifecycle: "submitted" / "running" / "completed" / "failed" / "cancelled".
public string Status { get; init; }