Package dev.langchain4j.model.bedrock
Class BedrockChatModel
java.lang.Object
dev.langchain4j.model.bedrock.BedrockChatModel
- All Implemented Interfaces:
ChatLanguageModel
BedrockChatModel uses the Bedrock ConverseAPI.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBedrockChatModel
(BedrockChatModel.Builder builder) BedrockChatModel
(String modelId) -
Method Summary
Modifier and TypeMethodDescriptionstatic BedrockChatModel.Builder
builder()
chat
(ChatRequest request) This is the main API to interact with the chat model.static Float
dblToFloat
(Double d) provider()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.chat.ChatLanguageModel
chat, chat, chat, defaultRequestParameters, doChat, listeners, supportedCapabilities
-
Constructor Details
-
BedrockChatModel
-
BedrockChatModel
-
-
Method Details
-
chat
Description copied from interface:ChatLanguageModel
This is the main API to interact with the chat model. A temporary default implementation of this method is necessary until allChatLanguageModel
implementations adopt it. It should be removed once that occurs.- Specified by:
chat
in interfaceChatLanguageModel
- Parameters:
request
- aChatRequest
, containing all the inputs to the LLM- Returns:
- a
ChatResponse
, containing all the outputs from the LLM
-
provider
- Specified by:
provider
in interfaceChatLanguageModel
-
builder
-
dblToFloat
-