Class OllamaDecisionRequestParameters
java.lang.Object
dev.langchain4j.model.decision.request.DefaultDecisionRequestParameters
dev.langchain4j.model.ollama.OllamaDecisionRequestParameters
- All Implemented Interfaces:
DecisionRequestParameters
The per-call parameters of an
OllamaDecisionModel request. Parameters that are not set fall back to the ones
configured on the OllamaDecisionModel builder. Parameters made for another decision model are rejected with
an IllegalArgumentException.
DecisionRequest request = DecisionRequest.builder()
.input("...")
.question("spam", YesNoQuestion.of("Is this message spam?"))
.parameters(OllamaDecisionRequestParameters.builder()
.customParameters(Map.of("parameter_name", "value"))
.build())
.build();
- Since:
- 1.23.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface DecisionRequestParameters
EMPTY -
Method Summary
Methods inherited from class DefaultDecisionRequestParameters
modelName
-
Method Details
-
customParameters
-
overrideWith
Description copied from interface:DecisionRequestParametersCreates new parameters by combining these parameters with the specified ones. Values fromthatoverride these when both set the same parameter. Neither instance is modified.- Specified by:
overrideWithin interfaceDecisionRequestParameters- Overrides:
overrideWithin classDefaultDecisionRequestParameters- Parameters:
that- the parameters whose values will override these ones, may benull.- Returns:
- new combined parameters.
-
equals
- Overrides:
equalsin classDefaultDecisionRequestParameters
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultDecisionRequestParameters
-
toString
- Overrides:
toStringin classDefaultDecisionRequestParameters
-
builder
-