feat: add tool_options parameter to loadTools and initializeAgent for enhanced agent configuration

This commit is contained in:
Danny Avila 2026-01-07 21:33:37 -05:00
parent 2d4833b49e
commit 1496e11e88
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
2 changed files with 14 additions and 2 deletions

View file

@ -10,6 +10,7 @@ import {
} from 'librechat-data-provider';
import type {
AgentToolResources,
AgentToolOptions,
TEndpointOption,
TFile,
Agent,
@ -65,6 +66,7 @@ export interface InitializeAgentParams {
agentId: string;
tools: string[];
model: string | null;
tool_options: AgentToolOptions | undefined;
tool_resources: AgentToolResources | undefined;
}) => Promise<{
tools: GenericTool[];
@ -214,6 +216,7 @@ export async function initializeAgent(
agentId: agent.id,
tools: agent.tools ?? [],
model: agent.model,
tool_options: agent.tool_options,
tool_resources,
})) ?? { tools: [], toolContextMap: {}, userMCPAuthMap: undefined, toolRegistry: undefined };