Skip to content

.NET: AzureAI Package - Skip tool validation when UseProvidedChatClientAsIs is true - #4389

Merged
Roger Barreto (rogerbarreto) merged 5 commits into
microsoft:mainfrom
rogerbarreto:issues/3855-net-bug-tool-calls-do-not-work-without-providing-them-in-tools
Mar 2, 2026
Merged

Roger Barreto (rogerbarreto) merged 5 commits into
microsoft:mainfrom
rogerbarreto:issues/3855-net-bug-tool-calls-do-not-work-without-providing-them-in-tools

Conversation

@rogerbarreto

@rogerbarreto Roger Barreto (rogerbarreto) commented Mar 2, 2026 •

Copy link
Copy Markdown
Member

Motivation and Context

When GetAIAgentAsync is called with ChatClientAgentOptions.UseProvidedChatClientAsIs = true, skip requireInvocableTools validation so users can handle function calls manually via custom ChatClient middleware without needing to provide matching AIFunction tools.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: [Bug]: Tool calls do not work without providing them in tools array

5 participants