Class ConvertDocumentResponse
java.lang.Object
ai.docling.serve.api.convert.response.ConvertDocumentResponse
Response returned by the Convert API for a single conversion request.
Serialization uses JsonInclude.Include.NON_EMPTY, so nulls and empty
collections/strings are omitted from JSON output.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingConvertDocumentResponseinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ConvertDocumentResponse.Builderbuilder()Converted document content.List of errors that occurred during conversion.Total processing time in seconds.Conversion status (success, failure, partial_success, etc.).Detailed timing information for processing stages.@NonNull ConvertDocumentResponse.Builder@NonNull StringtoString()
-
Method Details
-
builder
-
toBuilder
-
getDocument
Converted document content.- Returns:
- the converted document
-
getErrors
List of errors that occurred during conversion.- Returns:
- the list of errors
-
getProcessingTime
Total processing time in seconds.- Returns:
- the processing time in seconds
-
getStatus
Conversion status (success, failure, partial_success, etc.).- Returns:
- the conversion status
-
getTimings
Detailed timing information for processing stages.- Returns:
- the map of timing information
-
toString
-