[高] Agent LLM重试跳过budget计数器递增 #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
backend/app/agent_runtime/core.py 第258-259行,当 LLM 调用重试时,budget 计数器 _llm_invocations 不递增,导致 Agent 可能无限重试超出预算限制。
涉及文件
修复建议
无论成功还是重试,每次 LLM 调用都应计入 budget。
严重程度
高 - 资源控制失效