Skip to content

AI: How to unbind a built-in tool #16121

Answered by safisa
safisa asked this question in Q&A
Discussion options

You must be logged in to vote

A similar filter, as in the attached discussion above, will resolve this issue:

@injectable()
export class CustomFilterContribution implements FilterContribution {

    registerContributionFilters(registry: ContributionFilterRegistry): void {
        registry.addFilters([Agent, ChatAgent, ToolProvider], [
            contrib => !(contrib instanceof AppTesterChatAgent)
                && !(contrib instanceof LaunchBrowserProvider)
                && !(contrib instanceof CloseBrowserProvider)
                && !(contrib instanceof IsBrowserRunningProvider)
                && !(contrib instanceof QueryDomProvider)
        ]);
    }
}

Thanks

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by safisa
Comment options

You must be logged in to vote
1 reply
@safisa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants