Merge from main

This commit is contained in:
Dmytro Struk
2025-11-11 18:28:38 -08:00
Unverified
parent 519bc9da0a
commit b8206a85d7
231 changed files with 19656 additions and 4140 deletions
@@ -64,13 +64,14 @@ internal static class Program
return AgentWorkflowBuilder.BuildSequential(workflowName: key, agents: agents);
}).AddAsAIAgent();
if (builder.Environment.IsDevelopment())
{
builder.AddDevUI();
}
builder.Services.AddOpenAIResponses();
builder.Services.AddOpenAIConversations();
var app = builder.Build();
app.MapOpenAIResponses();
app.MapOpenAIConversations();
if (builder.Environment.IsDevelopment())
{
app.MapDevUI();
@@ -0,0 +1,13 @@
{
"profiles": {
"DevUI_Step01_BasicUsage": {
"commandName": "Project",
"launchUrl": "devui",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:50516;http://localhost:50518"
}
}
}
@@ -63,17 +63,23 @@ To add DevUI to your ASP.NET Core application:
.AddAsAIAgent();
```
3. Add DevUI services and map the endpoint:
3. Add OpenAI services and map the endpoints for OpenAI and DevUI:
```csharp
builder.AddDevUI();
// Register services for OpenAI responses and conversations (also required for DevUI)
builder.Services.AddOpenAIResponses();
builder.Services.AddOpenAIConversations();
var app = builder.Build();
app.MapDevUI();
// Add required endpoints
app.MapEntities();
// Map endpoints for OpenAI responses and conversations (also required for DevUI)
app.MapOpenAIResponses();
app.MapOpenAIConversations();
if (builder.Environment.IsDevelopment())
{
// Map DevUI endpoint to /devui
app.MapDevUI();
}
app.Run();
```