agentscope-ai / agentscope-ai/agentscope
perf(event): improve the current event system
- 主要語言
- Python
- 星號
- 31.6k
- 分支
- 3.5k
- 平均合併
- 1 天 16 小時
- 30 天內合併 PR
- 103
描述
**Background**
We have established an event system to support frontend interactions and human-in-the-loop (HITL) workflows. However, there is room for improvement in handling loop limits and user interventions.
**Changes**
- **Iteration extension events**
- Added `RequireIterationExtensionEvent` to be triggered when the execution/iteration loop limit is exceeded.
- Added a corresponding `IterationExtensionResultEvent` to capture and process user confirmation results.
- **General status events**: When the agent performs time-consuming operations — such as compacting the context — the backend should emit corresponding events to notify the frontend and keep the user informed. These events should be designed as a general-purpose mechanism, allowing users to customize the event content rather than being tied to a specific operation.
貢獻指南
評估
這個 Issue 還沒有評估資料。