Class InBodyConvertDocumentResponse
java.lang.Object
ai.docling.serve.api.convert.response.ConvertDocumentResponse
ai.docling.serve.api.convert.response.InBodyConvertDocumentResponse
Response for single document conversions with in-body content delivery.
This response type is returned when both the following conditions hold:
- The conversion request contains a single source
- The target type is
InBodyTarget
The converted document content is included directly in the response body, along with conversion status, processing time, errors, and detailed timing information for each processing stage.
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 creatingInBodyConvertDocumentResponseinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull InBodyConvertDocumentResponse.Builderbuilder()Converted document content.List of errors that occurred during conversion.Total processing time in seconds.Type of responseConversion status (success, failure, partial_success, etc.).Detailed timing information for processing stages.@NonNull StringtoString()
-
Method Details
-
getResponseType
Description copied from class:ConvertDocumentResponseType of response- Specified by:
getResponseTypein classConvertDocumentResponse- Returns:
- the response type
-
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
-