Class GoogleAiGeminiChatModel
java.lang.Object
dev.langchain4j.model.googleai.GoogleAiGeminiChatModel
- All Implemented Interfaces:
ChatModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final GeminiCacheManagerprotected final GeminiCachingConfigprotected final ChatRequestParametersprotected final Booleanprotected final GeminiFunctionCallingConfigprotected final GeminiServiceprotected final booleanprotected final List<ChatModelListener> protected final Integerprotected final Booleanprotected final Booleanprotected final List<GeminiSafetySetting> protected final Integerprotected final booleanprotected final GeminiThinkingConfigprotected final boolean -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected static GeminiServicebuildGeminiService(dev.langchain4j.model.googleai.BaseGeminiChatModel.GoogleAiGeminiChatModelBaseBuilder<?> builder) protected static StringcomputeMimeType(ResponseFormat responseFormat) protected dev.langchain4j.model.googleai.GeminiGenerateContentRequestcreateGenerateContentRequest(ChatRequest chatRequest) doChat(ChatRequest chatRequest) provider()
-
Field Details
-
geminiService
-
cacheManager
-
functionCallingConfig
-
allowCodeExecution
protected final boolean allowCodeExecution -
includeCodeExecutionOutput
protected final boolean includeCodeExecutionOutput -
safetySettings
-
listeners
-
thinkingConfig
-
returnThinking
-
sendThinking
protected final boolean sendThinking -
seed
-
logprobs
-
responseLogprobs
-
enableEnhancedCivicAnswers
-
useNativeJsonSchema
protected final boolean useNativeJsonSchema -
cachingConfig
-
defaultRequestParameters
-
-
Constructor Details
-
GoogleAiGeminiChatModel
-
-
Method Details
-
builder
-
defaultRequestParameters
- Specified by:
defaultRequestParametersin interfaceChatModel
-
doChat
-
supportedCapabilities
- Specified by:
supportedCapabilitiesin interfaceChatModel
-
listeners
-
provider
-
buildGeminiService
protected static GeminiService buildGeminiService(dev.langchain4j.model.googleai.BaseGeminiChatModel.GoogleAiGeminiChatModelBaseBuilder<?> builder) -
createGenerateContentRequest
protected dev.langchain4j.model.googleai.GeminiGenerateContentRequest createGenerateContentRequest(ChatRequest chatRequest) -
computeMimeType
-