Class AnthropicBatch

java.lang.Object
dev.langchain4j.model.anthropic.internal.api.AnthropicBatch

public class AnthropicBatch extends Object
Metadata for a batch job returned by the Anthropic Message Batches API (create, retrieve, cancel, and each entry of the list endpoint).

processingStatus is one of in_progress, canceling, or ended. A canceled batch also ends as ended, so cancelInitiatedAt is what distinguishes a canceled batch from one that ran to completion. Per-request outcomes are not carried here; they are fetched separately from the batch's results endpoint once the batch has ended.

Only the fields consumed by AnthropicBatchChatModel are declared; the remaining response fields are ignored via JsonIgnoreProperties.

  • Field Details

    • id

      public String id
    • processingStatus

      public String processingStatus
    • cancelInitiatedAt

      public String cancelInitiatedAt
  • Constructor Details

    • AnthropicBatch

      public AnthropicBatch()