Prototype transport-neutral durable runtime library - #475
Draft
shivam5 wants to merge 4 commits into
Draft
Conversation
Contributor
Author
|
Interface comparison set:
The first three use the same tiny progress agent and the same run/heartbeat/event durability semantics so the developer-facing differences are directly comparable. |
This was referenced Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What did you change, and why?
This is a draft interface prototype for the transport-neutral library option. It is intentionally an alternative to the provided app/server interfaces, not a proposed final API.
Developer contract
The library stores requests, results, heartbeats, attempts, and ordered events. The developer owns FastAPI lifecycle, request mapping,
202responses, polling, SSE formatting, cursor handling, and recovery behavior insiderun_agent.Durable CUJ in the cookbook
requires_action.AsyncDatabricksSession.context.emit()and exposed by developer-authored SSE routes.context.is_recovery=True.This prototype makes the cost of the library approach explicit: it has the least protocol coupling and the most developer integration work.
How do you know it works?
23focused runtime/store tests pass.openai-agents==0.19.4; no live model call was made.Background and streaming client contract
202, run IDs, polling routes, and result mapping.context.emit()andruntime.events()provide durable storage; the developer defines SSE, reconnect cursors, and client behavior./runsenvelope. The library does not mandate the migration.langgraph_sdkcan remain unchanged only if the developer implements its native routes over the runtime; the cookbook instead uses/runs.The cookbook README includes concrete OpenAI Agents SDK and LangGraph before/after client snippets for
background=true, stream=true.