-
Notifications
You must be signed in to change notification settings - Fork 852
Closed
Description
I have tried to wire up DevUI to my dotnet application but I am getting the following error:
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