LlamaAgents DBOS Runtime
DBOS durable runtime plugin for LlamaIndex Workflows.
Installation
pip install llama-agents-dbos
Usage
import asyncio
from llama_agents.dbos import DBOSRuntime
from dbos import DBOS, DBOSConfig
from workflows import Workflow, step, StartEvent, StopEvent
# Configure DBOS
config: DBOSConfig = {
"name": "my-app",
"system_database_url": "postgresql://...",
}
DBOS(config=config)
# Create runtime and workflow
runtime = DBOSRuntime()
class MyWorkflow(Workflow):
@step
async def my_step(self, ev: StartEvent) -> StopEvent:
return StopEvent(result="done")
workflow = MyWorkflow(runtime=runtime)
# launch_sync() works outside async contexts; use await runtime.launch() inside one
runtime.launch_sync()
async def main():
result = await workflow.run()
asyncio.run(main())
Features
- Durable workflow execution backed by DBOS
- Automatic step recording and replay
- Distributed workers and recovery support
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
llama_agents_dbos-0.5.0.tar.gz
(24.3 kB
view details)
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 llama_agents_dbos-0.5.0.tar.gz.
File metadata
- Download URL: llama_agents_dbos-0.5.0.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7339c3d9de1afb2db1b94c1611817c1e6b4b255314776299913d634135a6c93
|
|
| MD5 |
3092bbf2c21d18af38490913bd5f50f6
|
|
| BLAKE2b-256 |
1f9b50ad1f03c554298c1f503afec7c046c5c39e3acfe6ccad81109b426ace1a
|
File details
Details for the file llama_agents_dbos-0.5.0-py3-none-any.whl.
File metadata
- Download URL: llama_agents_dbos-0.5.0-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4b513589a5b289f3024f12364a26cd59f554ec04e9ac2df23b1f0bec54cb2cb
|
|
| MD5 |
3794292afca208d5d7ce196604312702
|
|
| BLAKE2b-256 |
3435f2f40e50026cbad9023582f755b933937b67a222cbc28b587ad16ffa17f9
|