<#1221 agents plugin> Pull request opened by <samh...
# flyte-github
a
#1221 agents plugin Pull request opened by samhita-alla Run agents written with existing agent SDKs: OpenAI Agents SDK, Claude Agent SDK, Mistral Agents, and Google ADK, on Flyte as the durable orchestration runtime underneath. You keep writing agents in each framework's own idioms; Flyte provides replay, automatic retries / self-healing, per-tool containerized execution (CPU/GPU, caching), cross-run memory and observability. No agent loop is reimplemented. Packages Five co-located packages on a shared core: | Package | Underlying SDK | | --------------------------- | ------------------------------ | | flyteplugins-agents-core | shared contract (no SDK) | | flyteplugins-agents-openai | OpenAI Agents SDK | | flyteplugins-agents-claude | Claude Agent SDK | | flyteplugins-agents-mistral | Mistral Agents (mistralai 2.x) | | flyteplugins-agents-google | Google ADK | The shared model Every adapter exposes the same surface:
function_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-sdk
#1221 agents plugin Pull request ready for review by samhita-alla flyteorg/flyte-sdk