为模型思考或工具调用死循环增加阈值跳出机制

Problem

目前偶发由于部分模型Thinking陷入死循环或者其他原因导致Tool call陷入死循环,期间会无限反复尝试,无法自行跳出只能手动干涉,造成Credits消耗大。如果是Thinking死循环甚至无法追加引导。

Solution

为模型思考或工具调用死循环增加检测或阈值跳出机制。

Use Case

Agent运行过程中。

Priority

  • :red_circle: High - Blocking issue
  • :yellow_circle: Medium - Important improvement
  • :green_circle: Low - Nice to have

Additional Info

(Optional: screenshots, examples, links)