Digitorn
Digitorn
All terms
Cost & ops

Turn cap

A runtime ceiling on how many loop iterations an agent can take before the runtime forces it to stop.

also known as: max_turns
In depth

Without a turn cap, an agent can loop forever (and bill forever). The default on Digitorn is 25 turns per session, configurable per agent. When the cap hits, the runtime stops the loop cleanly and returns whatever partial result the agent had. Behaviour rules can also raise warnings before the cap fires.

Related concepts
Newsletter

Get the next post in your inbox.

Engineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.

One-click unsubscribe. We never share your address. Powered by our own infrastructure, not a tracker.

More in Cost & ops

Audit log/glossary/audit-logBrain fallback/glossary/brain-fallbackCost cap/glossary/cost-capModel routing/glossary/model-routingPII redaction/glossary/pii-redactionRate limiting/glossary/rate-limiting