Durable OpenAI Agents
Durable execution for the OpenAI Agents SDK using DBOS.
Installation
pip install dbos-openai-agents
Usage
Call your agent using DBOSRunner.run() from a @DBOS.workflow().
Annotate tool calls and guardrails with @DBOS.step().
import asyncio
from agents import Agent, function_tool
from dbos import DBOS, DBOSConfig
from dbos_openai_agents import DBOSRunner
# Decorate tool calls and guardrails with @DBOS.step() for durable execution
@function_tool
@DBOS.step()
async def get_weather(city: str) -> str:
"""Get the weather for a city."""
return f"Sunny in {city}"
agent = Agent(name="weather", tools=[get_weather])
# Use DBOSRunner to call your agent from a workflow
@DBOS.workflow()
async def run_agent(user_input: str) -> str:
result = await DBOSRunner.run(agent, user_input)
return str(result.final_output)
async def main():
output = await run_agent("How is the weather in San Francisco")
print(output)
if __name__ == "__main__":
config: DBOSConfig = {
"name": "my-agent",
}
DBOS(config=config)
DBOS.launch()
asyncio.run(main())
DBOSRunner.run() is a drop-in replacement for Runner.run() with the same arguments.
It must be called from within a @DBOS.workflow().
Metadata
Release files for dbos-openai-agents 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dbos_openai_agents-0.3.0.tar.gz | 148.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dbos_openai_agents-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 153.6 kB
Release files / dbos_openai_agents-0.3.0.tar.gz
| Download URL | dbos_openai_agents-0.3.0.tar.gz |
|---|---|
| Size | 148.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc8da5cb9b652ccc4b7f3da419d655d793e4a3f9ff1ca6b576a40a210448ee48
|
|
BLAKE2b-256 checksum How to use checksums |
70383fe529a9539e5a48eb7caa8558e6ec2c745050ac33f8d4c4c0bea4ca7d13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.
Transparency logRelease files / dbos_openai_agents-0.3.0-py3-none-any.whl
| Download URL | dbos_openai_agents-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13609dab5c868e03d25096282adbb58e7abbc33a204eadb9fb01c0f452b5f156
|
|
BLAKE2b-256 checksum How to use checksums |
bcf968b5f8a25efd03f33234ae29b872117a0cfd4465827f3f18c7d9d7b947bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.
Transparency logSecurity for dbos-openai-agents 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for dbos_openai_agents-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.