AI Agent Retries: Why Tool Calls Loop Forever
AI agent retries: In the ReAct loop the model can call the same failing tool again and again, and every call resends the whole conversation. You decide the limit: 3, 5 or 10 calls.
471 stories
AI agent retries: In the ReAct loop the model can call the same failing tool again and again, and every call resends the whole conversation. You decide the limit: 3, 5 or 10 calls.
LangChain middleware: ToolNode only turns argument validation errors into a message the model can fix. City not found, timeouts and crashes still propagate, and that is what middleware is for.
AI agent failures: Wrong address, traffic jam, demolished house, gated community, circling the block, dispatcher down: six agent failures and who fixes each one, the model, your retry code, or nobody.
AI agent security: With a plain read-file tool and an email tool, the agent read a secret file and emailed the key. Resolving the path and refusing anything outside the workspace folder stops it: path escapes workspace, nothing sent.
prompt injection in AI agents: Indirect prompt injection: a note the agent reads with cat contains instructions to delete itself. GPT-4o ignored it this time, but models sometimes obey, so the real protection is that rm is not on the allowlist.
Ultravox alternatives in one table, split into other speech-to-speech models, hosted cascade platforms and open source you run, with Dograh running Ultravox on your key, one 3,000-minute month priced, when staying makes sense and what a move takes.
How Kore.ai pricing works: a quote-led contract metered by session, how each session turns into billing units, what never bills, what sits on top for voice, a formula for reading a quote and the questions to ask before you sign.
AI agent security: A shell tool with no limits lets the agent run rm and delete a file, as the LangSmith trace shows. An allowlist of trusted commands (pwd, date, ls, cat) blocks everything else, so the same request leaves the file alone.
AI agent sandboxing: The LLM picks the tool, but your code runs it on your laptop, so one cat on a secrets file sends your passwords to the model. Sandboxing gives the agent a box it cannot leave, like a child told never to cross into the highway.
openPangu-2.1-Pro is now a public API on Huawei Cloud MaaS, tuned for agents, ArkTS and Ascend operators, at 0.8 yuan input and 3.2 yuan output per million tokens.
AI agent duplicate emails: A live demo: a 'send a backup copy' prompt makes the agent email twice. With an idempotent send_email tool, the second call returns skipped_duplicate from the ledger.
AI agent idempotency: Hash the fields that make a task unique (to + body for an email, order ID + date + price + status for a refund), keep a ledger, and skip anything already done. Deterministic code controls a probabilistic LLM.
AI agent idempotency: Calling a search tool five times is harmless; calling a refund tool twice costs real money. Tool idempotency means the same task never runs twice, and you decide which tools need it.
Calculate Gemini 4 Carbon task costs with a tested Python ledger: current and December rates, cached input, thinking, retries, agent turns and separate tool charges.
AI agent email automation: One prompt makes the agent check Rotterdam's weather, search for a tourist spot and send an HTML email through Resend, and the email really arrives.
On 200 ToolRet questions and up to 3,794 tools, BM25 ran about 40x faster than BGE-large on just a CPU, and full tool docs made it the best setup tested. The post Keyword Search Tied an 8B Embedding Model at Picking Agent Tools appeared first on Towards Data Science.
An agent can get better at its job without a new model. It can learn to find useful information, choose the right tool, or check that a task is finished before reporting success.
LangChain AI agents: The same LangChain create_agent, now with real tools: it calls OpenWeather for live weather and Tavily for live web search, and loops until the finish reason is stop.
Showing 18 of 471 stories
Load more storiesGet the top AI news and tools straight to your inbox every week.
Weekly · AI news
Join 15,000+ AI enthusiasts