acoustic-carpenter-78188
06/29/2026, 4:07 PMfunction_tool + run_agent and follows the same division of labor, so the call shape is identical across SDKs:
• The agent run is a Flyte `@env.task`: the durable parent (retries= = self-healing, report=True = the agent timeline in the report).
• Each tool is a Flyte task, invoked as a durable child action (its own container/resources, retries, caching) via function_tool.
• Each model turn is recorded for replay by tracing the seam below the SDK's own loop (durable=True), so a crashed or retried run replays completed turns instead of re-calling (and re-billing) the model. Where the SDK runs its loop in a subprocess (Claude), durability is the SDK's own session-resume instead.
• Cross-run memory via memory_key, backed by a durable keyed MemoryStore.
The rule: if the SDK owns the loop, we run its loop and trace the seam beneath it. Agent maps to a task, each tool maps to a task, each model turn maps to a trace.
What you get
• Crash-and-resume: a crash mid-run replays completed model turns and cache-hits the tool calls on retry with no rework, no re-billing.
• Tools as first-class Flyte actions: each tool runs in its own container with its own resources and caching, and fans out in parallel.
• Observability: a per-run timeline (assistant turns, tool calls/results, token-usage summary) rendered into the task report.
• Cross-run memory: continue a conversation across separate runs and workers with a shared memory_key.
• Human-in-the-loop: gate a tool on flyte.new_condition -- a durable suspend that survives restarts, for approvals or for a customer sharing details mid-conversation.
• Native multi-agent: each SDK's own handoff / sub-agent pattern (OpenAI handoffs, Claude subagents, ADK transfer, Mistral handoffs) runs durably on Flyte.
Attempt 1
Screenshot 2026-06-29 at 10 01 59 PM
Attempt 2 (after the crash)
Screenshot 2026-06-29 at 10 02 31 PM
flyteorg/flyte-sdkacoustic-carpenter-78188
06/29/2026, 4:07 PMacoustic-carpenter-78188
07/08/2026, 6:30 AM