Mmidwinter1993update docs
a22a2ce5创建于 2025年10月17日历史提交

Package compactor

class SimpleConversationCompactor

func compact

func compact(conversation: Conversation): String
  • Description: This agent attempts to summarize the tool execution results into concise and structured summaries.
  • Parameters:
    • conversation: Conversation, The conversation to be summarized.

class SimpleToolCompactor

func compact

func compact(toolRequest: ToolRequest, toolResponse: ToolResponse): String
  • Description: This agent attempts to summarize the tool execution results into concise and structured summaries.
  • Parameters:
    • toolRequest: ToolRequest, The request object containing details of the tool invocation.
    • toolResponse: ToolResponse, The response object containing the results from the tool execution.