agentscope-ai / agentscope-ai/agentscope

perf(event): improve the current event system

Đang mở
#1,696 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
31.5k
Fork
3.5k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
95

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.