Class GoogleGenAiStreamingChatModel.Builder
java.lang.Object
dev.langchain4j.model.google.genai.GoogleGenAiStreamingChatModel.Builder
- Enclosing class:
GoogleGenAiStreamingChatModel
-
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) executor(ExecutorService executor) Executor used to drive the blockingResponseStreamiteration off the calling thread.googleCredentials(com.google.auth.oauth2.GoogleCredentials credentials) listeners(List<ChatModelListener> listeners) maxOutputTokens(Integer maxOutputTokens) 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 GoogleGenAiStreamingChatModel.Builder googleCredentials(com.google.auth.oauth2.GoogleCredentials credentials) -
apiKey
-
projectId
-
location
-
modelName
-
timeout
-
temperature
-
topP
-
topK
-
maxOutputTokens
-
thinkingBudget
-
seed
-
stopSequences
-
safetySettings
public GoogleGenAiStreamingChatModel.Builder safetySettings(List<com.google.genai.types.SafetySetting> safetySettings) -
responseFormat
-
enableGoogleSearch
-
enableGoogleMaps
-
enableUrlContext
-
allowedFunctionNames
public GoogleGenAiStreamingChatModel.Builder allowedFunctionNames(List<String> allowedFunctionNames) -
listeners
-
executor
Executor used to drive the blockingResponseStreamiteration off the calling thread. If not set, a shared default executor fromDefaultExecutorProvideris used.Strongly recommended: supply an executor managed by your application (Spring/Quarkus task executor, virtual-thread executor, bounded pool, etc.). The default executor is unbounded and not tied to any application lifecycle, so it offers no back-pressure or graceful shutdown.
-
defaultRequestParameters
public GoogleGenAiStreamingChatModel.Builder defaultRequestParameters(ChatRequestParameters defaultRequestParameters) -
build
-