[高] Agent LLM重试跳过budget计数器递增 #79

Closed
opened 2026-05-10 18:39:10 +08:00 by admin · 0 comments
Owner

问题描述

backend/app/agent_runtime/core.py 第258-259行,当 LLM 调用重试时,budget 计数器 _llm_invocations 不递增,导致 Agent 可能无限重试超出预算限制。

涉及文件

  • backend/app/agent_runtime/core.py:258-259

修复建议

无论成功还是重试,每次 LLM 调用都应计入 budget。

严重程度

高 - 资源控制失效

## 问题描述 backend/app/agent_runtime/core.py 第258-259行,当 LLM 调用重试时,budget 计数器 _llm_invocations 不递增,导致 Agent 可能无限重试超出预算限制。 ## 涉及文件 - backend/app/agent_runtime/core.py:258-259 ## 修复建议 无论成功还是重试,每次 LLM 调用都应计入 budget。 ## 严重程度 高 - 资源控制失效
admin closed this issue 2026-05-10 18:53:59 +08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/aiagent#79