Class GoogleAiGeminiDecisionRequestParameters.Builder
java.lang.Object
dev.langchain4j.model.decision.request.DefaultDecisionRequestParameters.Builder<GoogleAiGeminiDecisionRequestParameters.Builder>
dev.langchain4j.model.googleai.GoogleAiGeminiDecisionRequestParameters.Builder
- Enclosing class:
GoogleAiGeminiDecisionRequestParameters
public static class GoogleAiGeminiDecisionRequestParameters.Builder
extends DefaultDecisionRequestParameters.Builder<GoogleAiGeminiDecisionRequestParameters.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 thatGoogleAiGeminiDecisionModeldoes 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 GoogleAiGeminiDecisionRequestParameters.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<GoogleAiGeminiDecisionRequestParameters.Builder>- Parameters:
parameters- the parameters to copy, may benull.- Returns:
this.
-
customParameters
public GoogleAiGeminiDecisionRequestParameters.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 thatGoogleAiGeminiDecisionModeldoes not support yet. A custom parameter namedmodelorinput, whichGoogleAiGeminiDecisionModelalso sends, replaces it. A custom parameter namedquestionsis rejected with anIllegalArgumentExceptionbefore calling the API: the answers are mapped back to the questions of theDecisionRequestby their position.If not empty, they replace (are not merged with) the custom parameters set on the
GoogleAiGeminiDecisionModelbuilder for this request. If not set (null) or empty, the custom parameters of the builder are used. -
build
- Overrides:
buildin classDefaultDecisionRequestParameters.Builder<GoogleAiGeminiDecisionRequestParameters.Builder>
-