Defines retry limits, timeouts, and buffer thresholds for AI specialist and judge agents. Reuse when managing workflow execution reliability.
// Source: https://github.com/cloudflare/cloudflare-docs | License: CC-BY-4.0 | Copyright --then that use is not regulated by the license. Our
// Provided via justclaw.it.com; keep this notice with the code.
import type { DurabilityConfig } from "@flue/runtime";
export const SPECIALIST_DURABILITY = {
maxAttempts: 3,
timeoutMs: 15 * 60_000,
} as const satisfies DurabilityConfig;
/**
* The judge model's reasoning length varies widely between runs, even on
* small inputs. The Workflow read step adds AGENT_READ_TIMEOUT_BUFFER_MS on
* top of this and must stay within the 30-minute Workflow step timeout.
*/
export const JUDGE_DURABILITY = {
maxAttempts: 3,
timeoutMs: 20 * 60_000,
} as const satisfies DurabilityConfig;
export const SMALL_AGENT_DURABILITY = {
maxAttempts: 3,
timeoutMs
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key