Cleanup unecessary usages of AsIChatClient (#4561)

This commit is contained in:
westey
2026-03-10 15:40:44 +00:00
committed by GitHub
parent fbcf1444ee
commit c15f075412
15 changed files with 17 additions and 27 deletions
@@ -82,7 +82,7 @@ ChatClient chatClient = new AzureOpenAIClient(
new DefaultAzureCredential())
.GetChatClient(deploymentName);
ChatClientAgent agent = chatClient.AsIChatClient().AsAIAgent(
ChatClientAgent agent = chatClient.AsAIAgent(
name: "AGUIAssistant",
instructions: "You are a helpful assistant with access to restaurant information.",
tools: tools);