Prototype generic JSON durable agent server - #477
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 a supplied generic JSON server. It has the same runtime capabilities as the decorator app in #476, but the developer constructs and configures the server explicitly.
Developer contract
The server owns the fixed JSON
/invocationsprotocol, background and blocking execution, heartbeat recovery, final-result storage, polling, and cursor-based SSE replay.Durable CUJ in the cookbook
background=trueandstream=true.requires_actionresult.AsyncDatabricksSession.context.emit().on_resumecallback./invocationsprotocolon_resumecontext.emit()How do you know it works?
27focused runtime/store/server tests pass.openai-agents==0.19.4; no live model call was made.Background and streaming client contract
background=true, stream=falsereturns202; the server stores status/output and the client pollsGET /invocations/{id}.context.emit();stream=truereturns SSE and the client reconnects with?after=<event-id>./invocationsenvelope; the in-processRunner.run_streamed()loop remains inside the registered handler./invocations;thread_idis passed assession_id. Preservinglanggraph_sdkrequires a protocol adapter.The cookbook README includes concrete OpenAI Agents SDK and LangGraph before/after client snippets for
background=true, stream=true.