Class GoogleAiGeminiStreamingChatModel
java.lang.Object
dev.langchain4j.model.googleai.GoogleAiGeminiStreamingChatModel
- All Implemented Interfaces:
StreamingChatModel
-
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
ConstructorsConstructorDescriptionGoogleAiGeminiStreamingChatModel(GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder builder) -
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) voiddoChat(ChatRequest request, StreamingChatResponseHandler handler) provider()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StreamingChatModel
chat, chat, chat, supportedCapabilities
-
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
-
GoogleAiGeminiStreamingChatModel
public GoogleAiGeminiStreamingChatModel(GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder builder)
-
-
Method Details
-
builder
-
defaultRequestParameters
- Specified by:
defaultRequestParametersin interfaceStreamingChatModel
-
doChat
- Specified by:
doChatin interfaceStreamingChatModel
-
listeners
- Specified by:
listenersin interfaceStreamingChatModel
-
provider
- Specified by:
providerin interfaceStreamingChatModel
-
buildGeminiService
protected static GeminiService buildGeminiService(dev.langchain4j.model.googleai.BaseGeminiChatModel.GoogleAiGeminiChatModelBaseBuilder<?> builder) -
createGenerateContentRequest
protected dev.langchain4j.model.googleai.GeminiGenerateContentRequest createGenerateContentRequest(ChatRequest chatRequest) -
computeMimeType
-