Skip to content

Commit 2aadca8

Browse files
committed
use const instead of string literal
1 parent 4d43072 commit 2aadca8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/tools-loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { ApifyClient } from 'apify';
99

1010
import log from '@apify/log';
1111

12-
import { defaults } from '../const.js';
12+
import { defaults, HelperTools } from '../const.js';
1313
import { callActor } from '../tools/actor.js';
1414
import { getActorOutput } from '../tools/get-actor-output.js';
1515
import { addTool } from '../tools/helpers.js';
@@ -75,7 +75,7 @@ export async function loadToolsFromInput(
7575
// Handler client capabilities logic for 'actors' category to swap call-actor for add-actor
7676
// if client supports dynamic tools.
7777
if (selector === 'actors' && doesMcpClientSupportDynamicTools(initializeRequestData)) {
78-
internalSelections.push(...categoryTools.filter((t) => t.tool.name !== 'call-actor'));
78+
internalSelections.push(...categoryTools.filter((t) => t.tool.name !== HelperTools.ACTOR_CALL));
7979
internalSelections.push(addTool);
8080
continue;
8181
}

0 commit comments

Comments
 (0)