类 AnthropicConversationMerger

java.lang.Object
io.agentscope.core.formatter.anthropic.AnthropicConversationMerger

public class AnthropicConversationMerger extends Object
Merges multi-agent conversation messages into a formatted conversation history for Anthropic API.
  • 构造器详细资料

    • AnthropicConversationMerger

      public AnthropicConversationMerger()
  • 方法详细资料

    • mergeConversation

      public static List<Object> mergeConversation(List<Msg> messages, String conversationHistoryPrompt)
      Merge conversation messages into formatted blocks with history tags.
      参数:
      messages - List of conversation messages
      conversationHistoryPrompt - Prompt text to prepend
      返回:
      List of content blocks (text and images)