Merged
Conversation
HavenDV
added a commit
that referenced
this pull request
Apr 17, 2026
- Add src/libs/tryAGI.OpenAI/build-asyncapi.py that synthesizes
asyncapi.json from openapi.yaml by extracting every
Realtime{Client,Server}Event* schema plus transitive deps
(12 client events, 47 server events, ~105 schemas). Picks up
conversation.item.retrieve, output_audio_buffer.clear, and
transcription_session.update client events plus ~14 new server
events (MCP tool lifecycle, DTMF, input-audio timeout, GA-renamed
conversation.item.added/done, transcription deltas/segments,
output_audio_buffer.*, transcription_session.updated) that the
handcrafted spec was missing.
- Wire python3 build-asyncapi.py into generate.sh with a PyYAML
bootstrap so CI / fresh clones self-install the dep on first run.
- Refresh Generated/ realtime files from the new asyncapi.json.
- Patch hand-written code for the Stainless rename AutoSDK now
propagates (CreateChatCompletionRequest.Value2 →
CreateChatCompletionRequestVariant2, StopConfiguration.Value{1,2}
→ StopConfigurationVariant{1,2}) and disambiguate 5 OpenAiClient
constructor calls that now match both the old 4-param and new
5-param (AutoSDKClientOptions) overloads — unblocks the build
after recent autoupdate runs.
- Add Tests.AsyncApiSpecRoundtrip that runs build-asyncapi.py against
openapi.yaml and fails if the checked-in asyncapi.json drifts —
forces future openapi.yaml updates to also refresh asyncapi.json.
Related AutoSDK issues filed from evaluating the generated Realtime
WebSocket client vs. the manual OpenAISharp:
- #277 server variables + typed Connect overload
- #278 WebSocket subprotocol auth (browser-compatible)
- #279 ReceiveUpdatesAsync multi-frame assembly + error hook
- #280 base64/binary convenience overloads
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Automated OpenAPI spec update