This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Agent Integrations

Durable Execution for Google ADK, Claude Agent SDK, CrewAI, LangChain Deep Agents, HolmesGPT, LangGraph, OpenAI Agents SDK, Pydantic AI, Strands Agents, and Microsoft Agent Framework

    What are community agent integrations in Dapr?

    Agents fail. Pods get evicted, processes crash, laptops die mid-run — and without durable execution, that failure means lost context, repeated tool calls, burned tokens, and an agent that has to start over from zero. Diagrid maintains an open-source library that fixes this for good: it drops into your existing agent code and wraps it in Dapr Workflows, turning every LLM call and every tool execution into a durable, checkpointed activity — with automatic failure detection and recovery, at scale, for about three lines of code:

    # 1. Wrap your existing agent — no rewrite required
    runner = DaprWorkflowAgentRunner(agent=agent, name="my-agent")
    # 2. Start the durable workflow runtime
    runner.start()
    # 3. Run it — every step is now checkpointed and crash-proof
    async for event in runner.run_async(user_message="...", session_id="..."):
        ...
    

    These extensions are community-built and maintained by Diagrid on top of Dapr Workflow — they are not part of the core Dapr project, but are open source under diagridio/python-ai. Questions, bugs, and demos are always welcome in the Diagrid Community Discord.

    Supported frameworks

    FrameworkWhat becomes durableInstall
    Google ADKEvery LLM call and tool execution in an ADK agentpip install "diagrid[adk]"
    Claude Agent SDKEvery Anthropic API turn and tool call, with parallel tool_use fan-outpip install "diagrid[claude_agents]"
    CrewAIEvery crew/task LLM call and tool executionpip install "diagrid[crewai]"
    LangChain Deep AgentsDeep Agents graphs (built on LangGraph)pip install "diagrid[deepagents]"
    HolmesGPTEvery investigation iteration and tool call, plus durable human-in-the-loop approvalspip install "diagrid[holmesgpt]"
    LangGraphEvery node execution in a graphpip install "diagrid[langgraph]"
    OpenAI Agents SDKEvery LLM call and tool executionpip install "diagrid[openai_agents]"
    Pydantic AIEvery LLM call and tool executionpip install "diagrid[pydantic_ai]"
    Strands AgentsEvery tool call in a Strands agent looppip install "diagrid[strands]"
    Microsoft Agent FrameworkEvery agent invocation run as a Dapr Workflow activitydotnet add package Diagrid.AI.Microsoft.AgentFramework