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()
includeCodeExecutionOutput
(Boolean includeCodeExecutionOutput) listeners
(List<ChatModelListener> listeners) logRequestsAndResponses
(Boolean logRequestsAndResponses) maxOutputTokens
(Integer maxOutputTokens) maxRetries
(Integer maxRetries) responseFormat
(ResponseFormat responseFormat) safetySettings
(List<GeminiSafetySetting> safetySettings) safetySettings
(Map<GeminiHarmCategory, GeminiHarmBlockThreshold> safetySettingMap) stopSequences
(List<String> stopSequences) temperature
(Double temperature) toolConfig
(GeminiFunctionCallingConfig toolConfig) toolConfig
(GeminiMode mode, String... allowedFunctionNames) toString()
-
Method Details
-
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
-
topP
-
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
public GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder maxRetries(Integer maxRetries) -
build
-
toString
-