1
>
/*---------------------------------------------------------------------------------------------
toolSearchDeferral.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
export { CLIENT_TOOL_SEARCH_REFERENCE_NAME, RUNTIME_TOOL_SEARCH_TOOL_NAME } from '../../common/toolSearchConstants.js';
7
>
8
>
/**
9
>
* Non-deferred client tools, mirroring the Copilot extension allowlist entries
10
>
* that are actually forwarded to Agent Host.
11
>
*/
12
>
export const NON_DEFERRED_CLIENT_TOOL_NAMES: ReadonlySet<string> = new Set<string>([
13
>
'runTests',
14
>
'rename',
15
>
'usages',
16
>
]);
17
>
18
>
/** Mirrors the Copilot extension's string-form `modelSupportsToolSearch`. */
19
>
export function agentHostModelSupportsToolSearch(modelId: string | undefined): boolean {
20
if (!modelId) {
21
return false;