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>
  • Constructor Details

    • BedrockMistralAiChatModel

      public BedrockMistralAiChatModel()
  • Method Details

    • getModelId

      protected String getModelId()
      Description copied from class: AbstractBedrockChatModel
      Get model id
      Specified by:
      getModelId in class AbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>
      Returns:
      model id
    • getRequestParameters

      protected Map<String,Object> getRequestParameters(String prompt)
      Description copied from class: AbstractBedrockChatModel
      Get request parameters
      Specified by:
      getRequestParameters in class AbstractBedrockChatModel<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:
      generate in interface dev.langchain4j.model.chat.ChatLanguageModel
      Overrides:
      generate in class AbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>
    • getResponseClassType

      public Class<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse> getResponseClassType()
      Description copied from class: AbstractBedrockChatModel
      Get response class type
      Specified by:
      getResponseClassType in class AbstractBedrockChatModel<dev.langchain4j.model.bedrock.BedrockMistralAiChatModelResponse>
      Returns:
      response class type