Diagrid namespace package
Project description
Durable Workflows for AI agents
Make your AI agents resilient to failure and outages
The diagrid package is an extension SDK for the open-source Dapr project to build durable, fault-tolerant AI agents. It integrates seamlessly with popular agent frameworks, wrapping them in Dapr Workflows to ensure agents can recover from failures, persist state across restarts, and scale effectively.
Get started with Diagrid Catalyst for free.
Community
Have questions, hit a bug, or want to share what you're building? Join the Diagrid Community Discord to connect with the team and other users.
Features
- Multi-Framework Support: Native integrations for LangGraph, CrewAI, Google ADK, Strands, PydanticAI and OpenAI Agents.
- Durability: Agent state is automatically persisted in the database of your choice. If your process crashes, the agent resumes from the last successful step.
- Fault Tolerance: Built-in retries and error handling powered by Dapr.
- Observability: Deep insights into agent execution, tool calls, and state transitions.
Installation
Install the base package along with the extension for your chosen framework:
# For LangGraph
pip install "diagrid[langgraph]"
# For CrewAI
pip install "diagrid[crewai]"
# For Google ADK
pip install "diagrid[adk]"
# For Strands
pip install "diagrid[strands]"
# For Pydantic AI
pip install "diagrid[pydantic_ai]"
# For OpenAI Agents
pip install "diagrid[openai_agents]"
# For LangChain Deep Agents
pip install "diagrid[deepagents]"
Prerequisites
- Python: 3.11 or higher
Getting Started with Diagrid Catalyst
Diagrid Catalyst is a fully managed workflow engine for AI agents, built on the open-source CNCF Dapr Workflow project. It's the easiest way to test the different agentic integrations for free.
See quickstarts to get started in less than 5 minutes.
How It Works
This SDK leverages Dapr Workflows to orchestrate agent execution.
- Orchestration: The agent's control loop is modeled as a workflow.
- Activities: Each tool execution or LLM call is modeled as a durable activity.
- State Store: Dapr saves the workflow state to a configured state store (e.g., Redis, CosmosDB) after every step.
Your code can run anywhere (local machine, Kubernetes, EC2, etc.) while the fully managed workflow engine takes care of the agent's execution state, making it crash-proof and resilient to any outage or failure.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diagrid-0.3.1.tar.gz.
File metadata
- Download URL: diagrid-0.3.1.tar.gz
- Upload date:
- Size: 155.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e63879d05e801e0e45842dad3482135d5394f940748d30f162cd6dd08cb4ce0
|
|
| MD5 |
fa9376ab5d565f2bf20bbff9ba24f8a2
|
|
| BLAKE2b-256 |
2ad52d94a9b56f01781c1013e0b5223c688fcf5be2990b1e3c3ee94045ab7c1f
|
Provenance
The following attestation bundles were made for diagrid-0.3.1.tar.gz:
Publisher:
pypi-release.yaml on diagridio/python-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diagrid-0.3.1.tar.gz -
Subject digest:
5e63879d05e801e0e45842dad3482135d5394f940748d30f162cd6dd08cb4ce0 - Sigstore transparency entry: 1440044462
- Sigstore integration time:
-
Permalink:
diagridio/python-ai@df7ffd7f129a81d4706755f10895278d8eab768c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/diagridio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yaml@df7ffd7f129a81d4706755f10895278d8eab768c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file diagrid-0.3.1-py3-none-any.whl.
File metadata
- Download URL: diagrid-0.3.1-py3-none-any.whl
- Upload date:
- Size: 214.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ec9498c975d0b731789a9bb097c06e2e2d1f8769a64f20b5535cc5dbbb2d081
|
|
| MD5 |
41d0c42e039f81de91039717e8127c73
|
|
| BLAKE2b-256 |
b77d30d9e9f3d1613dd88cf34f71d0275d305aa978808ea5b2e4fdb58cc5cdea
|
Provenance
The following attestation bundles were made for diagrid-0.3.1-py3-none-any.whl:
Publisher:
pypi-release.yaml on diagridio/python-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diagrid-0.3.1-py3-none-any.whl -
Subject digest:
2ec9498c975d0b731789a9bb097c06e2e2d1f8769a64f20b5535cc5dbbb2d081 - Sigstore transparency entry: 1440044473
- Sigstore integration time:
-
Permalink:
diagridio/python-ai@df7ffd7f129a81d4706755f10895278d8eab768c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/diagridio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yaml@df7ffd7f129a81d4706755f10895278d8eab768c -
Trigger Event:
workflow_dispatch
-
Statement type: