From 6f70aac54203672f0deae97d7c6565a685a2109b Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Wed, 7 Jan 2026 18:59:21 -0500 Subject: [PATCH] chore: import order and correct renamed tool name for tool search --- packages/api/src/tools/classification.ts | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/packages/api/src/tools/classification.ts b/packages/api/src/tools/classification.ts index 8044917381..5a77a242ff 100644 --- a/packages/api/src/tools/classification.ts +++ b/packages/api/src/tools/classification.ts @@ -24,20 +24,16 @@ * @module packages/api/src/tools/classification */ -import { - EnvVar, - createProgrammaticToolCallingTool, - createToolSearchRegexTool, -} from '@librechat/agents'; -import type { - LCTool, - LCToolRegistry, - AllowedCaller, - JsonSchemaType, - GenericTool, -} from '@librechat/agents'; -import { Constants } from 'librechat-data-provider'; import { logger } from '@librechat/data-schemas'; +import { Constants } from 'librechat-data-provider'; +import { EnvVar, createProgrammaticToolCallingTool, createToolSearch } from '@librechat/agents'; +import type { + LCToolRegistry, + JsonSchemaType, + AllowedCaller, + GenericTool, + LCTool, +} from '@librechat/agents'; export type { LCTool, LCToolRegistry, AllowedCaller, JsonSchemaType }; @@ -401,7 +397,7 @@ export async function buildToolClassification( } if (hasDeferredTools) { - const toolSearchTool = createToolSearchRegexTool({ + const toolSearchTool = createToolSearch({ apiKey: codeApiKey, toolRegistry, });