Class MistralAiMapper
java.lang.Object
dev.langchain4j.model.mistralai.internal.mapper.MistralAiMapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AiMessage
aiMessageFrom
(MistralAiChatCompletionResponse response) static FinishReason
finishReasonFrom
(String mistralAiFinishReason) static TokenUsage
tokenUsageFrom
(MistralAiUsage mistralAiUsage) static List
<MistralAiChatMessage> toMistralAiMessages
(List<ChatMessage> messages) static MistralAiResponseFormat
toMistralAiResponseFormat
(String responseFormat) static List
<MistralAiTool> toMistralAiTools
(List<ToolSpecification> toolSpecifications) static ToolExecutionRequest
toToolExecutionRequest
(MistralAiToolCall mistralAiToolCall) static List
<ToolExecutionRequest> toToolExecutionRequests
(List<MistralAiToolCall> mistralAiToolCalls)
-
Constructor Details
-
MistralAiMapper
public MistralAiMapper()
-
-
Method Details
-
toMistralAiMessages
-
tokenUsageFrom
-
finishReasonFrom
-
aiMessageFrom
-
toToolExecutionRequests
public static List<ToolExecutionRequest> toToolExecutionRequests(List<MistralAiToolCall> mistralAiToolCalls) -
toToolExecutionRequest
-
toMistralAiTools
-
toMistralAiResponseFormat
-