evalstate/sandbox-testing-2 / hf-mcp-server /packages /app /dist /server /utils /tool-selection-strategy.d.ts
evalstate's picture
download
raw
1.2 kB
import type { AppSettings, SpaceTool } from '../../shared/settings.js';
import type { McpApiClient } from './mcp-api-client.js';
export declare enum ToolSelectionMode {
BOUQUET_OVERRIDE = "bouquet_override",
MIX = "mix",
EXTERNAL_API = "external_api",
INTERNAL_API = "internal_api",
FALLBACK = "fallback"
}
export interface ToolSelectionContext {
headers: Record<string, string> | null;
userSettings?: AppSettings;
hfToken?: string;
}
export declare const AUTHENTICATED_BUILTIN_TOOL_IDS: readonly ["create_repo"];
interface ToolSelectionResult {
mode: ToolSelectionMode;
enabledToolIds: string[];
reason: string;
baseSettings?: AppSettings;
mixedBouquet?: string[];
gradioSpaceTools?: SpaceTool[];
}
export declare class ToolSelectionStrategy {
private apiClient;
constructor(apiClient: McpApiClient);
private parseGradioEndpoints;
private applySearchEnablesFetch;
private getProxyToolNames;
private appendProxyTools;
private applyAuthVisibility;
selectTools(context: ToolSelectionContext): Promise<ToolSelectionResult>;
private getUserSettings;
}
export {};
//# sourceMappingURL=tool-selection-strategy.d.ts.map

Xet Storage Details

Size:
1.2 kB
·
Xet hash:
23fe0c0cde063435bc2b8264fe7f71ceca010ae2d23baee3d16f2efe35b12302

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.