Skip to content

Conversation

@tommasodotNET
Copy link

@tommasodotNET tommasodotNET commented Feb 9, 2026

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 AppHost
  • WithAgentService() fluent API — Connects agent services to the DevUI with optional metadata
  • In-process aggregator — A lightweight Kestrel server running inside the AppHost that:
    • Serves the DevUI frontend from embedded resources (no external container required)
    • Aggregates /v1/entities listings across all configured backends
    • Routes requests to the correct backend based on entity ID prefix
    • Streams SSE responses for real-time agent output

Usage

var writerAgent = builder.AddProject<Projects.WriterAgent>("writer-agent");
var editorAgent = builder.AddProject<Projects.EditorAgent>("editor-agent");

var devui = builder.AddDevUI("devui")
    .WithAgentService(writerAgent)
    .WithAgentService(editorAgent)
    .WaitFor(writerAgent)
    .WaitFor(editorAgent);

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings February 9, 2026 18:43
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation .NET labels Feb 9, 2026
@github-actions github-actions bot changed the title Features/3768-devui-aspire-integration .NET: Features/3768-devui-aspire-integration Feb 9, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: [Feature]: Add Aspire DevUI Integration

2 participants