Class PreSignedUrlConvertResponse
java.lang.Object
ai.docling.serve.api.convert.response.ConvertDocumentResponse
ai.docling.serve.api.convert.response.PreSignedUrlConvertResponse
Response for document conversions that target server-managed presigned URLs.
This response type is returned when the conversion request specifies a
PresignedUrlTarget. Each
source document is represented by a DocumentArtifactItem in
documents which carries its conversion outcome and
the list of presigned URLs the server produced for the requested output
formats.
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 creatingPreSignedUrlConvertResponseinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull PreSignedUrlConvertResponse.Builderbuilder()Per-source conversion outcomes and presigned artifact URLs.Number of attempted conversions.Number of failed conversions.Number of partial successes.Number of successful conversions.Total processing time in seconds.Type of response@NonNull PreSignedUrlConvertResponse.Builder@NonNull StringtoString()
-
Method Details
-
getResponseType
Description copied from class:ConvertDocumentResponseType of response- Specified by:
getResponseTypein classConvertDocumentResponse- Returns:
- the response type
-
builder
-
toBuilder
-
getProcessingTime
Total processing time in seconds.- Returns:
- the processing time in seconds
-
getNumConverted
Number of attempted conversions.- Returns:
- the number of attempted conversions
-
getNumSucceeded
Number of successful conversions.- Returns:
- the number of successful conversions
-
getNumPartiallySucceeded
Number of partial successes.- Returns:
- the number of partial successes
-
getNumFailed
Number of failed conversions.- Returns:
- the number of failed conversions
-
getDocuments
Per-source conversion outcomes and presigned artifact URLs.- Returns:
- the list of per-source artifact items
-
toString
-