mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-16 23:45:33 +01:00
chore: import order and correct renamed tool name for tool search
This commit is contained in:
parent
4fadb56567
commit
6f70aac542
1 changed files with 10 additions and 14 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue