Skip to content

Log a warning when AI tools are excluded by authorization - #116

Merged
MikeAlhayek merged 1 commit into
mainfrom
fix/ai-tool-authorization-logging
Jul 28, 2026
Merged

Log a warning when AI tools are excluded by authorization#116
MikeAlhayek merged 1 commit into
mainfrom
fix/ai-tool-authorization-logging

Conversation

@MikeAlhayek

Copy link
Copy Markdown
Member

Tool authorization failures were only reported at Debug level, so a user whose request silently lost every tool had no way to tell that the model answered without them.

  • FunctionInvocationAICompletionServiceHandler now collects the denied tool names and emits a single Warning after the entries are evaluated, keeping the existing per-tool Debug entry for detailed diagnostics.
  • Correct the documented IAIToolAccessEvaluator signature in the tools documentation and describe the exclusion and logging behavior.

Tool authorization failures were only reported at Debug level, so a user
whose request silently lost every tool had no way to tell that the model
answered without them.

- `FunctionInvocationAICompletionServiceHandler` now collects the denied
  tool names and emits a single Warning after the entries are evaluated,
  keeping the existing per-tool Debug entry for detailed diagnostics.
- Correct the documented `IAIToolAccessEvaluator` signature in the tools
  documentation and describe the exclusion and logging behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MikeAlhayek
MikeAlhayek merged commit f02105b into main Jul 28, 2026
10 checks passed
@MikeAlhayek
MikeAlhayek deleted the fix/ai-tool-authorization-logging branch July 28, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant