Urgent.News

What's breaking now, across thousands of outlets.

AI

Your agent's p99 is a different animal

Originally published on Loop & Retry — field notes on building LLM agents that survive production. The demo felt instant. The agent answered in about four seconds, every time you ran it on stage. Then you shipped it, and the support queue filled with "it hangs." Nothing was broken. Your average latency really was four seconds. The problem is that nobody experiences the average — they experience…

This article discusses the difference between the average latency and the worst-case latency (p99) experienced by users when running language model (LLM) agents. The author explains that adding more steps to the agent increases the likelihood of slow steps, which significantly impacts the overall latency. The author provides a Python script to demonstrate this effect, showing that even a single slow step can increase the p99 latency by several seconds.

The article emphasizes that budgeting for timeouts, loading spinners, or SLAs should be based on the p99 latency, rather than the mean latency, as the mean does not accurately represent the experience of the majority of users. The author also highlights the importance of considering the impact of retries, which can serialize additional rounds and become the tail themselves.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

从 Demo 到生产:那些真正让 AI Agent 敢上线的护栏

从 Demo 到生产:那些真正让 AI Agent 敢上线的护栏 开场钩子: 你在网上看到的多数「AI Agent」都是 demo。它们之所以上不了生产,原因往往 只有一个 —— 而下面这个开源的小脚手架,专门解决它。 我们已经过了「能调通大模型」就算赢的阶段。现在真正难的是那没人讲的 10%: 是什么阻止 Agent 做出伤害性的事? 我在微软跑过一套约 25 个 Agent…

From Demo to Production: The Guardrails That Make an AI Agent Safe to Ship

From Demo to Production: The Guardrails That Make an AI Agent Safe to Ship Hook: Most "AI agents" you see on the internet are demos.

  • Output quality grading ensures safe shipping of AI agents
  • Human approval gate prevents unsafe actions without consent
  • Model-agnostic providers allow flexibility across multiple models

More from Sunday 23 August →