Package ai.docling.serve.api
Interface DoclingServeClearApi
- All Known Subinterfaces:
DoclingServeApi
public interface DoclingServeClearApi
Interface representing the Docling Serve Clear API. This API provides functionality
for managing and cleaning up converters and stale data retained by the service.
It includes methods for clearing registered converters and stored results based
on specified thresholds or default configurations.
-
Method Summary
Modifier and TypeMethodDescriptionclearConverters(ClearConvertersRequest request) Clears all currently configured converters within the Docling Serve API.clearResults(ClearResultsRequest request) Clears stored results based on the specifiedClearResultsRequest.
-
Method Details
-
clearConverters
Clears all currently configured converters within the Docling Serve API. This operation removes any registered converters, effectively resetting the system to a state without active converter configurations.- Parameters:
request- an instance ofClearConvertersRequestcontaining the authentication details required to authorize this operation.- Returns:
- a
ClearResponseobject indicating the status of the clear operation, such as success or failure.
-
clearResults
Clears stored results based on the specifiedClearResultsRequest. This method removes results that match the criteria provided in the request, such as results older than a specified duration.- Parameters:
request- an instance ofClearResultsRequestcontaining the criteria for clearing stored results, including the duration threshold or other parameters.- Returns:
- a
ClearResponseobject indicating the status of the clear operation, such as success or failure. - Throws:
ValidationException- If request validation fails for any reason.
-