Skip to content

Add Agents SDK DBOS integration to the docs for long-running agents and human-in-the-loop#2418

Merged
seratch merged 1 commit intoopenai:mainfrom
qianl15:qian/dbos-integration
Feb 4, 2026
Merged

Add Agents SDK DBOS integration to the docs for long-running agents and human-in-the-loop#2418
seratch merged 1 commit intoopenai:mainfrom
qianl15:qian/dbos-integration

Conversation

@qianl15
Copy link
Contributor

@qianl15 qianl15 commented Feb 4, 2026

This PR updates the docs to mention DBOS OpenAI Agents integration for long-running and human-in-the-loop agents. Closes #1711

DBOS is a durable execution library, where its only dependency is a database (SQLite or Postgres).

The integration adds a DBOSRunner as a drop-in replacement for Runner, which allows agents to be executed from DBOS workflows and persists LLM calls so they can be deterministically replayed after failures or restarts.

Example (async):

@function_tool
@DBOS.step()
async def get_weather(city: str) -> str:
    ...

agent = Agent(name="weather", tools=[get_weather])

# Call the agent from a DBOS workflow
@DBOS.workflow()
async def run_agent(user_input: str) -> str:
    result = await DBOSRunner.run(agent, user_input)
    return str(result.final_output)

DBOS also supports a synchronous execution model:

@function_tool
@DBOS.step()
def get_weather(city: str) -> str:
    ...

agent = Agent(name="weather", tools=[get_weather])

# Call the agent from a DBOS workflow
@DBOS.workflow()
def run_agent(user_input: str) -> str:
    result = DBOSRunner.run_sync(agent, user_input)
    return str(result.final_output)

Links:

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 4, 2026
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@seratch seratch merged commit 6601c1e into openai:main Feb 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native durable agents support

2 participants