Add polyglot exports for Aspire.Hosting.OpenAI#14908
Merged
sebastienros merged 3 commits intorelease/13.2from Mar 4, 2026
Merged
Add polyglot exports for Aspire.Hosting.OpenAI#14908sebastienros merged 3 commits intorelease/13.2from
sebastienros merged 3 commits intorelease/13.2from
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14908Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14908" |
76 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
Adds polyglot (capability) exports for Aspire.Hosting.OpenAI and introduces a TypeScript validation AppHost to exercise the generated bindings.
Changes:
- Annotates OpenAI hosting extension methods with
AspireExportfor polyglot hosts. - Adds a TypeScript ValidationAppHost scaffold (tsconfig/package/apphost/run config).
- Adds generated TypeScript SDK/modules used by the validation host.
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Aspire.Hosting.OpenAI/OpenAIExtensions.cs | Adds AspireExport attributes to expose OpenAI capabilities to polyglot hosts. |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/tsconfig.json | TypeScript compiler configuration for the validation AppHost. |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/package.json | Node/TS project manifest for the validation AppHost. |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/apphost.ts | Minimal TypeScript AppHost entrypoint using the generated SDK. |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/apphost.run.json | Local run profile/environment settings for the validation AppHost. |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/.modules/transport.ts | JSON-RPC transport layer and handle/callback/cancellation plumbing for the TS SDK. |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/.modules/base.ts | Core TS SDK base types (ResourceBuilderBase, ReferenceExpression, collection wrappers). |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/.modules/aspire.ts | Generated capability-based Aspire TypeScript SDK including OpenAI surface area. |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/.modules/.codegen-hash | Records the codegen hash for the generated TS modules. |
| playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/.aspire/settings.json | Declares this playground host as a TypeScript/nodejs Aspire app host and lists packages. |
Files not reviewed (1)
- playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/package-lock.json: Language not supported
playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/.modules/base.ts
Show resolved
Hide resolved
playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/.modules/transport.ts
Show resolved
Hide resolved
playground/polyglot/TypeScript/Aspire.Hosting.OpenAI/ValidationAppHost/.modules/transport.ts
Show resolved
Hide resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
🎬 CLI E2E Test RecordingsThe following terminal recordings are available for commit
📹 Recordings uploaded automatically from CI run #22646728369 |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
davidfowl
approved these changes
Mar 4, 2026
Copilot AI
pushed a commit
that referenced
this pull request
Mar 10, 2026
* Add polyglot exports for Aspire.Hosting.OpenAI Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Refine AspireExport descriptions for polyglot-openai Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Use generated methods in openai apphost Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
Related to #14069