Class BatchConvertDocumentRequest

java.lang.Object
ai.docling.serve.api.convert.request.BatchConvertDocumentRequest

public class BatchConvertDocumentRequest extends Object
Represents a request to batch convert document sources. The batch endpoint processes multiple documents asynchronously and returns a task ID for tracking progress. Sources can be HTTP URLs or S3 buckets, and results are delivered to a presigned URL or S3 target.

This class is serialized into JSON to conform to the API specification using JsonProperty annotations. Fields with null values or empty collections are omitted from the serialized JSON using JsonInclude.

  • Method Details

    • builder

      public static @NonNull BatchConvertDocumentRequest.Builder builder()
    • toBuilder

      public @NonNull BatchConvertDocumentRequest.Builder toBuilder()
    • getSources

      public List<Source> getSources()
      List of document sources to be converted. Each source can be an HTTP URL or S3 reference.
      Returns:
      the list of document sources
    • getTarget

      @NonNull public @NonNull Target getTarget()
      Target specification for where the converted documents should be delivered. Must be either a PresignedUrlTarget or S3Target.
      Returns:
      the output target
    • getOptions

      @NonNull public @NonNull ConvertDocumentOptions getOptions()
      Options controlling the document conversion process. Includes settings for OCR, output formats, processing pipelines, and more.
      Returns:
      the conversion options
    • getCallbacks

      public List<CallbackSpec> getCallbacks()
      Webhook callbacks for receiving progress notifications during batch processing.
      Returns:
      the list of callback specifications
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object