singleRunStrategyWithHistoryCompression
Creates a single-run agent strategy with automatic conversation history compression.
Works like ai.koog.agents.core.agent.singleRunStrategy but adds a compression step after each tool execution: if the conversation history becomes too large (based on HistoryCompressionConfig.isHistoryTooBig), it compresses the message list to essential facts before continuing.
Return
AIAgentGraphStrategy that compresses conversation history when needed
Parameters
specifies when to trigger compression (size threshold), how to compress (fact extraction strategy), and optionally which model to use for compression
how tools are executed: ToolCalls.SINGLE_RUN_SEQUENTIAL (one tool per LLM call), ToolCalls.SEQUENTIAL (multiple tools per call, executed sequentially), or ToolCalls.PARALLEL (multiple tools per call, executed concurrently)