Skip to content

Commit 8f63547

Browse files
committed
Cleanup and enhancements
1 parent af99e2b commit 8f63547

File tree

4 files changed

+626
-1088
lines changed

4 files changed

+626
-1088
lines changed

src/Libraries/Microsoft.Extensions.AI/ToolGrouping/ChatClientBuilderToolGroupingExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public static class ChatClientBuilderToolGroupingExtensions
1919
public static ChatClientBuilder UseToolGrouping(this ChatClientBuilder builder, Action<ToolGroupingOptions>? configure = null)
2020
{
2121
_ = Throw.IfNull(builder);
22-
var opts = new ToolGroupingOptions();
23-
configure?.Invoke(opts);
24-
return builder.Use(inner => new ToolGroupingChatClient(inner, opts));
22+
var options = new ToolGroupingOptions();
23+
configure?.Invoke(options);
24+
return builder.Use(inner => new ToolGroupingChatClient(inner, options));
2525
}
2626
}

0 commit comments

Comments
 (0)