Package com.gencior.triton.core
Class InferParameters
java.lang.Object
com.gencior.triton.core.InferParameters
Represents a set of custom parameters for an inference request.
This class provides a protocol-agnostic abstraction over inference
parameters, decoupling the public API from the underlying transport
(gRPC, HTTP). Values can be of type String, Long,
Boolean, or Double.
Use the InferParameters.Builder to construct instances:
InferParameters params = new InferParameters.Builder()
.add("temperature", 0.7)
.add("max_tokens", 100L)
.add("use_cache", true)
.build();
InferResult result = client.infer(modelId, inputs, params);
- Since:
- 1.0.0
- Author:
- sachachoumiloff
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructingInferParametersinstances. -
Method Summary
-
Method Details
-
asMap
Returns the parameters as an unmodifiable map.- Returns:
- the parameters map
-