Package com.mindee
Class InferenceParameters
- java.lang.Object
-
- com.mindee.InferenceParameters
-
public final class InferenceParameters extends Object
Options to pass when calling methods using the API V2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InferenceParameters.Builder
Fluent builder forInferenceParameters
.
-
Constructor Summary
Constructors Constructor Description InferenceParameters(String modelId, boolean rag, String alias, List<String> webhookIds, AsyncPollingOptions pollingOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InferenceParameters.Builder
builder(String modelId)
Create a new builder.boolean
equals(Object o)
String
getAlias()
Optional alias for the file.String
getModelId()
ID of the model (required).AsyncPollingOptions
getPollingOptions()
List<String>
getWebhookIds()
IDs of webhooks to propagate the API response to (may be empty).int
hashCode()
boolean
isRag()
Enables Retrieval-Augmented Generation (optional, default:false
).String
toString()
-
-
-
Constructor Detail
-
InferenceParameters
public InferenceParameters(String modelId, boolean rag, String alias, List<String> webhookIds, AsyncPollingOptions pollingOptions)
-
-
Method Detail
-
builder
public static InferenceParameters.Builder builder(String modelId)
Create a new builder.- Parameters:
modelId
- the mandatory model identifier- Returns:
- a fresh
InferenceParameters.Builder
-
getModelId
public String getModelId()
ID of the model (required).
-
isRag
public boolean isRag()
Enables Retrieval-Augmented Generation (optional, default:false
).
-
getAlias
public String getAlias()
Optional alias for the file.
-
getWebhookIds
public List<String> getWebhookIds()
IDs of webhooks to propagate the API response to (may be empty).
-
getPollingOptions
public AsyncPollingOptions getPollingOptions()
-
-