Class VertexAiGeminiStreamingChatModel
java.lang.Object
dev.langchain4j.model.vertexai.gemini.VertexAiGeminiStreamingChatModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.StreamingChatModel, Closeable, AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionVertexAiGeminiStreamingChatModel(com.google.cloud.vertexai.generativeai.GenerativeModel generativeModel, com.google.cloud.vertexai.api.GenerationConfig generationConfig) VertexAiGeminiStreamingChatModel(com.google.cloud.vertexai.generativeai.GenerativeModel generativeModel, com.google.cloud.vertexai.api.GenerationConfig generationConfig, Executor executor) VertexAiGeminiStreamingChatModel(VertexAiGeminiStreamingChatModel.VertexAiGeminiStreamingChatModelBuilder builder) VertexAiGeminiStreamingChatModel(String project, String location, String modelName, Float temperature, Integer maxOutputTokens, Integer topK, Float topP, String responseMimeType, com.google.cloud.vertexai.api.Schema responseSchema, Map<HarmCategory, SafetyThreshold> safetySettings, Boolean useGoogleSearch, String vertexSearchDatastore, ToolCallingMode toolCallingMode, List<String> allowedFunctionNames, Boolean logRequests, Boolean logResponses, List<dev.langchain4j.model.chat.listener.ChatModelListener> listeners, Map<String, String> customHeaders, Executor executor) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voidchat(dev.langchain4j.model.chat.request.ChatRequest chatRequest, dev.langchain4j.model.chat.response.StreamingChatResponseHandler handler) voidclose()List<dev.langchain4j.model.chat.listener.ChatModelListener> dev.langchain4j.model.ModelProviderprovider()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.chat.StreamingChatModel
chat, chat, chat, defaultRequestParameters, doChat, supportedCapabilities
-
Constructor Details
-
VertexAiGeminiStreamingChatModel
public VertexAiGeminiStreamingChatModel(VertexAiGeminiStreamingChatModel.VertexAiGeminiStreamingChatModelBuilder builder) -
VertexAiGeminiStreamingChatModel
@Deprecated(forRemoval=true, since="1.1.0-beta7") public VertexAiGeminiStreamingChatModel(String project, String location, String modelName, Float temperature, Integer maxOutputTokens, Integer topK, Float topP, String responseMimeType, com.google.cloud.vertexai.api.Schema responseSchema, Map<HarmCategory, SafetyThreshold> safetySettings, Boolean useGoogleSearch, String vertexSearchDatastore, ToolCallingMode toolCallingMode, List<String> allowedFunctionNames, Boolean logRequests, Boolean logResponses, List<dev.langchain4j.model.chat.listener.ChatModelListener> listeners, Map<String, String> customHeaders, Executor executor) Deprecated, for removal: This API element is subject to removal in a future version.please useVertexAiGeminiStreamingChatModel(VertexAiGeminiStreamingChatModelBuilder)instead -
VertexAiGeminiStreamingChatModel
public VertexAiGeminiStreamingChatModel(com.google.cloud.vertexai.generativeai.GenerativeModel generativeModel, com.google.cloud.vertexai.api.GenerationConfig generationConfig) -
VertexAiGeminiStreamingChatModel
public VertexAiGeminiStreamingChatModel(com.google.cloud.vertexai.generativeai.GenerativeModel generativeModel, com.google.cloud.vertexai.api.GenerationConfig generationConfig, Executor executor)
-
-
Method Details
-
chat
public void chat(dev.langchain4j.model.chat.request.ChatRequest chatRequest, dev.langchain4j.model.chat.response.StreamingChatResponseHandler handler) - Specified by:
chatin interfacedev.langchain4j.model.chat.StreamingChatModel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
listeners
- Specified by:
listenersin interfacedev.langchain4j.model.chat.StreamingChatModel
-
provider
public dev.langchain4j.model.ModelProvider provider()- Specified by:
providerin interfacedev.langchain4j.model.chat.StreamingChatModel
-
builder
-
VertexAiGeminiStreamingChatModel(VertexAiGeminiStreamingChatModelBuilder)instead