Class BedrockLlama2ChatClient
java.lang.Object
org.springframework.ai.bedrock.llama2.BedrockLlama2ChatClient
- All Implemented Interfaces:
ChatClient,StreamingChatClient,ModelClient<Prompt,,ChatResponse> StreamingModelClient<Prompt,ChatResponse>
Java
ChatClient and StreamingChatClient for the Bedrock Llama2 chat
generative.- Since:
- 0.8.0
- Author:
- Christian Tzolov
-
Constructor Summary
ConstructorsConstructorDescriptionBedrockLlama2ChatClient(Llama2ChatBedrockApi chatApi, BedrockLlama2ChatOptions options) -
Method Summary
Modifier and TypeMethodDescriptionExecutes a method call to the AI model.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, waitMethods inherited from interface org.springframework.ai.chat.ChatClient
call
-
Constructor Details
-
BedrockLlama2ChatClient
-
BedrockLlama2ChatClient
-
-
Method Details
-
call
Description copied from interface:ModelClientExecutes a method call to the AI model.- Specified by:
callin interfaceChatClient- Specified by:
callin interfaceModelClient<Prompt,ChatResponse> - Parameters:
prompt- the request object to be sent to the AI model- Returns:
- the response from the AI model
-
stream
Description copied from interface:StreamingModelClientExecutes a method call to the AI model.- Specified by:
streamin interfaceStreamingChatClient- Specified by:
streamin interfaceStreamingModelClient<Prompt,ChatResponse> - Parameters:
prompt- the request object to be sent to the AI model- Returns:
- the streaming response from the AI model
-