Skip to content

feat(agent): update tool result compaction configuration#1867

Merged
xieyxclack merged 4 commits intoagentscope-ai:mainfrom
jinliyl:dev/0319_4
Mar 19, 2026
Merged

feat(agent): update tool result compaction configuration#1867
xieyxclack merged 4 commits intoagentscope-ai:mainfrom
jinliyl:dev/0319_4

Conversation

@jinliyl
Copy link
Copy Markdown
Member

@jinliyl jinliyl commented Mar 19, 2026

  • Replace enable_tool_result_compact and tool_result_compact_keep_n
    with new compaction parameters
  • Add tool_result_compact_recent_n, old_threshold, recent_threshold,
    and retention_days configuration options
  • Update frontend form components to reflect new compaction settings
  • Modify memory compaction logic to use updated threshold parameters
  • Update localization strings for new tool result compaction fields
  • Remove deprecated _MemoryMark.COMPRESSED exclusion in command handler
  • Allow extra fields in AgentsRunningConfig model for flexibility
  • Update reme-ai dependency version from 0.3.0.9 to 0.3.1.0

Description

[Describe what this PR does and why]

Related Issue: Fixes #(issue_number) or Relates to #(issue_number)

Security Considerations: [If applicable, e.g. channel auth, env/config handling]

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Core / Backend (app, agents, config, providers, utils, local_models)
  • Console (frontend web UI)
  • Channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.)
  • Skills
  • CLI
  • Documentation (website)
  • Tests
  • CI/CD
  • Scripts / Deploy

Checklist

  • I ran pre-commit run --all-files locally and it passes
  • If pre-commit auto-fixed files, I committed those changes and reran checks
  • I ran tests locally (pytest or as relevant) and they pass
  • Documentation updated (if needed)
  • Ready for review

Testing

[How to test these changes]

Local Verification Evidence

pre-commit run --all-files
# paste summary result

pytest
# paste summary result

Additional Notes

[Optional: any other context]

jinliyl added 2 commits March 19, 2026 18:56
- Replace enable_tool_result_compact and tool_result_compact_keep_n
  with new compaction parameters
- Add tool_result_compact_recent_n, old_threshold, recent_threshold,
  and retention_days configuration options
- Update frontend form components to reflect new compaction settings
- Modify memory compaction logic to use updated threshold parameters
- Update localization strings for new tool result compaction fields
- Remove deprecated _MemoryMark.COMPRESSED exclusion in command handler
- Allow extra fields in AgentsRunningConfig model for flexibility
- Update reme-ai dependency version from 0.3.0.9 to 0.3.1.0
@jinliyl jinliyl had a problem deploying to maintainer-approved March 19, 2026 11:55 — with GitHub Actions Failure
@jinliyl jinliyl changed the title Dev/0319 4 feat(agent): update tool result compaction configuration Mar 19, 2026
@jinliyl jinliyl requested review from rayrayraykk and xieyxclack and removed request for xieyxclack March 19, 2026 11:56
@jinliyl jinliyl temporarily deployed to maintainer-approved March 19, 2026 12:03 — with GitHub Actions Inactive
- Removed max_input_length assignment from running_config
- Removed memory_compact_threshold setting from initialization
- Removed memory_compact_reserve configuration
- Removed enable_tool_result_compact flag
- Removed tool_result_compact_keep_n setting
- Cleaned up unused memory management configurations from agent setup
@jinliyl jinliyl temporarily deployed to maintainer-approved March 19, 2026 12:47 — with GitHub Actions Inactive
@xieyxclack xieyxclack merged commit 28464b5 into agentscope-ai:main Mar 19, 2026
36 checks passed
tudan110 pushed a commit to tudan110/QwenPaw that referenced this pull request Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants