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.
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.