Class VertexAiAnthropicStreamingChatModel
java.lang.Object
dev.langchain4j.model.vertexai.anthropic.VertexAiAnthropicStreamingChatModel
- All Implemented Interfaces:
StreamingChatModel, Closeable, AutoCloseable
public class VertexAiAnthropicStreamingChatModel
extends Object
implements StreamingChatModel, Closeable
Represents a Google Vertex AI Anthropic language model with a streaming chat completion interface.
Supports Claude models through Vertex AI's Model Garden.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionVertexAiAnthropicStreamingChatModel(VertexAiAnthropicStreamingChatModel.VertexAiAnthropicStreamingChatModelBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voidclose()voiddoChat(ChatRequest chatRequest, 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, defaultRequestParameters, supportedCapabilities
-
Constructor Details
-
VertexAiAnthropicStreamingChatModel
public VertexAiAnthropicStreamingChatModel(VertexAiAnthropicStreamingChatModel.VertexAiAnthropicStreamingChatModelBuilder builder)
-
-
Method Details
-
doChat
- Specified by:
doChatin interfaceStreamingChatModel
-
listeners
- Specified by:
listenersin interfaceStreamingChatModel
-
provider
- Specified by:
providerin interfaceStreamingChatModel
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
builder
public static VertexAiAnthropicStreamingChatModel.VertexAiAnthropicStreamingChatModelBuilder builder()
-