Urgent.News

What's breaking now, across thousands of outlets.

AI

Stop Letting Flaky APIs Crash Your AI Agents

How to combine exponential backoff, circuit breakers, and graceful fallbacks for production-grade agentic workflows. The Bottleneck in Production AI agents are only as reliable as the tools they invoke. When an LLM decides to search the web, scrape a URL, or fetch database records, it depends entirely on network stability. In production, external APIs fail constantly. A sudden surge causes 429…

In production AI agents, the reliability of the agent is directly tied to the tools it uses. External APIs frequently fail due to network instability, causing issues like 429 rate limits, 504 timeouts, or complete endpoint failures. The traditional approach of directly executing tool calls within the agent loop can lead to the entire multi-step reasoning chain being crashed by a single error. To prevent this, a defensive execution pipeline must be implemented around each tool.

The implementation involves three key layers: exponential backoff, circuit breaker, and graceful fallbacks. Exponential backoff helps mitigate transient network glitches and minor rate spikes by retrying with increasing delays. The circuit breaker detects persistent downtime and stops sending doomed requests if an API fails three times consecutively.

Graceful fallbacks and partial degradation come into play when a primary service is down. The agent then routes the query to a replica, cached store, or lightweight fallback, such as using a cached search index instead of a live browser scrape.

The system architecture is composed of an agent core, circuit breaker check, fallback provider, and a response that includes structured data and metadata. This metadata informs the LLM about the degradation, allowing it to adjust its downstream reasoning rather than hallucinating over missing data. The code snippet demonstrates the use of the Tenacity and Circuit Breaker libraries in Python to create a production-ready pattern that ensures failures are caught and handled before reaching the LLM orchestrator.

By returning a structured response that includes degradation metadata, the LLM can adjust its reasoning based on the current status of the tools it is using, thereby improving the overall reliability and user experience of the AI agent.

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

OpenAI Jalapeño puts NVIDIA's inference margins on the clock

Does Jalapeño beat NVIDIA? On the benchmark OpenAI published, yes. Does that make it a better chip than NVIDIA's Blackwell platform? The evidence does not support that claim yet. Should NVIDIA care?

  • OpenAI unveiled its first custom ASIC, Jalapeño, for LLM inference.
  • Jalapeño aims to reduce inference costs and improve performance per watt.
  • Deployment in racks planned for second half of 2026, with program through 2029.

Building Full Shelf: An Agent Fleet for Food-Bank Operations

#AllThingsAgenticHackathon #GoogleCloud #Gemini #AgenticAI A recent lettuce recall made me wonder what happens when affected food is already moving through a local food bank.

  • Full Shelf is an AI solution for managing food bank operations
  • Five specialized agents adapt to real-time changes in inventory and deliveries
  • Human approval required before AI agents execute any actions

Anthropic's Model Hardware Standard: AI Agents Are Expanding From Software Tools to Physical Systems

Anthropic opened a research preview of the Model Hardware Standard (MHS) on August 28, 2026 , describing it as a shared specification that allows AI agents to safely operate programmable physical…

  • Anthropic released Model Hardware Standard (MHS) preview on August 28, 2026.
  • MHS standardizes interface for AI agents to manage physical devices in research and manufacturing.
  • Transition enables agents to interact directly with hardware through common commands.

More from Sunday 30 August →