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.2.3.tar.gz (23.0 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.2.3-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_agents_dbos-0.2.3.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

Hashes for llama_agents_dbos-0.2.3.tar.gz
Algorithm Hash digest
SHA256 9d56eb27a8edced0f6ed6ce34166a3f56e005040ac46f80b40a5bd24a333f3bb
MD5 da443638c45417433bbf632cad797719
BLAKE2b-256 b80d4711ef7f71d3779d30dbb0391616c8d9e55ea10b1dd37e11a65cd21caa1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_agents_dbos-0.2.3-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

Hashes for llama_agents_dbos-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97dd124f47bcbcba4ca559e77874a94bdd5a4c9cd54913a01a8c9be4892dc144
MD5 9d04d7ecf47d65eed72e5dc87b48b81e
BLAKE2b-256 7d97125a03a8511f7f0203748e4dcd539f0c08925ff94d1b4273f628c996f9ce

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