Skip to content

.NET: DevUI not starting a conversation (404 error) #2445

@Dazfl

Description

@Dazfl

I have tried to wire up DevUI to my dotnet application but I am getting the following error:

Image

I have a asp.net core web api application. I have configured the chat client as ('openai-chat' is configured in Aspire AppHost):

var openai = builder.AddOpenAIClient("openai-chat")
    .AddChatClient()
    .UseFunctionInvocation()
    .UseOpenTelemetry(configure: c => c.EnableSensitiveData = builder.Environment.IsDevelopment());

and my agent is configured as:

builder.AddAIAgent("VendorAgent", (serviceProvider, key) =>
{
    var chatClient = serviceProvider.GetRequiredService<IChatClient>();

    return new ChatClientAgent(
        chatClient,
        name: "JokeAgent",
        instructions: "You are a world-class dad joke teller. Tell me your best dad joke.",
        services: serviceProvider);
});

DevUI find the agent just fine, I just can't have a conversation with the agent. What else am I missing

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions