最新资讯
theverge.com OpenAI 宣布数据中心项目不再与公职人员签署保密协议 dev.to NVIDIA 发布四个开放 Cosmos 3 仿真模型 dev.to 真实 MCP 客户端击穿我们服务器的五种方式 theverge.com Airbnb 正在开发 AI 旅行 agent,计划 2027 年上半年推出 wechat 这可能是美国AI最魔幻的一天。 nytimes.com 美众议院共和党领袖要求 Nvidia 黄仁勋闭门简报 pub.towardsai.net 忘掉我:为记忆而设计的系统中的删除难题 marktechpost.com Google 发布 Gemini Omni 1.2 Flash:15 秒视频,每秒 0.07 美元 unite.ai Airbnb 计划推出覆盖规划、预订与客服的 AI 旅行 agent techcrunch.com Airbnb 称将于 2027 年上半年推出 AI 旅行代理 theverge.com Perplexity 推出面向工作的 AI 代理 Teammates unite.ai Five9 拟以约3.25亿美元收购 Level AI,扩展客服AI分销渠道
多元动态
登录 注册
智能体 dev.to · @Anshu Kumar

AI Agent 应该何时停止?

原文 我的收藏

文章分析 Agent 执行控制问题:固定步数上限既可能导致重复搜索浪费 token,也可能在任务完成前一步被截断,核心是执行更多步骤不等于取得进展。作者提出设计进度感知的执行控制器,把停止作为系统级决策而非提示词中的一条指令,但未提供实现或评测结果。

AI推荐理由 讨论 Agent 何时停止的工程问题,指出固定 max_steps 无法判断任务是否完成,提出把停止作为系统级决策的进度感知执行控制器;属于设计思路文章,有具体问题分析,但未给出实现或实验数据。

66

正文

Designing a progress-aware execution controller for agentic systems. Imagine asking an AI research agent to compare PostgreSQL and DynamoDB. It finds documentation, collects the important trade-offs, and has enough information to answer. Then it searches again. And again. Same sources, slightly different queries, more tokens spent. Now consider the opposite: an agent reaches its step limit one action before completing its work. Both situations point to the same problem: executing more steps isn't always the same as making progress. I've been thinking about how I'd design an execution controller that makes stopping a system-level decision, not simply another instruction in the prompt. Why max_steps = 10 doesn't solve it Hard limits are essential. They stop runaway loops and cap resource consumption. But a fixed number of turns doesn't tell us whether a task is complete. A simple lookup might need two turns; a difficult research task might need twenty. A generous limit wastes resources on easy tasks. A tight limit can cut complex tasks short. The limit should be the safety boundary, not the intelligence behind the stopping decision. The architecture I'd try I'd separate the agent from the component that controls its execution. The agent runtime proposes actions. A policy and budget gate checks them before execution. After a tool returns, a progress evaluator measures what changed, and a decision controller decides what happens next. The controller tracks three practical signals: Completion: Which task requirements have actually been satisfied, with evidence? Progress: Did the last action add useful information or just repeat earlier work? Budget: How much time, money, and tool usage is left? For example, three searches returning the same sources with no newly satisfied requirements could be a sign of stagnation. But it shouldn't immediately kill the task; sometimes a different strategy is all that's needed. Stop, continue, or change course? I would start with a transparent, rule-based policy rather than making another LLM judge every step. The outcomes are deliberately different: FINISH - all mandatory requirements are verified. CONTINUE - useful progress is still being made. REPLAN - the agent appears stuck, but another strategy is allowed. STOP INCOMPLETE - the budget is exhausted or continuing is unsafe. I think that final distinction matters. An agent stopping because it ran out of budget should never be confused with an agent successfully finishing its job. One detail that matters in production The controller's state should be durable: completed requirements, evidence references, tool history, and consumed budget. If a worker crashes after spending $0.30 of a $0.50 budget, restarting shouldn't silently reset that budget. And if the previous action changed external state, retries need idempotency or reconciliation-not merely a checkpoint. For an MVP, I'd use a small agent runtime, PostgreSQL for execution records, and deterministic policy checks. No elaborate distributed architecture unless the workload actually needs it. How I'd know if it works I wouldn't assume a smarter-looking controller is better. I'd test three policies on the same set of tasks: Policy Behavior Fixed limit Stop on completion or at a hard cap Stagnation-aware Replan after repeated non-progress Progress-aware Combine completion evidence, stagnation, and soft budgets I'd compare verified task success, cost per successful task, latency, and premature stops. The useful question isn't whether the controller reduces calls. It's whether it saves wasted work without making the agent less reliable. A simple limit might even win on predictable tasks. That's a valid engineering result too. Final thought I think the next step for agentic systems isn't just making agents capable of doing more. It's giving the systems around them a better way to decide when more work is useful, when to change strategy, and when to stop. This is a proposed architecture, not a benchmarked result. I'd like to turn it into a small experiment and see where the simple rules break. Sometimes better agent behavior means doing less-but doing it deliberately.

来源报道 · 1 篇 · 以下链接均前往原始媒体

Anshu Kumar AI Agent 应该何时停止? 10-24 · 原文发布
← 返回精选动态 原文

更多内容