Class GoogleGenAiDecisionRequestParameters.Builder
java.lang.Object
dev.langchain4j.model.decision.request.DefaultDecisionRequestParameters.Builder<GoogleGenAiDecisionRequestParameters.Builder>
dev.langchain4j.model.google.genai.GoogleGenAiDecisionRequestParameters.Builder
- Enclosing class:
GoogleGenAiDecisionRequestParameters
public static class GoogleGenAiDecisionRequestParameters.Builder
extends DefaultDecisionRequestParameters.Builder<GoogleGenAiDecisionRequestParameters.Builder>
- Since:
- 1.24.0
-
Field Summary
Fields inherited from class DefaultDecisionRequestParameters.Builder
modelName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()customParameters(@Nullable Map<String, Object> customParameters) Custom parameters added to the body of the request, for example to use a feature of the Gemini Decisions API thatGoogleGenAiDecisionModeldoes not support yet.overrideWith(@Nullable 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
public GoogleGenAiDecisionRequestParameters.Builder overrideWith(@Nullable DecisionRequestParameters parameters) Description copied from class:DefaultDecisionRequestParameters.BuilderCopies the populated parameters from the given instance into this builder.- Overrides:
overrideWithin classDefaultDecisionRequestParameters.Builder<GoogleGenAiDecisionRequestParameters.Builder>- Parameters:
parameters- the parameters to copy, may benull.- Returns:
this.
-
customParameters
public GoogleGenAiDecisionRequestParameters.Builder customParameters(@Nullable Map<String, Object> customParameters) Custom parameters added to the body of the request, for example to use a feature of the Gemini Decisions API thatGoogleGenAiDecisionModeldoes not support yet.model,inputandquestionsare set byGoogleGenAiDecisionModeland cannot be custom parameters: the request is rejected with anIllegalArgumentExceptionbefore anything is sent.If not empty, they replace (are not merged with) the custom parameters set on the
GoogleGenAiDecisionModelbuilder for this request. If not set (null) or empty, the custom parameters of the builder are used. -
build
- Overrides:
buildin classDefaultDecisionRequestParameters.Builder<GoogleGenAiDecisionRequestParameters.Builder>
-