.NET: Features/3768-devui-aspire-integration#3771
.NET: Features/3768-devui-aspire-integration#3771tommasodotNET wants to merge 33 commits intomicrosoft:mainfrom
Conversation
…ommasodotNET/agent-framework into features/3768-devui-aspire-integration
this is not as easy. since the agents are not mapping devui, they don't have a
when it comes to foundry, the apphost explicitly states that the resources are waiting for foundry to be ready. unexpected behaviours on aspire foundry integrations are known to aspire users, and the integration itself is being refactored (microsoft/aspire#14149). that being said, i've updated the apphost to explain foundry behaviour and make it easier for aspire to provision aspire for you, instead of connecting to an existing one. |
There was a problem hiding this comment.
Thanks for the updates, approving this.
One minor thing to keep in mind: the body-swap pattern in DevUIAggregatorHostedService.cs ProxyAndRecordConversationAsync (context.Response.Body = buffer) can silently fail if the response pipeline uses IHttpResponseBodyFeature directly — the conversation ID would never get recorded and routing would fall back to the first backend without any indication. Consider changing the empty catch to log a warning so failures are at least observable.
You seem to have merge conflicts. Test, Fix and I can reapprove as needed.
Motivation and Context
Adds a new Aspire hosting library that provides a DevUI resource for testing and debugging AI agents built with Microsoft Agent Framework.
Closes #3768
Description
This PR introduces
Aspire.Hosting.AgentFramework— an extension library that enables Aspire AppHost projects to spin up a unified DevUI for interacting with multiple agent services during development.Key Features
AddDevUI()extension method — Registers a DevUI resource in the Aspire AppHostWithAgentService()fluent API — Connects agent services to the DevUI with optional metadata/v1/entitieslistings across all configured backendsUsage
Contribution Checklist