Class VertexAiAnthropicClient
java.lang.Object
dev.langchain4j.model.vertexai.anthropic.internal.client.VertexAiAnthropicClient
-
Constructor Summary
ConstructorsConstructorDescriptionVertexAiAnthropicClient(String project, String location, String model) VertexAiAnthropicClient(String project, String location, String model, com.google.auth.oauth2.GoogleCredentials credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()generateContent(AnthropicRequest request, String modelName) voidgenerateContentStreaming(AnthropicRequest request, String modelName, StreamingResponseHandler handler) Streaming version of generateContent - simulates streaming by chunking the response
-
Constructor Details
-
VertexAiAnthropicClient
-
VertexAiAnthropicClient
-
-
Method Details
-
generateContent
public AnthropicResponse generateContent(AnthropicRequest request, String modelName) throws IOException - Throws:
IOException
-
generateContentStreaming
public void generateContentStreaming(AnthropicRequest request, String modelName, StreamingResponseHandler handler) throws IOException Streaming version of generateContent - simulates streaming by chunking the response- Throws:
IOException
-
close
public void close()
-