Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

flyteplugins-agents-deepagents

Run Deep Agents — LangChain's agent harness with built-in planning, a virtual filesystem, and subagents — durably on Flyte.

pip install flyteplugins-agents-deepagents

You keep writing Deep Agents code; Flyte is the durable runtime underneath:

  • Tools are Flyte tasks. Stack @tool on @env.task and each tool call the agent (or any of its subagents) makes runs as a durable child action — its own container/resources, retries, and caching.
  • Model turns are replayable. On the builder path (or by wrapping your own model in DurableChatModel), every model turn is recorded via flyte.trace, so a crashed/retried run replays completed turns instead of re-calling (and re-billing) the model.
  • Memory spans runs. run_agent(..., memory_key=...) persists the conversation and the agent's virtual filesystem to a durable keyed store, so a later run with the same key picks up both.
import flyte
from flyteplugins.agents.deepagents import run_agent, tool

env = flyte.TaskEnvironment("deep-agent")

@tool
@env.task(cache="auto", retries=3)
async def search_web(query: str) -> str:
    """Search the web for a query."""
    ...

@env.task(report=True, retries=3)
async def research_agent(question: str) -> str:
    return await run_agent(
        question,
        tools=[search_web],
        instructions="You are an expert researcher.",
        model="anthropic:claude-sonnet-4-6",
        subagents=[{
            "name": "critic",
            "description": "Critiques draft answers.",
            "system_prompt": "You are a ruthless critic.",
        }],
    )

To bring your own agent, build it with create_deep_agent (attaching @tool-wrapped tasks natively) and pass it as run_agent(agent=...); wrap the model in DurableChatModel(inner=...) to keep durable model turns on that path. See examples/ for the full patterns.

Metadata

Release files for flyteplugins-agents-deepagents 2.12.5a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for flyteplugins-agents-deepagents 2.12.5a0
File Interpreter ABI Platform Actions
flyteplugins_agents_deepagents-2.12.5a0-py3-none-any.whl Python 3 none any Details for flyteplugins_agents_deepagents-2.12.5a0-py3-none-any.whl

Release files / flyteplugins_agents_deepagents-2.12.5a0-py3-none-any.whl

Download URL flyteplugins_agents_deepagents-2.12.5a0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
042d17bd522df3aafa9e0ffa89bbfa4678464f50c554d42b889dd3285454f772
BLAKE2b-256 checksum
How to use checksums
94163a98c80301a6b7fc2a1df17119a353a80da748df7f492833afeeb562449f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Security for flyteplugins-agents-deepagents 2.12.5a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page