Package dev.langchain4j.model.bedrock
Class BedrockMistralAiChatModel
java.lang.Object
dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>
dev.langchain4j.model.bedrock.BedrockMistralAiChatModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.ChatLanguageModel
public class BedrockMistralAiChatModel
extends AbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBedrock Mistral model ids -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.model.output.Response<dev.langchain4j.data.message.AiMessage> protected StringGet model idgetRequestParameters(String prompt) Get request parametersClass<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse> Get response class typeMethods inherited from class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
chatMessageToString, invoke, ofMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.chat.ChatLanguageModel
generate, generate, generate, generate
-
Constructor Details
-
BedrockMistralAiChatModel
public BedrockMistralAiChatModel()
-
-
Method Details
-
getModelId
Description copied from class:AbstractBedrockChatModelGet model id- Specified by:
getModelIdin classAbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>- Returns:
- model id
-
getRequestParameters
Description copied from class:AbstractBedrockChatModelGet request parameters- Specified by:
getRequestParametersin classAbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>- Parameters:
prompt- prompt- Returns:
- request body
-
generate
public dev.langchain4j.model.output.Response<dev.langchain4j.data.message.AiMessage> generate(List<dev.langchain4j.data.message.ChatMessage> messages) - Specified by:
generatein interfacedev.langchain4j.model.chat.ChatLanguageModel- Overrides:
generatein classAbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>
-
getResponseClassType
public Class<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse> getResponseClassType()Description copied from class:AbstractBedrockChatModelGet response class type- Specified by:
getResponseClassTypein classAbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>- Returns:
- response class type
-