Class BedrockAi21Jurassic2ChatModel
java.lang.Object
org.springframework.ai.bedrock.jurassic2.BedrockAi21Jurassic2ChatModel
- All Implemented Interfaces:
ChatModel
,StreamingChatModel
,Model<Prompt,
,ChatResponse> StreamingModel<Prompt,
ChatResponse>
Java
ChatModel
for the Bedrock Jurassic2 chat generative model.- Since:
- 1.0.0
- Author:
- Ahmed Yousri
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBedrockAi21Jurassic2ChatModel
(Ai21Jurassic2ChatBedrockApi chatApi, BedrockAi21Jurassic2ChatOptions options) -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(Ai21Jurassic2ChatBedrockApi chatApi) 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
-
BedrockAi21Jurassic2ChatModel
public BedrockAi21Jurassic2ChatModel(Ai21Jurassic2ChatBedrockApi chatApi, BedrockAi21Jurassic2ChatOptions options) -
BedrockAi21Jurassic2ChatModel
-
-
Method Details
-
builder
-
call
Description copied from interface:Model
Executes a method call to the AI model. -
getDefaultOptions
- Specified by:
getDefaultOptions
in interfaceChatModel
-