diff --git a/astrbot/core/agent/context/compressor.py b/astrbot/core/agent/context/compressor.py index d4642bc50..d76b49070 100644 --- a/astrbot/core/agent/context/compressor.py +++ b/astrbot/core/agent/context/compressor.py @@ -169,10 +169,12 @@ class LLMSummaryCompressor: self.instruction_text = instruction_text or ( "Based on our full conversation history, produce a concise summary of key takeaways and/or project progress.\n" + "The primary goal of this summary is to enable seamless continuation of the work that follows.\n" "1. Systematically cover all core topics discussed and the final conclusion/outcome for each; clearly highlight the latest primary focus.\n" "2. If any tools were used, summarize tool usage (total call count) and extract the most valuable insights from tool outputs.\n" - "3. If there was an initial user goal, state it first and describe the current progress/status.\n" - "4. Write the summary in the user's language.\n" + "3. If any materials (files, documents, code, references) were read during the conversation that may be helpful for subsequent work, list each one with its scope and path.\n" + "4. If there was an initial user goal, state it first and describe the current progress/status.\n" + "5. Write the summary in the user's language.\n" ) def should_compress( diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 7e6548936..30b1e0a31 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -123,10 +123,12 @@ DEFAULT_CONFIG = { "context_limit_reached_strategy": "truncate_by_turns", # or llm_compress "llm_compress_instruction": ( "Based on our full conversation history, produce a concise summary of key takeaways and/or project progress.\n" + "The primary goal of this summary is to enable seamless continuation of the work that follows.\n" "1. Systematically cover all core topics discussed and the final conclusion/outcome for each; clearly highlight the latest primary focus.\n" "2. If any tools were used, summarize tool usage (total call count) and extract the most valuable insights from tool outputs.\n" - "3. If there was an initial user goal, state it first and describe the current progress/status.\n" - "4. Write the summary in the user's language.\n" + "3. If any materials (files, documents, code, references) were read during the conversation that may be helpful for subsequent work, list each one with its scope and path.\n" + "4. If there was an initial user goal, state it first and describe the current progress/status.\n" + "5. Write the summary in the user's language.\n" ), "llm_compress_keep_recent": 6, "llm_compress_provider_id": "",