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.mdxindex 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, andat most one parameter. The runtime's own error text is never sent; a failureno 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 notretried: credentials, quota, content policy and an invalid request are