Fix Selectable Tools - #100
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request improves the handling and visibility of AI tools and agents, ensuring that only user-selectable tools and agents appear in UI pickers and public APIs, while hidden and system-managed components remain accessible only where appropriate. It introduces new APIs and updates documentation to clarify these behaviors, and tightens enforcement across the codebase and server handlers.
Key changes:
Core logic and API enhancements
IsSelectable()toAIToolDefinitionEntryandGetSelectableTools()toAIToolDefinitionOptions, enabling clear separation of selectable tools from hidden/system tools. [1] [2]ChatInteractionHubBase.ApplyCoreSettingsAsyncto persist only selectable tools and user-selectable agents, filtering out hidden/system ones during chat interaction setup. [1] [2]IsUserSelectableAgent()extension to exclude both always-available and system agents from UI selection.Server handler restrictions
Documentation and release notes
These changes collectively ensure clearer boundaries between user-facing and internal AI components, improving security, maintainability, and user experience.