Class DefaultInference
java.lang.Object
org.apache.camel.component.torchserve.client.impl.DefaultInference
- All Implemented Interfaces:
Inference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet openapi description.explanations(String modelName) Not supported yet.ping()Get TorchServe status.predictions(String modelName, Object body) Predictions entry point to get inference using default model version.predictions(String modelName, String modelVersion, Object body) Predictions entry point to get inference using specific model version.voidsetAuthToken(String token)
-
Constructor Details
-
DefaultInference
public DefaultInference() -
DefaultInference
public DefaultInference(int port) -
DefaultInference
-
-
Method Details
-
setAuthToken
-
apiDescription
Description copied from interface:InferenceGet openapi description.- Specified by:
apiDescriptionin interfaceInference- Throws:
ApiException
-
ping
Description copied from interface:InferenceGet TorchServe status.- Specified by:
pingin interfaceInference- Throws:
ApiException
-
predictions
Description copied from interface:InferencePredictions entry point to get inference using default model version.- Specified by:
predictionsin interfaceInference- Throws:
ApiException
-
predictions
Description copied from interface:InferencePredictions entry point to get inference using specific model version.- Specified by:
predictionsin interfaceInference- Throws:
ApiException
-
explanations
Description copied from interface:InferenceNot supported yet.- Specified by:
explanationsin interfaceInference
-