Package dev.langchain4j.model.googleai
Class GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder
java.lang.Object
dev.langchain4j.model.googleai.GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder
- Enclosing class:
GoogleAiGeminiStreamingChatModel
public static class GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionallowCodeExecution
(Boolean allowCodeExecution) build()
defaultRequestParameters
(ChatRequestParameters defaultRequestParameters) frequencyPenalty
(Double frequencyPenalty) httpClientBuilder
(HttpClientBuilder httpClientBuilder) includeCodeExecutionOutput
(Boolean includeCodeExecutionOutput) listeners
(List<ChatModelListener> listeners) logRequestsAndResponses
(Boolean logRequestsAndResponses) maxOutputTokens
(Integer maxOutputTokens) maxRetries
(Integer maxRetries) Deprecated, for removal: This API element is subject to removal in a future version.retries are not supported for streaming modelpresencePenalty
(Double presencePenalty) responseFormat
(ResponseFormat responseFormat) safetySettings
(List<GeminiSafetySetting> safetySettings) safetySettings
(Map<GeminiHarmCategory, GeminiHarmBlockThreshold> safetySettingMap) stopSequences
(List<String> stopSequences) temperature
(Double temperature) thinkingConfig
(GeminiThinkingConfig thinkingConfig) toolConfig
(GeminiFunctionCallingConfig toolConfig) toolConfig
(GeminiMode mode, String... allowedFunctionNames)
-
Method Details
-
httpClientBuilder
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder httpClientBuilder(HttpClientBuilder httpClientBuilder) -
defaultRequestParameters
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder defaultRequestParameters(ChatRequestParameters defaultRequestParameters) -
toolConfig
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder toolConfig(GeminiMode mode, String... allowedFunctionNames) -
safetySettings
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder safetySettings(Map<GeminiHarmCategory, GeminiHarmBlockThreshold> safetySettingMap) -
apiKey
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder apiKey(String apiKey) -
modelName
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder modelName(String modelName) -
temperature
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder temperature(Double temperature) -
topK
-
seed
-
topP
-
frequencyPenalty
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder frequencyPenalty(Double frequencyPenalty) -
presencePenalty
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder presencePenalty(Double presencePenalty) -
maxOutputTokens
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder maxOutputTokens(Integer maxOutputTokens) -
timeout
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder timeout(Duration timeout) -
responseFormat
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder responseFormat(ResponseFormat responseFormat) -
stopSequences
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder stopSequences(List<String> stopSequences) -
toolConfig
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder toolConfig(GeminiFunctionCallingConfig toolConfig) -
allowCodeExecution
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder allowCodeExecution(Boolean allowCodeExecution) -
includeCodeExecutionOutput
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder includeCodeExecutionOutput(Boolean includeCodeExecutionOutput) -
logRequestsAndResponses
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder logRequestsAndResponses(Boolean logRequestsAndResponses) -
safetySettings
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder safetySettings(List<GeminiSafetySetting> safetySettings) -
listeners
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder listeners(List<ChatModelListener> listeners) -
maxRetries
@Deprecated(forRemoval=true, since="1.1.0-beta7") public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder maxRetries(Integer maxRetries) Deprecated, for removal: This API element is subject to removal in a future version.retries are not supported for streaming model -
thinkingConfig
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder thinkingConfig(GeminiThinkingConfig thinkingConfig) -
build
-