Class AnthropicMapper
java.lang.Object
dev.langchain4j.model.anthropic.internal.mapper.AnthropicMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AiMessage
toAiMessage
(List<AnthropicContent> contents) static List
<AnthropicMessage> toAnthropicMessages
(List<ChatMessage> messages) static String
toAnthropicSystemPrompt
(List<ChatMessage> messages) static AnthropicTool
toAnthropicTool
(ToolSpecification toolSpecification) static List
<AnthropicTool> toAnthropicTools
(List<ToolSpecification> toolSpecifications) static FinishReason
toFinishReason
(String anthropicStopReason) static TokenUsage
toTokenUsage
(AnthropicUsage anthropicUsage)
-
Constructor Details
-
AnthropicMapper
public AnthropicMapper()
-
-
Method Details
-
toAnthropicMessages
-
toAnthropicSystemPrompt
-
toAiMessage
-
toTokenUsage
-
toFinishReason
-
toAnthropicTools
-
toAnthropicTool
-