Artificial Intelligence

AI agent repeats the same tool call until timeout

Environment

Environment

LangGraph agent with search and ticket-creation tools.

What happens

What happens

When search returns no results, the agent invokes the identical query until the execution limit is reached.

What I have tried

What I have tried

Added a prompt instructing the agent not to repeat itself.

I would appreciate advice on how to identify the root cause without risking existing data or configuration.

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 2w ago• Trouble ID

Most likely causes

The graph state has no deterministic loop guard or record of equivalent failed actions. 73%
A recent software, firmware or configuration change is exposing an existing compatibility issue. 41%

Summary

The reported behaviour is consistent with the graph state has no deterministic loop guard or record of equivalent failed actions. The safest next step is to verify that hypothesis with a reversible test before making permanent configuration changes.

Suggested Fixes

Verify the likely cause
Track normalized tool calls in state, branch after repeated failures and enforce per-tool plus global step limits outside the model.
Validate and monitor
Reproduce the issue once after the change, review relevant logs or metrics, and keep a rollback path until the system has remained stable.