refactor: add FunctionTool interface and availableTools to AppConfig

This commit is contained in:
Danny Avila 2025-08-20 01:13:42 -04:00
parent 550bf56077
commit 28cd234a6c
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 14 additions and 0 deletions

View file

@ -9,6 +9,7 @@ import type {
TCustomEndpoints,
TAssistantEndpoint,
} from 'librechat-data-provider';
import type { FunctionTool } from './tools';
/**
* Application configuration object
@ -60,6 +61,8 @@ export interface AppConfig {
secureImageLinks?: TCustomConfig['secureImageLinks'];
/** Processed model specifications */
modelSpecs?: TCustomConfig['modelSpecs'];
/** Available tools */
availableTools?: Record<string, FunctionTool>;
endpoints?: {
/** OpenAI endpoint configuration */
openAI?: TEndpoint;

View file

@ -10,4 +10,5 @@ export * from './mistral';
export * from './openai';
export * from './prompts';
export * from './run';
export * from './tools';
export * from './zod';

View file

@ -0,0 +1,10 @@
import type { JsonSchemaType } from './zod';
export interface FunctionTool {
type: 'function';
function: {
description: string;
name: string;
parameters: JsonSchemaType;
};
}