Class AnthropicRequestMapper
java.lang.Object
dev.langchain4j.model.vertexai.anthropic.internal.mapper.AnthropicRequestMapper
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<AnthropicMessage> toAnthropicMessages(List<ChatMessage> messages) static List<AnthropicSystemMessage> toAnthropicSystemMessages(List<ChatMessage> messages) static AnthropicTooltoAnthropicTool(ToolSpecification toolSpecification) static AnthropicToolChoicetoAnthropicToolChoice(ToolChoice toolChoice) static AnthropicRequesttoRequest(String model, List<ChatMessage> messages, List<ToolSpecification> toolSpecs, ToolChoice toolChoice, Integer maxTokens, Double temperature, Double topP, Integer topK, List<String> stopSequences, Boolean enablePromptCaching)
-
Method Details
-
toRequest
public static AnthropicRequest toRequest(String model, List<ChatMessage> messages, List<ToolSpecification> toolSpecs, ToolChoice toolChoice, Integer maxTokens, Double temperature, Double topP, Integer topK, List<String> stopSequences, Boolean enablePromptCaching) -
toAnthropicMessages
-
toAnthropicSystemMessages
-
toAnthropicTool
-
toAnthropicToolChoice
-