Class GoogleGenAiChatModel.Builder
java.lang.Object
dev.langchain4j.model.google.genai.GoogleGenAiChatModel.Builder
- Enclosing class:
GoogleGenAiChatModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedFunctionNames(List<String> allowedFunctionNames) build()client(com.google.genai.Client client) defaultRequestParameters(ChatRequestParameters defaultRequestParameters) enableGoogleMaps(boolean googleMaps) enableGoogleSearch(boolean googleSearch) enableUrlContext(boolean urlContext) googleCredentials(com.google.auth.oauth2.GoogleCredentials credentials) listeners(List<ChatModelListener> listeners) maxOutputTokens(Integer maxOutputTokens) maxRetries(Integer maxRetries) responseFormat(ResponseFormat responseFormat) safetySettings(List<com.google.genai.types.SafetySetting> safetySettings) stopSequences(List<String> stopSequences) temperature(Double temperature) thinkingBudget(Integer thinkingBudget)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
client
-
googleCredentials
public GoogleGenAiChatModel.Builder googleCredentials(com.google.auth.oauth2.GoogleCredentials credentials) -
apiKey
-
projectId
-
location
-
modelName
-
timeout
-
temperature
-
topP
-
topK
-
maxOutputTokens
-
thinkingBudget
-
seed
-
stopSequences
-
maxRetries
-
safetySettings
public GoogleGenAiChatModel.Builder safetySettings(List<com.google.genai.types.SafetySetting> safetySettings) -
responseFormat
-
enableGoogleSearch
-
enableGoogleMaps
-
enableUrlContext
-
allowedFunctionNames
-
listeners
-
defaultRequestParameters
public GoogleGenAiChatModel.Builder defaultRequestParameters(ChatRequestParameters defaultRequestParameters) -
build
-