Class BatchConvertDocumentRequest
java.lang.Object
ai.docling.serve.api.request.DocumentRequest
ai.docling.serve.api.convert.request.BatchConvertDocumentRequest
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.
Unlike ConvertDocumentRequest, the target is required
for batch requests — it must be either a
PresignedUrlTarget or
S3Target.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBatchConvertDocumentRequest.BatchConvertDocumentRequestBuilder<C extends BatchConvertDocumentRequest,B extends BatchConvertDocumentRequest.BatchConvertDocumentRequestBuilder<C, B>> static classBatchConvertDocumentRequest.Builder<C extends BatchConvertDocumentRequest,B extends BatchConvertDocumentRequest.Builder<C, B>> Nested classes/interfaces inherited from class ai.docling.serve.api.request.DocumentRequest
DocumentRequest.DocumentRequestBuilder<C extends DocumentRequest,B extends DocumentRequest.DocumentRequestBuilder<C, B>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull BatchConvertDocumentRequest.Builder<?,?> builder()Webhook callbacks for receiving progress notifications during batch processing.@NonNull ConvertDocumentOptionsOptions controlling the document conversion process.Returns the output target, which is required for batch requests.@NonNull BatchConvertDocumentRequest.Builder<?,?> Returns a builder pre-populated with this request's current field values, allowing a modified copy to be created.@NonNull StringtoString()Methods inherited from class ai.docling.serve.api.request.DocumentRequest
getSources
-
Constructor Details
-
BatchConvertDocumentRequest
-
-
Method Details
-
getTarget
Returns the output target, which is required for batch requests.- Overrides:
getTargetin classDocumentRequest- Returns:
- the output target, never null
-
builder
-
toBuilder
Description copied from class:DocumentRequestReturns a builder pre-populated with this request's current field values, allowing a modified copy to be created. Each concrete subtype returns its own builder covariantly.- Specified by:
toBuilderin classDocumentRequest- Returns:
- a builder initialized from this request
-
getOptions
Options controlling the document conversion process. Includes settings for OCR, output formats, processing pipelines, and more.- Returns:
- the conversion options
-
getCallbacks
Webhook callbacks for receiving progress notifications during batch processing.- Returns:
- the list of callback specifications
-
toString
- Overrides:
toStringin classDocumentRequest
-