DBOS durable runtime plugin for LlamaIndex Workflows
Project description
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
Project details
Release history Release notifications | RSS feed
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.3.1.tar.gz
(23.0 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.3.1.tar.gz.
File metadata
- Download URL: llama_agents_dbos-0.3.1.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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 |
abf811fff386124856ed00d77c1ab05e774c861f223e400427ddf4f617213abe
|
|
| MD5 |
7a485cab66b12a3d0bda173f49be2205
|
|
| BLAKE2b-256 |
06ca44dbc5014213cd9e6c0ad7cc17b22c13eb77415742fd7a11dbf3aff7683d
|
File details
Details for the file llama_agents_dbos-0.3.1-py3-none-any.whl.
File metadata
- Download URL: llama_agents_dbos-0.3.1-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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 |
b3bc8a580c938470480e3c8801a99b46ed5ee7a12065409ccce1b1a94a48badd
|
|
| MD5 |
8e7e65cd1dff37eadddb068572d6edfb
|
|
| BLAKE2b-256 |
d07d6bbb68989c708a4e5b08b308a4918395fab1d86fc16d5504b1d3d7d2372b
|