Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flyteplugins_agents_deepagents-2.5.20-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file flyteplugins_agents_deepagents-2.5.20-py3-none-any.whl.

File metadata

File hashes

Hashes for flyteplugins_agents_deepagents-2.5.20-py3-none-any.whl
Algorithm Hash digest
SHA256 074ee827dce0a8e433d7a6f98e09b603199767ad4dd4e4215d7a1e717f2fa552
MD5 9c1fa47245d76299f2c2585b128bca2b
BLAKE2b-256 94be4cae735b0294f0db8cd3f28d12706d7874735223949802d80f1644c87d75

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page