Skip to main content

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


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.4.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

llama_agents_dbos-0.4.0-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file llama_agents_dbos-0.4.0.tar.gz.

File metadata

  • Download URL: llama_agents_dbos-0.4.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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

Hashes for llama_agents_dbos-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5989a95ea26c161a92212a6ee85a979b80f172a9936b62e6ef606f11f4c58093
MD5 3cd3b4c9d8f73b3d9d75106783801229
BLAKE2b-256 6d74f84e4ea7e68ae6acddc17f4548a0836d60bef439dd9acf9b22d108437dc0

See more details on using hashes here.

File details

Details for the file llama_agents_dbos-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: llama_agents_dbos-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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

Hashes for llama_agents_dbos-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c722948f83caeb5ca0176d62938758e7aeae972fa221a15902e4f3dc5cc42915
MD5 913024429d2c1310fe5e3f73b2150667
BLAKE2b-256 c46066f695667cfdb32714cc7e656f5fcaff3ec961aef9a4cee377751151891c

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 Pingdom Monitoring Sentry Error logging StatusPage Status page