Package dev.langchain4j.model.googleai
Class GoogleAiGeminiChatModel
java.lang.Object
dev.langchain4j.model.googleai.GoogleAiGeminiChatModel
- All Implemented Interfaces:
ChatModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final ChatRequestParameters
protected final Boolean
protected final GeminiFunctionCallingConfig
protected final dev.langchain4j.model.googleai.GeminiService
protected final boolean
protected final List
<ChatModelListener> protected final Integer
protected final Integer
protected final Boolean
protected final Boolean
protected final List
<GeminiSafetySetting> protected final Integer
protected final boolean
protected final GeminiThinkingConfig
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected static String
computeMimeType
(ResponseFormat responseFormat) protected dev.langchain4j.model.googleai.GeminiGenerateContentRequest
createGenerateContentRequest
(ChatRequest chatRequest) doChat
(ChatRequest chatRequest) provider()
-
Field Details
-
geminiService
protected final dev.langchain4j.model.googleai.GeminiService geminiService -
functionCallingConfig
-
allowCodeExecution
protected final boolean allowCodeExecution -
includeCodeExecutionOutput
protected final boolean includeCodeExecutionOutput -
safetySettings
-
listeners
-
maxRetries
-
thinkingConfig
-
returnThinking
-
sendThinking
protected final boolean sendThinking -
seed
-
logprobs
-
responseLogprobs
-
enableEnhancedCivicAnswers
-
defaultRequestParameters
-
-
Constructor Details
-
GoogleAiGeminiChatModel
-
-
Method Details
-
builder
-
defaultRequestParameters
- Specified by:
defaultRequestParameters
in interfaceChatModel
-
doChat
-
supportedCapabilities
- Specified by:
supportedCapabilities
in interfaceChatModel
-
listeners
-
provider
-
createGenerateContentRequest
protected dev.langchain4j.model.googleai.GeminiGenerateContentRequest createGenerateContentRequest(ChatRequest chatRequest) -
computeMimeType
-