Skip to content

An open-source, faster Devin alternative

TypeScript

State the retry inside the turn as the runtime performs it

Igor Zalutskifb4e805782c5
diff --git a/docs/agents/events.mdx b/docs/agents/events.mdx
index ae91c796..037060ac 100644
--- a/docs/agents/events.mdx
+++ b/docs/agents/events.mdx
@@ -83,10 +83,14 @@ A failure's `data` is a stable `code`, a fixed `message` for that code, and
at most one parameter. The runtime's own error text is never sent; a failure
no rule recognizes is `agent_failed`.
-A model call that fails in flight is retried inside the turn before the
-turn fails: provider errors and rate limits on the runtime's own schedule,
-and a transport failure or a response stream that breaks once more. Each
-retry appears in the log as a `runtime.log` milestone with
+A model call that fails in flight may be retried inside the turn before
+the turn fails. The runtime retries provider errors, rate limits,
+incomplete response streams and transport failures that interrupt a
+started response on its own schedule, per model call; the host adds one
+retry for a transport failure or an invalid response the runtime would
+not retry on its own. The agent's own calls are covered; the runtime's
+auxiliary calls (compacting the conversation, titling it) are not
+retried. Each retry appears in the log as a `runtime.log` milestone with
`phase: "model_retry"`, the attempt and the failure's class (for example
`provider.transport`), never the provider's own text. A rejection is not
retried: credentials, quota, content policy and an invalid request are