### Feature Description 希望能开放一下LLM上下文的接口,或者是提供一个可以让用户手动进行压缩的操作 ### Use Case 用户可以自主进行LLM上下文压缩 ### Checklist - [x] I have searched the [Issue list](https://github.com/AstrBotDevs/AstrBot/issues) for related features and confirmed this feature idea has never been proposed. - [x] The feature I am suggesting is related to AstrBot itself, not to a specific plugin. - [x] I have read and agree to the project's [Code of Conduct](https://github.com/AstrBotDevs/AstrBot/blob/master/CODE_OF_CONDUCT.md). - [ ] (Optional) I am willing to submit a PR to help implement this feature.
Activity
C10H14N2O5 commentedon Nov 7, 2026
你好!这个 Issue 的诉求与我之前提出的 #9281 高度重合。我在 #9795 中实现了其中一部分功能:通过 /compact 命令手动触发当前会话的上下文压缩。
不过,目前维护者还没有就该功能是否会被采纳给出明确意见,因此我暂时暂停了对该 PR 的进一步跟进,等待维护者反馈。具体说明可以参考这条评论。
如果你的需求是开放供插件或其他程序调用的 API,而不仅仅是提供手动操作入口,也欢迎补充一下具体使用场景。如果维护者认可将这一功能纳入主线,我可以在现有 PR 的基础上继续实现,或者另开一个 PR 处理 API 部分。