Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions dotnet/src/Microsoft.Agents.AI.DevUI/DevUIExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public static IHostApplicationBuilder AddDevUI(this IHostApplicationBuilder buil
{
ArgumentNullException.ThrowIfNull(builder);
builder.Services.AddOpenAIConversations();
builder.Services.AddOpenAIResponses();

return builder;
}
Expand All @@ -34,7 +33,6 @@ public static IEndpointConventionBuilder MapDevUI(
group.MapDevUI(pattern: "/devui");
group.MapEntities();
group.MapOpenAIConversations();
Copy link
Member

Choose a reason for hiding this comment

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

Presumably, we should remove builder.Services.AddOpenAIConversations(); and group.MapOpenAIConversations(); too if we follow this logic; right?

Ideally MapDevUI would validate that its needed services and mappings were in place and throw an InvalidOperationException if not. But I think that could come later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I think so. And agreed on providing a good error diagnostic.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think MapEntites() though is more Dev UI specific.

group.MapOpenAIResponses();
return group;
Copy link
Member

Choose a reason for hiding this comment

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

We should also be adding the bits we remove to dotnet\samples\GettingStarted\DevUI\DevUI_Step01_BasicUsage\Program.cs so that the sample still works

}

Expand Down
Loading