agentscope-ai / agentscope-ai/agentscope

feat(agent): handle max iteration exceeded gracefully in ReAct agent

オープン
#1,805 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
stale-issue
主要言語
Python
スター
31.5k
フォーク
3.5k
平均マージ
1日 23時間
マージ済み PR(30日)
95

説明

**Background**

When a ReAct agent exceeds the maximum number of iterations, it currently terminates the loop abruptly. A more graceful handling strategy should be introduced to improve the user experience.

**Proposed Solutions**

Two approaches are under consideration:

1. **Summarization**: guide the agent to summarize its progress and generate a final text response before exiting.
2. **Human-in-the-loop**: emit an event to the frontend, letting the user decide whether to continue. If allowed, either increase the iteration limit or reset the iteration counter and resume the ReAct loop.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。