Skip to content

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Jul 28, 2025

Microsoft Reviewers: Open in CodeFlow

@Copilot Copilot AI review requested due to automatic review settings July 28, 2025 15:53
@stephentoub stephentoub requested a review from a team as a code owner July 28, 2025 15:53
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Jul 28, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for additional tools to the FunctionInvokingChatClient through a new AdditionalTools property. This allows the client to invoke tools that weren't provided in the ChatOptions.Tools collection but are available through pre-configured additional tools.

  • Introduces the AdditionalTools property to FunctionInvokingChatClient
  • Updates function lookup logic to search both ChatOptions.Tools and AdditionalTools
  • Adds comprehensive tests to verify the new functionality and tool precedence

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
FunctionInvokingChatClient.cs Adds the AdditionalTools property and updates tool lookup logic to search both tool collections
FunctionInvokingChatClientTests.cs Adds tests for the new AdditionalTools functionality and tool precedence behavior
Microsoft.Extensions.AI.json Adds the new AdditionalTools property to the API surface
Microsoft.Extensions.AI.Tests.csproj Suppresses an additional analyzer warning (S104)

@stephentoub stephentoub merged commit cb57095 into dotnet:main Jul 29, 2025
6 checks passed
@stephentoub stephentoub deleted the additionaltools branch July 29, 2025 15:04
This was referenced Aug 14, 2025
This was referenced Aug 27, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Aug 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai Microsoft.Extensions.AI libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants