Skip to content

Commit

Permalink
Remove use tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrandvd committed Jan 13, 2025
1 parent 04ce090 commit 72dd013
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 38 deletions.
11 changes: 7 additions & 4 deletions demos/Demo.TddShop/Demo.TddShop/ShopBrain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ public IChatClient CreateChatClient()
new System.ClientModel.ApiKeyCredential(azureKey)
).AsChatClient(deployment);

var builder =
var builder =
new ChatClientBuilder(azureChatClient)
.UseTools([
AIFunctionFactory.Create(GetFoodMenu)
]);
.ConfigureOptions(options =>
{
options.Tools ??= [];
options.Tools.Add(AIFunctionFactory.Create(GetFoodMenu));
})
.UseFunctionInvocation();

var client = builder.Build();

Expand Down
34 changes: 0 additions & 34 deletions demos/Demo.TddShop/Demo.TddShop/UseToolExtension.cs

This file was deleted.

0 comments on commit 72dd013

Please sign in to comment.