Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add FunctionInvokingChatClient.AdditionalTools#6661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
stephentoub merged 2 commits intodotnet:mainfromstephentoub:additionaltools
Jul 29, 2025

Conversation

@stephentoub
Copy link
Member

@stephentoubstephentoub commentedJul 28, 2025
edited by dotnet-policy-servicebot
Loading

Microsoft Reviewers:Open in CodeFlow

CopilotAI review requested due to automatic review settingsJuly 28, 2025 15:53
@stephentoubstephentoub requested a review froma team as acode ownerJuly 28, 2025 15:53
@github-actionsgithub-actionsbot added the area-aiMicrosoft.Extensions.AI libraries labelJul 28, 2025
Copy link
Contributor

CopilotAI 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 theFunctionInvokingChatClient through a newAdditionalTools property. This allows the client to invoke tools that weren't provided in theChatOptions.Tools collection but are available through pre-configured additional tools.

  • Introduces theAdditionalTools property toFunctionInvokingChatClient
  • Updates function lookup logic to search bothChatOptions.Tools andAdditionalTools
  • 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.

FileDescription
FunctionInvokingChatClient.csAdds theAdditionalTools property and updates tool lookup logic to search both tool collections
FunctionInvokingChatClientTests.csAdds tests for the newAdditionalTools functionality and tool precedence behavior
Microsoft.Extensions.AI.jsonAdds the newAdditionalTools property to the API surface
Microsoft.Extensions.AI.Tests.csprojSuppresses an additional analyzer warning (S104)

…nvokingChatClient.csCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@stephentoubstephentoub merged commitcb57095 intodotnet:mainJul 29, 2025
6 checks passed
@stephentoubstephentoub deleted the additionaltools branchJuly 29, 2025 15:04
This was referencedAug 14, 2025
This was referencedAug 27, 2025
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 29, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

Copilot code reviewCopilotCopilot left review comments

@eiriktsarpaliseiriktsarpaliseiriktsarpalis approved these changes

+1 more reviewer

@rogerbarretorogerbarretorogerbarreto approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@stephentoubstephentoub

Labels

area-aiMicrosoft.Extensions.AI libraries

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@stephentoub@eiriktsarpalis@rogerbarreto

[8]ページ先頭

©2009-2025 Movatter.jp