refactor: move web_fetch tool name to tool-names.ts (#11174)

This commit is contained in:
Abhi
2025-10-15 22:48:12 -04:00
committed by GitHub
parent 1c090b3654
commit 770ccfd8bc
4 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -28,6 +28,7 @@ import {
logWebFetchFallbackAttempt,
WebFetchFallbackAttemptEvent,
} from '../telemetry/index.js';
import { WEB_FETCH_TOOL_NAME } from './tool-names.js';
const URL_FETCH_TIMEOUT_MS = 10000;
const MAX_CONTENT_LENGTH = 100000;
@@ -379,7 +380,7 @@ export class WebFetchTool extends BaseDeclarativeTool<
WebFetchToolParams,
ToolResult
> {
static readonly Name: string = 'web_fetch';
static readonly Name: string = WEB_FETCH_TOOL_NAME;
constructor(
private readonly config: Config,