Package com.mindee.v2

Class MindeeClient


  • public class MindeeClient
    extends Object
    Entry point for the Mindee **V2** API features.
    • Constructor Detail

      • MindeeClient

        public MindeeClient()
        Uses an API key read from the environment variables.
      • MindeeClient

        public MindeeClient​(String apiKey)
        Uses the supplied API key.
      • MindeeClient

        public MindeeClient​(MindeeApiV2 mindeeApi)
        Inject a custom HTTP API implementation.
    • Method Detail

      • getJob

        public JobResponse getJob​(String jobId)
        Get the status of an inference that was previously enqueued. Can be used for polling.
      • getResult

        public <TResponse extends CommonResponse> TResponse getResult​(Class<TResponse> responseClass,
                                                                      String inferenceId)
        Get the result of an inference that was previously enqueued. The inference will only be available after it has finished processing.
      • searchModels

        public SearchResponse searchModels​(String modelName)
        Search for models by name.
        Parameters:
        modelName - name of the model to search for
        Returns:
        an instance of SearchResponse
      • searchModels

        public SearchResponse searchModels​(String modelName,
                                           String modelType)
        Search for models by name and type.
        Parameters:
        modelName - name of the model to search for
        modelType - type of the model to search for
        Returns:
        an instance of SearchResponse