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.1.tar.gz (24.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.1-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_agents_dbos-0.4.1.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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.1.tar.gz
Algorithm Hash digest
SHA256 d35a4d5c95c15518ea802bd3c99f2f3ee2bf7e23490d00cecd2dfc1052349676
MD5 2fd40947c20a97e38b19a587575fc46d
BLAKE2b-256 77457689b9b6b815cee171afd2e99d0b68f24a802164a67cbda613f9eab5d0d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_agents_dbos-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15e8eed8652b19cd8718cf140926e5b50a2d7a21562b2cc778c3d0b9cc55f4b8
MD5 d877456d4f358c51da47506956762554
BLAKE2b-256 c9e7935c8ebf010aa6e961ee09881a1cadc740ae15a6ee87571196495ba18ea5

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