Package ai.docling.serve.api
Interface DoclingServeApi
- All Superinterfaces:
DoclingServeChunkApi,DoclingServeClearApi,DoclingServeConvertApi,DoclingServeHealthApi,DoclingServeTaskApi
public interface DoclingServeApi
extends DoclingServeHealthApi, DoclingServeConvertApi, DoclingServeChunkApi, DoclingServeClearApi, DoclingServeTaskApi
Docling Serve API interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDoclingServeApi.DoclingApiBuilder<T extends DoclingServeApi,B extends DoclingServeApi.DoclingApiBuilder<T, B>> A builder interface for constructing implementations ofDoclingServeApi. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends DoclingServeApi,B extends DoclingServeApi.DoclingApiBuilder<T, B>>
Bbuilder()Creates and returns a builder instance capable of constructing implementations ofDoclingServeApi.<T extends DoclingServeApi,B extends DoclingServeApi.DoclingApiBuilder<T, B>>
DoclingServeApi.DoclingApiBuilder<T,B> Creates and returns a builder instance capable of constructing a duplicate or modified version of the current API instance.Methods inherited from interface ai.docling.serve.api.DoclingServeChunkApi
chunkFiles, chunkFilesAsync, chunkFilesWithHierarchicalChunker, chunkFilesWithHierarchicalChunker, chunkFilesWithHierarchicalChunkerAsync, chunkFilesWithHierarchicalChunkerAsync, chunkFilesWithHybridChunker, chunkFilesWithHybridChunker, chunkFilesWithHybridChunkerAsync, chunkFilesWithHybridChunkerAsync, chunkSourceWithHierarchicalChunker, chunkSourceWithHierarchicalChunkerAsync, chunkSourceWithHybridChunker, chunkSourceWithHybridChunkerAsyncMethods inherited from interface ai.docling.serve.api.DoclingServeClearApi
clearConverters, clearResultsMethods inherited from interface ai.docling.serve.api.DoclingServeConvertApi
convertFiles, convertFiles, convertFilesAsync, convertFilesAsync, convertSource, convertSourceAsyncMethods inherited from interface ai.docling.serve.api.DoclingServeHealthApi
healthMethods inherited from interface ai.docling.serve.api.DoclingServeTaskApi
chunkTaskResult, convertTaskResult, pollTaskStatus
-
Method Details
-
builder
Creates and returns a builder instance capable of constructing implementations ofDoclingServeApi. The method ensures that exactly one factory capable of building a builder instance is available via theDoclingServeApiBuilderFactoryinterface. If no factories are found, or if multiple factories are found, anIllegalStateExceptionis thrown.- Type Parameters:
T- the type of theDoclingServeApiimplementation being builtB- the type of the builder implementation for theDoclingServeApi- Returns:
- a builder instance of type
Bconstructed using the available factory - Throws:
IllegalStateException- if no factories or more than one factory are found
-
toBuilder
<T extends DoclingServeApi,B extends DoclingServeApi.DoclingApiBuilder<T, DoclingServeApi.DoclingApiBuilder<T,B>> B> toBuilder()Creates and returns a builder instance capable of constructing a duplicate or modified version of the current API instance. The builder provides a customizable way to adjust configuration or properties before constructing a new API instance.- Returns:
- a
DoclingServeApi.DoclingApiBuilderinitialized with the state of the current API instance.
-