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 ChatRequestParametersprotected final Booleanprotected final GeminiFunctionCallingConfigprotected final dev.langchain4j.model.googleai.GeminiServiceprotected final booleanprotected final List<ChatModelListener> protected final Integerprotected final Booleanprotected final Booleanprotected final List<GeminiSafetySetting> protected final Integerprotected final booleanprotected final GeminiThinkingConfig -
Constructor Summary
ConstructorsConstructorDescriptionGoogleAiGeminiStreamingChatModel(GoogleAiGeminiStreamingChatModel.GoogleAiGeminiStreamingChatModelBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected static dev.langchain4j.model.googleai.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
protected final dev.langchain4j.model.googleai.GeminiService geminiService -
functionCallingConfig
-
allowCodeExecution
protected final boolean allowCodeExecution -
includeCodeExecutionOutput
protected final boolean includeCodeExecutionOutput -
safetySettings
-
listeners
-
thinkingConfig
-
returnThinking
-
sendThinking
protected final boolean sendThinking -
seed
-
logprobs
-
responseLogprobs
-
enableEnhancedCivicAnswers
-
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 dev.langchain4j.model.googleai.GeminiService buildGeminiService(dev.langchain4j.model.googleai.BaseGeminiChatModel.GoogleAiGeminiChatModelBaseBuilder<?> builder) -
createGenerateContentRequest
protected dev.langchain4j.model.googleai.GeminiGenerateContentRequest createGenerateContentRequest(ChatRequest chatRequest) -
computeMimeType
-