Class BedrockAnthropic3ChatModel
java.lang.Object
org.springframework.ai.bedrock.anthropic3.BedrockAnthropic3ChatModel
- All Implemented Interfaces:
ChatModel
,StreamingChatModel
,Model<Prompt,
,ChatResponse> StreamingModel<Prompt,
ChatResponse>
Java
ChatModel
and StreamingChatModel
for the Bedrock Anthropic chat
generative.- Since:
- 1.0.0
- Author:
- Ben Middleton, Christian Tzolov, Wei Jiang
-
Constructor Summary
ConstructorDescriptionBedrockAnthropic3ChatModel
(Anthropic3ChatBedrockApi chatApi, Anthropic3ChatOptions options) -
Method Summary
Modifier and TypeMethodDescriptionExecutes a method call to the AI model.protected Usage
reactor.core.publisher.Flux<ChatResponse>
Executes a method call to the AI model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.chat.model.StreamingChatModel
stream, stream
-
Constructor Details
-
BedrockAnthropic3ChatModel
-
BedrockAnthropic3ChatModel
-
-
Method Details
-
call
Description copied from interface:Model
Executes a method call to the AI model. -
stream
Description copied from interface:StreamingModel
Executes a method call to the AI model.- Specified by:
stream
in interfaceChatModel
- Specified by:
stream
in interfaceStreamingChatModel
- Specified by:
stream
in interfaceStreamingModel<Prompt,
ChatResponse> - Parameters:
prompt
- the request object to be sent to the AI model- Returns:
- the streaming response from the AI model
-
extractUsage
-
getDefaultOptions
- Specified by:
getDefaultOptions
in interfaceChatModel
-