Class TypeSafeDecisionRequestParameters.Builder
java.lang.Object
dev.langchain4j.model.decision.request.DefaultDecisionRequestParameters.Builder<TypeSafeDecisionRequestParameters.Builder>
dev.langchain4j.model.typesafe.TypeSafeDecisionRequestParameters.Builder
- Enclosing class:
TypeSafeDecisionRequestParameters
public static class TypeSafeDecisionRequestParameters.Builder
extends DefaultDecisionRequestParameters.Builder<TypeSafeDecisionRequestParameters.Builder>
- Since:
- 1.23.0
-
Field Summary
Fields inherited from class DefaultDecisionRequestParameters.Builder
modelName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()customParameters(Map<String, Object> customParameters) Custom parameters added to the body of the request, for example to use a feature of the System One API thatTypeSafeDecisionModeldoes not support yet.overrideWith(DecisionRequestParameters parameters) Copies the populated parameters from the given instance into this builder.Methods inherited from class DefaultDecisionRequestParameters.Builder
modelName, self
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
overrideWith
Description copied from class:DefaultDecisionRequestParameters.BuilderCopies the populated parameters from the given instance into this builder.- Overrides:
overrideWithin classDefaultDecisionRequestParameters.Builder<TypeSafeDecisionRequestParameters.Builder>- Parameters:
parameters- the parameters to copy, may benull.- Returns:
this.
-
customParameters
public TypeSafeDecisionRequestParameters.Builder customParameters(Map<String, Object> customParameters) Custom parameters added to the body of the request, for example to use a feature of the System One API thatTypeSafeDecisionModeldoes not support yet. A custom parameter with the same name as a parameter thatTypeSafeDecisionModelsends replaces it.If not empty, they replace (are not merged with) the custom parameters set on the
TypeSafeDecisionModelbuilder for this request. If not set or empty, the custom parameters of the builder are used. -
build
- Overrides:
buildin classDefaultDecisionRequestParameters.Builder<TypeSafeDecisionRequestParameters.Builder>
-