Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🔗 feat: Agent Chain (Mixture-of-Agents) (#6374)
Danny Avilad6a17784dcb7
diff --git a/api/app/clients/BaseClient.js b/api/app/clients/BaseClient.jsindex 77e14c07d0..e24bffa18b 100644--- a/api/app/clients/BaseClient.js+++ b/api/app/clients/BaseClient.js@@ -5,6 +5,7 @@ const {isAgentsEndpoint,isParamEndpoint,EModelEndpoint,+ ContentTypes,excludedKeys,ErrorTypes,Constants,@@ -1021,11 +1022,17 @@ class BaseClient {const processValue = (value) => {if (Array.isArray(value)) {for (let item of value) {- if (!item || !item.type || item.type === 'image_url') {+ if (+ !item ||+ !item.type ||+ item.type === ContentTypes.THINK ||+ item.type === ContentTypes.ERROR ||+ item.type === ContentTypes.IMAGE_URL+ ) {continue;}- if (item.type === 'tool_call' && item.tool_call != null) {+ if (item.type === ContentTypes.TOOL_CALL && item.tool_call != null) {const toolName = item.tool_call?.name || '';if (toolName != null && toolName && typeof toolName === 'string') {numTokens += this.getTokenCount(toolName);diff --git a/api/app/clients/prompts/formatMessages.js b/api/app/clients/prompts/formatMessages.jsindex 4e8d3bd5a5..9fa0d40497 100644--- a/api/app/clients/prompts/formatMessages.js+++ b/api/app/clients/prompts/formatMessages.js@@ -211,7 +211,7 @@ const formatAgentMessages = (payload) => {} else if (part.type === ContentTypes.THINK) {hasReasoning = true;continue;- } else if (part.type === ContentTypes.ERROR) {+ } else if (part.type === ContentTypes.ERROR || part.type === ContentTypes.AGENT_UPDATE) {continue;} else {currentContent.push(part);diff --git a/api/app/clients/tools/structured/DALLE3.js b/api/app/clients/tools/structured/DALLE3.jsindex 81200e3a61..fc0f1851f6 100644--- a/api/app/clients/tools/structured/DALLE3.js+++ b/api/app/clients/tools/structured/DALLE3.js@@ -172,7 +172,7 @@ Error Message: ${error.message}`);{type: ContentTypes.IMAGE_URL,image_url: {- url: `data:image/jpeg;base64,${base64}`,+ url: `data:image/png;base64,${base64}`,},},];diff --git a/api/models/Banner.js b/api/models/Banner.jsindex 0f20faeba8..399a8e72ee 100644--- a/api/models/Banner.js+++ b/api/models/Banner.js@@ -28,4 +28,4 @@ const getBanner = async (user) => {}};-module.exports = { getBanner };+module.exports = { Banner, getBanner };diff --git a/api/models/tx.js b/api/models/tx.jsindex b534e7edc9..67301d0c49 100644--- a/api/models/tx.js+++ b/api/models/tx.js@@ -61,6 +61,7 @@ const bedrockValues = {'amazon.nova-micro-v1:0': { prompt: 0.035, completion: 0.14 },'amazon.nova-lite-v1:0': { prompt: 0.06, completion: 0.24 },'amazon.nova-pro-v1:0': { prompt: 0.8, completion: 3.2 },+ 'deepseek.r1': { prompt: 1.35, completion: 5.4 },};/**diff --git a/api/models/tx.spec.js b/api/models/tx.spec.jsindex b04eacc9f3..f612e222bb 100644--- a/api/models/tx.spec.js+++ b/api/models/tx.spec.js@@ -288,7 +288,7 @@ describe('AWS Bedrock Model Tests', () => {});describe('Deepseek Model Tests', () => {- const deepseekModels = ['deepseek-chat', 'deepseek-coder', 'deepseek-reasoner'];+ const deepseekModels = ['deepseek-chat', 'deepseek-coder', 'deepseek-reasoner', 'deepseek.r1'];it('should return the correct prompt multipliers for all models', () => {const results = deepseekModels.map((model) => {diff --git a/api/package.json b/api/package.jsonindex 9197691a72..ab2a82dbd8 100644--- a/api/package.json+++ b/api/package.json@@ -42,10 +42,10 @@"@keyv/redis": "^2.8.1","@langchain/community": "^0.3.34","@langchain/core": "^0.3.40",- "@langchain/google-genai": "^0.1.9",- "@langchain/google-vertexai": "^0.2.0",+ "@langchain/google-genai": "^0.1.11",+ "@langchain/google-vertexai": "^0.2.2","@langchain/textsplitters": "^0.1.0",- "@librechat/agents": "^2.2.0",+ "@librechat/agents": "^2.2.8","@librechat/data-schemas": "*","@waylaidwanderer/fetch-event-source": "^3.0.1","axios": "^1.8.2",diff --git a/api/server/controllers/agents/client.js b/api/server/controllers/agents/client.jsindex d591fe3247..4b995bb06a 100644--- a/api/server/controllers/agents/client.js+++ b/api/server/controllers/agents/client.js@@ -7,7 +7,16 @@// validateVisionModel,// mapModelToAzureConfig,// } = require('librechat-data-provider');-const { Callback, createMetadataAggregator } = require('@librechat/agents');+require('events').EventEmitter.defaultMaxListeners = 100;+const {+ Callback,+ GraphEvents,+ formatMessage,+ formatAgentMessages,+ formatContentStrings,+ getTokenCountForMessage,+ createMetadataAggregator,+} = require('@librechat/agents');const {Constants,VisionModes,@@ -17,24 +26,19 @@ const {KnownEndpoints,anthropicSchema,isAgentsEndpoint,+ AgentCapabilities,bedrockInputSchema,removeNullishValues,} = require('librechat-data-provider');-const {- formatMessage,- addCacheControl,- formatAgentMessages,- formatContentStrings,- createContextHandlers,-} = require('~/app/clients/prompts');+const { getCustomEndpointConfig, checkCapability } = require('~/server/services/Config');+const { addCacheControl, createContextHandlers } = require('~/app/clients/prompts');const { spendTokens, spendStructuredTokens } = require('~/models/spendTokens');const { getBufferString, HumanMessage } = require('@langchain/core/messages');const { encodeAndFormat } = require('~/server/services/Files/images/encode');-const { getCustomEndpointConfig } = require('~/server/services/Config');const Tokenizer = require('~/server/services/Tokenizer');const BaseClient = require('~/app/clients/BaseClient');+const { logger, sendEvent } = require('~/config');const { createRun } = require('./run');-const { logger } = require('~/config');/** @typedef {import('@librechat/agents').MessageContentComplex} MessageContentComplex *//** @typedef {import('@langchain/core/runnables').RunnableConfig} RunnableConfig */@@ -99,6 +103,8 @@ class AgentClient extends BaseClient {this.outputTokensKey = 'output_tokens';/** @type {UsageMetadata} */this.usage;+ /** @type {Record<string, number>} */+ this.indexTokenCountMap = {};}/**@@ -377,6 +383,10 @@ class AgentClient extends BaseClient {}));}+ for (let i = 0; i < messages.length; i++) {+ this.indexTokenCountMap[i] = messages[i].tokenCount;+ }+const result = {tokenCountMap,prompt: payload,@@ -622,6 +632,9 @@ class AgentClient extends BaseClient {// });// }+ /** @type {TCustomConfig['endpoints']['agents']} */+ const agentsEConfig = this.options.req.app.locals[EModelEndpoint.agents];+/** @type {Partial<RunnableConfig> & { version: 'v1' | 'v2'; run_id?: string; streamMode: string }} */const config = {configurable: {@@ -629,19 +642,30 @@ class AgentClient extends BaseClient {last_agent_index: this.agentConfigs?.size ?? 0,hide_sequential_outputs: this.options.agent.hide_sequential_outputs,},- recursionLimit: this.options.req.app.locals[EModelEndpoint.agents]?.recursionLimit,+ recursionLimit: agentsEConfig?.recursionLimit,signal: abortController.signal,streamMode: 'values',version: 'v2',};- const initialMessages = formatAgentMessages(payload);+ const toolSet = new Set((this.options.agent.tools ?? []).map((tool) => tool && tool.name));+ let { messages: initialMessages, indexTokenCountMap } = formatAgentMessages(+ payload,+ this.indexTokenCountMap,+ toolSet,+ );if (legacyContentEndpoints.has(this.options.agent.endpoint)) {- formatContentStrings(initialMessages);+ initialMessages = formatContentStrings(initialMessages);}/** @type {ReturnType<createRun>} */let run;+ const countTokens = ((text) => this.getTokenCount(text)).bind(this);++ /** @type {(message: BaseMessage) => number} */+ const tokenCounter = (message) => {+ return getTokenCountForMessage(message, countTokens);+ };/***@@ -649,12 +673,23 @@ class AgentClient extends BaseClient {* @param {BaseMessage[]} messages* @param {number} [i]* @param {TMessageContentParts[]} [contentData]+ * @param {Record<string, number>} [currentIndexCountMap]*/- const runAgent = async (agent, _messages, i = 0, contentData = []) => {+ const runAgent = async (agent, _messages, i = 0, contentData = [], _currentIndexCountMap) => {config.configurable.model = agent.model_parameters.model;+ const currentIndexCountMap = _currentIndexCountMap ?? indexTokenCountMap;if (i > 0) {this.model = agent.model_parameters.model;}+ if (agent.recursion_limit && typeof agent.recursion_limit === 'number') {+ config.recursionLimit = agent.recursion_limit;+ }+ if (+ agentsEConfig?.maxRecursionLimit &&+ config.recursionLimit > agentsEConfig?.maxRecursionLimit+ ) {+ config.recursionLimit = agentsEConfig?.maxRecursionLimit;+ }config.configurable.agent_id = agent.id;config.configurable.name = agent.name;config.configurable.agent_index = i;@@ -717,11 +752,29 @@ class AgentClient extends BaseClient {}if (contentData.length) {+ const agentUpdate = {+ type: ContentTypes.AGENT_UPDATE,+ [ContentTypes.AGENT_UPDATE]: {+ index: contentData.length,+ runId: this.responseMessageId,+ agentId: agent.id,+ },+ };+ const streamData = {+ event: GraphEvents.ON_AGENT_UPDATE,+ data: agentUpdate,+ };+ this.options.aggregateContent(streamData);+ sendEvent(this.options.res, streamData);+ contentData.push(agentUpdate);run.Graph.contentData = contentData;}await run.processStream({ messages }, config, {keepContent: i !== 0,+ tokenCounter,+ indexTokenCountMap: currentIndexCountMap,+ maxContextTokens: agent.maxContextTokens,callbacks: {[Callback.TOOL_ERROR]: (graph, error, toolId) => {logger.error(@@ -735,9 +788,13 @@ class AgentClient extends BaseClient {};await runAgent(this.options.agent, initialMessages);-let finalContentStart = 0;- if (this.agentConfigs && this.agentConfigs.size > 0) {+ if (+ this.agentConfigs &&+ this.agentConfigs.size > 0 &&+ (await checkCapability(this.options.req, AgentCapabilities.chain))+ ) {+ const windowSize = 5;let latestMessage = initialMessages.pop().content;if (typeof latestMessage !== 'string') {latestMessage = latestMessage[0].text;@@ -745,7 +802,16 @@ class AgentClient extends BaseClient {let i = 1;let runMessages = [];- const lastFiveMessages = initialMessages.slice(-5);+ const windowIndexCountMap = {};+ const windowMessages = initialMessages.slice(-windowSize);+ let currentIndex = 4;+ for (let i = initialMessages.length - 1; i >= 0; i--) {+ windowIndexCountMap[currentIndex] = indexTokenCountMap[i];+ currentIndex--;+ if (currentIndex < 0) {+ break;+ }+ }for (const [agentId, agent] of this.agentConfigs) {if (abortController.signal.aborted === true) {break;@@ -780,7 +846,9 @@ class AgentClient extends BaseClient {}try {const contextMessages = [];- for (const message of lastFiveMessages) {+ const runIndexCountMap = {};+ for (let i = 0; i < windowMessages.length; i++) {+ const message = windowMessages[i];const messageType = message._getType();if ((!agent.tools || agent.tools.length === 0) &&@@ -788,11 +856,13 @@ class AgentClient extends BaseClient {) {continue;}-+ runIndexCountMap[contextMessages.length] = windowIndexCountMap[i];contextMessages.push(message);}- const currentMessages = [...contextMessages, new HumanMessage(bufferString)];- await runAgent(agent, currentMessages, i, contentData);+ const bufferMessage = new HumanMessage(bufferString);+ runIndexCountMap[contextMessages.length] = tokenCounter(bufferMessage);+ const currentMessages = [...contextMessages, bufferMessage];+ await runAgent(agent, currentMessages, i, contentData, runIndexCountMap);} catch (err) {logger.error(`[api/server/controllers/agents/client.js #chatCompletion] Error running agent ${agentId} (${i})`,@@ -803,6 +873,7 @@ class AgentClient extends BaseClient {}}+ /** Note: not implemented */if (config.configurable.hide_sequential_outputs !== true) {finalContentStart = 0;}diff --git a/api/server/controllers/agents/v1.js b/api/server/controllers/agents/v1.jsindex 08327ec61c..731dee69a2 100644--- a/api/server/controllers/agents/v1.js+++ b/api/server/controllers/agents/v1.js@@ -1,10 +1,11 @@const fs = require('fs').promises;const { nanoid } = require('nanoid');const {- FileContext,- Constants,Tools,+ Constants,+ FileContext,SystemRoles,+ EToolResources,actionDelimiter,} = require('librechat-data-provider');const {@@ -203,14 +204,21 @@ const duplicateAgentHandler = async (req, res) => {}const {- _id: __id,id: _id,+ _id: __id,author: _author,createdAt: _createdAt,updatedAt: _updatedAt,+ tool_resources: _tool_resources = {},...cloneData} = agent;+ if (_tool_resources?.[EToolResources.ocr]) {+ cloneData.tool_resources = {+ [EToolResources.ocr]: _tool_resources[EToolResources.ocr],+ };+ }+const newAgentId = `agent_${nanoid()}`;const newAgentData = Object.assign(cloneData, {id: newAgentId,diff --git a/api/server/services/ActionService.js b/api/server/services/ActionService.jsindex 660e7aeb0d..c332cdfcf1 100644--- a/api/server/services/ActionService.js+++ b/api/server/services/ActionService.js@@ -161,9 +161,9 @@ async function createActionTool({if (metadata.auth && metadata.auth.type !== AuthTypeEnum.None) {try {- const action_id = action.action_id;- const identifier = `${req.user.id}:${action.action_id}`;if (metadata.auth.type === AuthTypeEnum.OAuth && metadata.auth.authorization_url) {+ const action_id = action.action_id;+ const identifier = `${req.user.id}:${action.action_id}`;const requestLogin = async () => {const { args: _args, stepId, ...toolCall } = config.toolCall ?? {};if (!stepId) {diff --git a/api/server/services/Config/getEndpointsConfig.js b/api/server/services/Config/getEndpointsConfig.jsindex 4f8bde68ad..016f5f7445 100644--- a/api/server/services/Config/getEndpointsConfig.js+++ b/api/server/services/Config/getEndpointsConfig.js@@ -72,4 +72,15 @@ async function getEndpointsConfig(req) {return endpointsConfig;}-module.exports = { getEndpointsConfig };+/**+ * @param {ServerRequest} req+ * @param {import('librechat-data-provider').AgentCapabilities} capability+ * @returns {Promise<boolean>}+ */+const checkCapability = async (req, capability) => {+ const endpointsConfig = await getEndpointsConfig(req);+ const capabilities = endpointsConfig?.[EModelEndpoint.agents]?.capabilities ?? [];+ return capabilities.includes(capability);+};++module.exports = { getEndpointsConfig, checkCapability };diff --git a/api/server/services/Endpoints/agents/initialize.js b/api/server/services/Endpoints/agents/initialize.jsindex 11c8dc6fc4..cb539d3bc7 100644--- a/api/server/services/Endpoints/agents/initialize.js+++ b/api/server/services/Endpoints/agents/initialize.js@@ -204,8 +204,7 @@ const initializeAgentOptions = async ({toolContextMap,maxContextTokens:agent.max_context_tokens ??- getModelMaxTokens(tokensModel, providerEndpointMap[provider]) ??- 4000,+ (getModelMaxTokens(tokensModel, providerEndpointMap[provider]) ?? 4000) * 0.9,};};@@ -275,11 +274,13 @@ const initializeClient = async ({ req, res, endpointOption }) => {const client = new AgentClient({req,+ res,sender,contentParts,agentConfigs,eventHandlers,collectedUsage,+ aggregateContent,artifactPromises,agent: primaryConfig,spec: endpointOption.spec,diff --git a/api/server/services/Endpoints/bedrock/initialize.js b/api/server/services/Endpoints/bedrock/initialize.jsindex 51d0040566..4d9ba361cf 100644--- a/api/server/services/Endpoints/bedrock/initialize.js+++ b/api/server/services/Endpoints/bedrock/initialize.js@@ -55,6 +55,7 @@ const initializeClient = async ({ req, res, endpointOption }) => {const client = new AgentClient({req,+ res,agent,sender,// tools,diff --git a/api/server/services/Files/process.js b/api/server/services/Files/process.jsindex 1bfadc4b23..78a4976e2f 100644--- a/api/server/services/Files/process.js+++ b/api/server/services/Files/process.js@@ -29,7 +29,7 @@ const { addAgentResourceFile, removeAgentResourceFiles } = require('~/models/Ageconst { getOpenAIClient } = require('~/server/controllers/assistants/helpers');const { createFile, updateFileUsage, deleteFiles } = require('~/models/File');const { loadAuthValues } = require('~/server/services/Tools/credentials');-const { getEndpointsConfig } = require('~/server/services/Config');+const { checkCapability } = require('~/server/services/Config');const { LB_QueueAsyncCall } = require('~/server/utils/queue');const { getStrategyFunctions } = require('./strategies');const { determineFileType } = require('~/server/utils');@@ -457,17 +457,6 @@ const processFileUpload = async ({ req, res, metadata }) => {res.status(200).json({ message: 'File uploaded and processed successfully', ...result });};-/**- * @param {ServerRequest} req- * @param {AgentCapabilities} capability- * @returns {Promise<boolean>}- */-const checkCapability = async (req, capability) => {- const endpointsConfig = await getEndpointsConfig(req);- const capabilities = endpointsConfig?.[EModelEndpoint.agents]?.capabilities ?? [];- return capabilities.includes(capability);-};-/*** Applies the current strategy for file uploads.* Saves file metadata to the database with an expiry TTL.diff --git a/api/server/services/ToolService.js b/api/server/services/ToolService.jsindex f3e4efb6e3..969ca8d8ff 100644--- a/api/server/services/ToolService.js+++ b/api/server/services/ToolService.js@@ -362,7 +362,12 @@ async function processRequiredActions(client, requiredActions) {continue;}- tool = await createActionTool({ action: actionSet, requestBuilder });+ tool = await createActionTool({+ req: client.req,+ res: client.res,+ action: actionSet,+ requestBuilder,+ });if (!tool) {logger.warn(`Invalid action: user: ${client.req.user.id} | thread_id: ${requiredActions[0].thread_id} | run_id: ${requiredActions[0].run_id} | toolName: ${currentAction.tool}`,diff --git a/api/server/utils/handleText.js b/api/server/utils/handleText.jsindex 1b9cda28d7..f593d6c866 100644--- a/api/server/utils/handleText.js+++ b/api/server/utils/handleText.js@@ -204,6 +204,7 @@ function generateConfig(key, baseURL, endpoint) {AgentCapabilities.actions,AgentCapabilities.tools,AgentCapabilities.ocr,+ AgentCapabilities.chain,];}diff --git a/api/utils/tokens.js b/api/utils/tokens.jsindex 8edfb0a31c..58aaf7051b 100644--- a/api/utils/tokens.js+++ b/api/utils/tokens.js@@ -92,6 +92,7 @@ const anthropicModels = {const deepseekModels = {'deepseek-reasoner': 63000, // -1000 from max (API)deepseek: 63000, // -1000 from max (API)+ 'deepseek.r1': 127500,};const metaModels = {diff --git a/api/utils/tokens.spec.js b/api/utils/tokens.spec.jsindex d4dbb30498..e5ae21b646 100644--- a/api/utils/tokens.spec.js+++ b/api/utils/tokens.spec.js@@ -423,6 +423,9 @@ describe('Meta Models Tests', () => {expect(getModelMaxTokens('deepseek-reasoner')).toBe(maxTokensMap[EModelEndpoint.openAI]['deepseek-reasoner'],);+ expect(getModelMaxTokens('deepseek.r1')).toBe(+ maxTokensMap[EModelEndpoint.openAI]['deepseek.r1'],+ );});});diff --git a/client/src/common/agents-types.ts b/client/src/common/agents-types.tsindex f4b8aac9fe..982cbfdb17 100644--- a/client/src/common/agents-types.ts+++ b/client/src/common/agents-types.ts@@ -28,4 +28,5 @@ export type AgentForm = {provider?: AgentProvider | OptionWithIcon;agent_ids?: string[];[AgentCapabilities.artifacts]?: ArtifactModes | string;+ recursion_limit?: number;} & TAgentCapabilities;diff --git a/client/src/common/types.ts b/client/src/common/types.tsindex f0b2b8a238..975f468930 100644--- a/client/src/common/types.ts+++ b/client/src/common/types.ts@@ -131,6 +131,7 @@ export interface DataColumnMeta {}export enum Panel {+ advanced = 'advanced',builder = 'builder',actions = 'actions',model = 'model',@@ -181,6 +182,7 @@ export type AgentPanelProps = {activePanel?: string;action?: t.Action;actions?: t.Action[];+ createMutation: UseMutationResult<t.Agent, Error, t.AgentCreateParams>;setActivePanel: React.Dispatch<React.SetStateAction<Panel>>;setAction: React.Dispatch<React.SetStateAction<t.Action | undefined>>;endpointsConfig?: t.TEndpointsConfig;diff --git a/client/src/components/Chat/Messages/Content/ContentParts.tsx b/client/src/components/Chat/Messages/Content/ContentParts.tsxindex ddf08976eb..3805e0bb41 100644--- a/client/src/components/Chat/Messages/Content/ContentParts.tsx+++ b/client/src/components/Chat/Messages/Content/ContentParts.tsx@@ -139,6 +139,7 @@ const ContentParts = memo(isSubmitting={isSubmitting}key={`part-${messageId}-${idx}`}isCreatedByUser={isCreatedByUser}+ isLast={idx === content.length - 1}showCursor={idx === content.length - 1 && isLast}/></MessageContext.Provider>diff --git a/client/src/components/Chat/Messages/Content/Markdown.tsx b/client/src/components/Chat/Messages/Content/Markdown.tsxindex e01de091c7..ee134b0e53 100644--- a/client/src/components/Chat/Messages/Content/Markdown.tsx+++ b/client/src/components/Chat/Messages/Content/Markdown.tsx@@ -166,15 +166,12 @@ export const p: React.ElementType = memo(({ children }: TParagraphProps) => {return <p className="mb-2 whitespace-pre-wrap">{children}</p>;});-const cursor = ' ';-type TContentProps = {content: string;- showCursor?: boolean;isLatestMessage: boolean;};-const Markdown = memo(({ content = '', showCursor, isLatestMessage }: TContentProps) => {+const Markdown = memo(({ content = '', isLatestMessage }: TContentProps) => {const LaTeXParsing = useRecoilValue<boolean>(store.LaTeXParsing);const isInitializing = content === '';@@ -240,7 +237,7 @@ const Markdown = memo(({ content = '', showCursor, isLatestMessage }: TContentPr}}>- {isLatestMessage && (showCursor ?? false) ? currentContent + cursor : currentContent}+ {currentContent}</ReactMarkdown></CodeBlockProvider></ArtifactProvider>diff --git a/client/src/components/Chat/Messages/Content/MessageContent.tsx b/client/src/components/Chat/Messages/Content/MessageContent.tsxindex 1547a01d80..f70a15b779 100644--- a/client/src/components/Chat/Messages/Content/MessageContent.tsx+++ b/client/src/components/Chat/Messages/Content/MessageContent.tsx@@ -83,9 +83,7 @@ const DisplayMessage = ({ text, isCreatedByUser, message, showCursor }: TDisplaylet content: React.ReactElement;if (!isCreatedByUser) {- content = (- <Markdown content={text} showCursor={showCursorState} isLatestMessage={isLatestMessage} />- );+ content = <Markdown content={text} isLatestMessage={isLatestMessage} />;} else if (enableUserMsgMarkdown) {content = <MarkdownLite content={text} />;} else {diff --git a/client/src/components/Chat/Messages/Content/Part.tsx b/client/src/components/Chat/Messages/Content/Part.tsxindex 2430bee6f9..1351efd59c 100644--- a/client/src/components/Chat/Messages/Content/Part.tsx+++ b/client/src/components/Chat/Messages/Content/Part.tsx@@ -8,9 +8,11 @@ import {import { memo } from 'react';import type { TMessageContentParts, TAttachment } from 'librechat-data-provider';import { ErrorMessage } from './MessageContent';+import AgentUpdate from './Parts/AgentUpdate';import ExecuteCode from './Parts/ExecuteCode';import RetrievalCall from './RetrievalCall';import Reasoning from './Parts/Reasoning';+import EmptyText from './Parts/EmptyText';import CodeAnalyze from './CodeAnalyze';import Container from './Container';import ToolCall from './ToolCall';@@ -20,145 +22,159 @@ import Image from './Image';type PartProps = {part?: TMessageContentParts;+ isLast?: boolean;isSubmitting: boolean;showCursor: boolean;isCreatedByUser: boolean;attachments?: TAttachment[];};-const Part = memo(({ part, isSubmitting, attachments, showCursor, isCreatedByUser }: PartProps) => {- if (!part) {- return null;- }-- if (part.type === ContentTypes.ERROR) {- return (- <ErrorMessage- text={part[ContentTypes.ERROR] ?? part[ContentTypes.TEXT]?.value}- className="my-2"- />- );- } else if (part.type === ContentTypes.TEXT) {- const text = typeof part.text === 'string' ? part.text : part.text.value;-- if (typeof text !== 'string') {- return null;- }- if (part.tool_call_ids != null && !text) {+const Part = memo(+ ({ part, isSubmitting, attachments, isLast, showCursor, isCreatedByUser }: PartProps) => {+ if (!part) {return null;}- return (- <Container>- <Text text={text} isCreatedByUser={isCreatedByUser} showCursor={showCursor} />- </Container>- );- } else if (part.type === ContentTypes.THINK) {- const reasoning = typeof part.think === 'string' ? part.think : part.think.value;- if (typeof reasoning !== 'string') {- return null;- }- return <Reasoning reasoning={reasoning} />;- } else if (part.type === ContentTypes.TOOL_CALL) {- const toolCall = part[ContentTypes.TOOL_CALL];- if (!toolCall) {- return null;- }-- const isToolCall =- 'args' in toolCall && (!toolCall.type || toolCall.type === ToolCallTypes.TOOL_CALL);- if (isToolCall && toolCall.name === Tools.execute_code) {- return (- <ExecuteCode- args={typeof toolCall.args === 'string' ? toolCall.args : ''}- output={toolCall.output ?? ''}- initialProgress={toolCall.progress ?? 0.1}- isSubmitting={isSubmitting}- attachments={attachments}- />- );- } else if (isToolCall) {+ if (part.type === ContentTypes.ERROR) {return (- <ToolCall- args={toolCall.args ?? ''}- name={toolCall.name || ''}- output={toolCall.output ?? ''}- initialProgress={toolCall.progress ?? 0.1}- isSubmitting={isSubmitting}- attachments={attachments}- auth={toolCall.auth}- expires_at={toolCall.expires_at}+ <ErrorMessage+ text={part[ContentTypes.ERROR] ?? part[ContentTypes.TEXT]?.value}+ className="my-2"/>);- } else if (toolCall.type === ToolCallTypes.CODE_INTERPRETER) {- const code_interpreter = toolCall[ToolCallTypes.CODE_INTERPRETER];+ } else if (part.type === ContentTypes.AGENT_UPDATE) {return (- <CodeAnalyze- initialProgress={toolCall.progress ?? 0.1}- code={code_interpreter.input}- outputs={code_interpreter.outputs ?? []}- isSubmitting={isSubmitting}- />- );- } else if (- toolCall.type === ToolCallTypes.RETRIEVAL ||- toolCall.type === ToolCallTypes.FILE_SEARCH- ) {- return (- <RetrievalCall initialProgress={toolCall.progress ?? 0.1} isSubmitting={isSubmitting} />+ <>+ <AgentUpdate currentAgentId={part[ContentTypes.AGENT_UPDATE]?.agentId} />+ {isLast && showCursor && (+ <Container>+ <EmptyText />+ </Container>+ )}+ </>);- } else if (- toolCall.type === ToolCallTypes.FUNCTION &&- ToolCallTypes.FUNCTION in toolCall &&- imageGenTools.has(toolCall.function.name)- ) {+ } else if (part.type === ContentTypes.TEXT) {+ const text = typeof part.text === 'string' ? part.text : part.text.value;++ if (typeof text !== 'string') {+ return null;+ }+ if (part.tool_call_ids != null && !text) {+ return null;+ }return (- <ImageGen- initialProgress={toolCall.progress ?? 0.1}- args={toolCall.function.arguments as string}- />+ <Container>+ <Text text={text} isCreatedByUser={isCreatedByUser} showCursor={showCursor} />+ </Container>);- } else if (toolCall.type === ToolCallTypes.FUNCTION && ToolCallTypes.FUNCTION in toolCall) {- if (isImageVisionTool(toolCall)) {- if (isSubmitting && showCursor) {- return (- <Container>- <Text text={''} isCreatedByUser={isCreatedByUser} showCursor={showCursor} />- </Container>- );- }+ } else if (part.type === ContentTypes.THINK) {+ const reasoning = typeof part.think === 'string' ? part.think : part.think.value;+ if (typeof reasoning !== 'string') {+ return null;+ }+ return <Reasoning reasoning={reasoning} />;+ } else if (part.type === ContentTypes.TOOL_CALL) {+ const toolCall = part[ContentTypes.TOOL_CALL];++ if (!toolCall) {return null;}+ const isToolCall =+ 'args' in toolCall && (!toolCall.type || toolCall.type === ToolCallTypes.TOOL_CALL);+ if (isToolCall && toolCall.name === Tools.execute_code) {+ return (+ <ExecuteCode+ args={typeof toolCall.args === 'string' ? toolCall.args : ''}+ output={toolCall.output ?? ''}+ initialProgress={toolCall.progress ?? 0.1}+ isSubmitting={isSubmitting}+ attachments={attachments}+ />+ );+ } else if (isToolCall) {+ return (+ <ToolCall+ args={toolCall.args ?? ''}+ name={toolCall.name || ''}+ output={toolCall.output ?? ''}+ initialProgress={toolCall.progress ?? 0.1}+ isSubmitting={isSubmitting}+ attachments={attachments}+ auth={toolCall.auth}+ expires_at={toolCall.expires_at}+ />+ );+ } else if (toolCall.type === ToolCallTypes.CODE_INTERPRETER) {+ const code_interpreter = toolCall[ToolCallTypes.CODE_INTERPRETER];+ return (+ <CodeAnalyze+ initialProgress={toolCall.progress ?? 0.1}+ code={code_interpreter.input}+ outputs={code_interpreter.outputs ?? []}+ isSubmitting={isSubmitting}+ />+ );+ } else if (+ toolCall.type === ToolCallTypes.RETRIEVAL ||+ toolCall.type === ToolCallTypes.FILE_SEARCH+ ) {+ return (+ <RetrievalCall initialProgress={toolCall.progress ?? 0.1} isSubmitting={isSubmitting} />+ );+ } else if (+ toolCall.type === ToolCallTypes.FUNCTION &&+ ToolCallTypes.FUNCTION in toolCall &&+ imageGenTools.has(toolCall.function.name)+ ) {+ return (+ <ImageGen+ initialProgress={toolCall.progress ?? 0.1}+ args={toolCall.function.arguments as string}+ />+ );+ } else if (toolCall.type === ToolCallTypes.FUNCTION && ToolCallTypes.FUNCTION in toolCall) {+ if (isImageVisionTool(toolCall)) {+ if (isSubmitting && showCursor) {+ return (+ <Container>+ <Text text={''} isCreatedByUser={isCreatedByUser} showCursor={showCursor} />+ </Container>+ );+ }+ return null;+ }++ return (+ <ToolCall+ initialProgress={toolCall.progress ?? 0.1}+ isSubmitting={isSubmitting}+ args={toolCall.function.arguments as string}+ name={toolCall.function.name}+ output={toolCall.function.output}+ />+ );+ }+ } else if (part.type === ContentTypes.IMAGE_FILE) {+ const imageFile = part[ContentTypes.IMAGE_FILE];+ const height = imageFile.height ?? 1920;+ const width = imageFile.width ?? 1080;return (- <ToolCall- initialProgress={toolCall.progress ?? 0.1}- isSubmitting={isSubmitting}- args={toolCall.function.arguments as string}- name={toolCall.function.name}- output={toolCall.function.output}+ <Image+ imagePath={imageFile.filepath}+ height={height}+ width={width}+ altText={imageFile.filename ?? 'Uploaded Image'}+ placeholderDimensions={{+ height: height + 'px',+ width: width + 'px',+ }}/>);}- } else if (part.type === ContentTypes.IMAGE_FILE) {- const imageFile = part[ContentTypes.IMAGE_FILE];- const height = imageFile.height ?? 1920;- const width = imageFile.width ?? 1080;- return (- <Image- imagePath={imageFile.filepath}- height={height}- width={width}- altText={imageFile.filename ?? 'Uploaded Image'}- placeholderDimensions={{- height: height + 'px',- width: width + 'px',- }}- />- );- }- return null;-});+ return null;+ },+);export default Part;diff --git a/client/src/components/Chat/Messages/Content/Parts/AgentUpdate.tsx b/client/src/components/Chat/Messages/Content/Parts/AgentUpdate.tsxnew file mode 100644index 0000000000..4dca00107e--- /dev/null+++ b/client/src/components/Chat/Messages/Content/Parts/AgentUpdate.tsx@@ -0,0 +1,39 @@+import React, { useMemo } from 'react';+import { EModelEndpoint } from 'librechat-data-provider';+import { useAgentsMapContext } from '~/Providers';+import Icon from '~/components/Endpoints/Icon';++interface AgentUpdateProps {+ currentAgentId: string;+}++const AgentUpdate: React.FC<AgentUpdateProps> = ({ currentAgentId }) => {+ const agentsMap = useAgentsMapContext() || {};+ const currentAgent = useMemo(() => agentsMap[currentAgentId], [agentsMap, currentAgentId]);+ if (!currentAgentId) {+ return null;+ }+ return (+ <div className="relative">+ <div className="absolute -left-6 flex h-full w-4 items-center justify-center">+ <div className="relative h-full w-4">+ <div className="absolute left-0 top-0 h-1/2 w-px border border-border-medium"></div>+ <div className="absolute left-0 top-1/2 h-px w-3 border border-border-medium"></div>+ </div>+ </div>+ <div className="my-4 flex items-center gap-2">+ <div className="flex h-6 w-6 items-center justify-center overflow-hidden rounded-full">+ <Icon+ endpoint={EModelEndpoint.agents}+ agentName={currentAgent?.name ?? ''}+ iconURL={currentAgent?.avatar?.filepath}+ isCreatedByUser={false}+ />+ </div>+ <div className="font-medium text-text-primary">{currentAgent?.name}</div>+ </div>+ </div>+ );+};++export default AgentUpdate;diff --git a/client/src/components/Chat/Messages/Content/Parts/EmptyText.tsx b/client/src/components/Chat/Messages/Content/Parts/EmptyText.tsxnew file mode 100644index 0000000000..1b514164df--- /dev/null+++ b/client/src/components/Chat/Messages/Content/Parts/EmptyText.tsx@@ -0,0 +1,17 @@+import { memo } from 'react';++const EmptyTextPart = memo(() => {+ return (+ <div className="text-message mb-[0.625rem] flex min-h-[20px] flex-col items-start gap-3 overflow-visible">+ <div className="markdown prose dark:prose-invert light w-full break-words dark:text-gray-100">+ <div className="absolute">+ <p className="submitting relative">+ <span className="result-thinking" />+ </p>+ </div>+ </div>+ </div>+ );+});++export default EmptyTextPart;diff --git a/client/src/components/Chat/Messages/Content/Parts/Text.tsx b/client/src/components/Chat/Messages/Content/Parts/Text.tsxindex 7c207f1512..d4a605aea5 100644--- a/client/src/components/Chat/Messages/Content/Parts/Text.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/Text.tsx@@ -29,9 +29,7 @@ const TextPart = memo(({ text, isCreatedByUser, showCursor }: TextPartProps) =>const content: ContentType = useMemo(() => {if (!isCreatedByUser) {- return (- <Markdown content={text} showCursor={showCursorState} isLatestMessage={isLatestMessage} />- );+ return <Markdown content={text} isLatestMessage={isLatestMessage} />;} else if (enableUserMsgMarkdown) {return <MarkdownLite content={text} />;} else {diff --git a/client/src/components/SidePanel/Agents/AdminSettings.tsx b/client/src/components/SidePanel/Agents/AdminSettings.tsxindex 6ca21d1317..5fb13fd045 100644--- a/client/src/components/SidePanel/Agents/AdminSettings.tsx+++ b/client/src/components/SidePanel/Agents/AdminSettings.tsx@@ -142,7 +142,7 @@ const AdminSettings = () => {<Buttonsize={'sm'}variant={'outline'}- className="btn btn-neutral border-token-border-light relative mb-4 h-9 w-full gap-1 rounded-lg font-medium"+ className="btn btn-neutral border-token-border-light relative h-9 w-full gap-1 rounded-lg font-medium"><ShieldEllipsis className="cursor-pointer" aria-hidden="true" />{localize('com_ui_admin_settings')}diff --git a/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx b/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsxnew file mode 100644index 0000000000..e75047b76d--- /dev/null+++ b/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx@@ -0,0 +1,27 @@+import React from 'react';+import { Settings2 } from 'lucide-react';+import { Button } from '~/components/ui';+import { useLocalize } from '~/hooks';+import { Panel } from '~/common';++interface AdvancedButtonProps {+ setActivePanel: (panel: Panel) => void;+}++const AdvancedButton: React.FC<AdvancedButtonProps> = ({ setActivePanel }) => {+ const localize = useLocalize();++ return (+ <Button+ size={'sm'}+ variant={'outline'}+ className="btn btn-neutral border-token-border-light relative h-9 w-full gap-1 rounded-lg font-medium"+ onClick={() => setActivePanel(Panel.advanced)}+ >+ <Settings2 className="h-4 w-4 cursor-pointer" aria-hidden="true" />+ {localize('com_ui_advanced')}+ </Button>+ );+};++export default AdvancedButton;diff --git a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsxnew file mode 100644index 0000000000..0ead79cd32--- /dev/null+++ b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx@@ -0,0 +1,55 @@+import { useMemo } from 'react';+import { ChevronLeft } from 'lucide-react';+import { AgentCapabilities } from 'librechat-data-provider';+import { useFormContext, Controller } from 'react-hook-form';+import type { AgentForm, AgentPanelProps } from '~/common';+import MaxAgentSteps from './MaxAgentSteps';+import AgentChain from './AgentChain';+import { useLocalize } from '~/hooks';+import { Panel } from '~/common';++export default function AdvancedPanel({+ agentsConfig,+ setActivePanel,+}: Pick<AgentPanelProps, 'setActivePanel' | 'agentsConfig'>) {+ const localize = useLocalize();+ const methods = useFormContext<AgentForm>();+ const { control, watch } = methods;+ const currentAgentId = watch('id');+ const chainEnabled = useMemo(+ () => agentsConfig?.capabilities.includes(AgentCapabilities.chain) ?? false,+ [agentsConfig],+ );++ return (+ <div className="scrollbar-gutter-stable h-full min-h-[40vh] overflow-auto pb-12 text-sm">+ <div className="advanced-panel relative flex flex-col items-center px-16 py-4 text-center">+ <div className="absolute left-0 top-4">+ <button+ type="button"+ className="btn btn-neutral relative"+ onClick={() => {+ setActivePanel(Panel.builder);+ }}+ >+ <div className="advanced-panel-content flex w-full items-center justify-center gap-2">+ <ChevronLeft />+ </div>+ </button>+ </div>+ <div className="mb-2 mt-2 text-xl font-medium">{localize('com_ui_advanced_settings')}</div>+ </div>+ <div className="flex flex-col gap-4 px-2">+ <MaxAgentSteps />+ {chainEnabled && (+ <Controller+ name="agent_ids"+ control={control}+ defaultValue={[]}+ render={({ field }) => <AgentChain field={field} currentAgentId={currentAgentId} />}+ />+ )}+ </div>+ </div>+ );+}diff --git a/client/src/components/SidePanel/Agents/Advanced/AgentChain.tsx b/client/src/components/SidePanel/Agents/Advanced/AgentChain.tsxnew file mode 100644index 0000000000..1380927115--- /dev/null+++ b/client/src/components/SidePanel/Agents/Advanced/AgentChain.tsx@@ -0,0 +1,179 @@+import { X, Link2, PlusCircle } from 'lucide-react';+import { EModelEndpoint } from 'librechat-data-provider';+import React, { useState, useMemo, useCallback, useEffect } from 'react';+import type { ControllerRenderProps } from 'react-hook-form';+import type { AgentForm, OptionWithIcon } from '~/common';+import ControlCombobox from '~/components/ui/ControlCombobox';+import { HoverCard, HoverCardPortal, HoverCardContent, HoverCardTrigger } from '~/components/ui';+import { CircleHelpIcon } from '~/components/svg';+import { useAgentsMapContext } from '~/Providers';+import Icon from '~/components/Endpoints/Icon';+import { useLocalize } from '~/hooks';+import { ESide } from '~/common';++interface AgentChainProps {+ field: ControllerRenderProps<AgentForm, 'agent_ids'>;+ currentAgentId: string;+}++/** TODO: make configurable */+const MAX_AGENTS = 10;++const AgentChain: React.FC<AgentChainProps> = ({ field, currentAgentId }) => {+ const localize = useLocalize();+ const [newAgentId, setNewAgentId] = useState('');+ const agentsMap = useAgentsMapContext() || {};+ const agentIds = field.value || [];++ const agents = useMemo(() => Object.values(agentsMap), [agentsMap]);++ const selectableAgents = useMemo(+ () =>+ agents+ .filter((agent) => agent?.id !== currentAgentId)+ .map(+ (agent) =>+ ({+ label: agent?.name || '',+ value: agent?.id,+ icon: (+ <Icon+ endpoint={EModelEndpoint.agents}+ agentName={agent?.name ?? ''}+ iconURL={agent?.avatar?.filepath}+ isCreatedByUser={false}+ />+ ),+ }) as OptionWithIcon,+ ),+ [agents, currentAgentId],+ );++ const getAgentDetails = useCallback((id: string) => agentsMap[id], [agentsMap]);++ useEffect(() => {+ if (newAgentId && agentIds.length < MAX_AGENTS) {+ field.onChange([...agentIds, newAgentId]);+ setNewAgentId('');+ }+ }, [newAgentId, agentIds, field]);++ const removeAgentAt = (index: number) => {+ field.onChange(agentIds.filter((_, i) => i !== index));+ };++ const updateAgentAt = (index: number, id: string) => {+ const updated = [...agentIds];+ updated[index] = id;+ field.onChange(updated);+ };++ return (+ <HoverCard openDelay={50}>+ <div className="flex items-center justify-between gap-2">+ <div className="flex items-center gap-2">+ <label className="font-semibold text-text-primary">+ {localize('com_ui_agent_chain')}+ </label>+ <HoverCardTrigger>+ <CircleHelpIcon className="h-4 w-4 text-text-tertiary" />+ </HoverCardTrigger>+ </div>+ <div className="text-xs text-text-secondary">+ {agentIds.length} / {MAX_AGENTS}+ </div>+ </div>+ <div className="space-y-1">+ {/* Current fixed agent */}+ <div className="flex h-10 items-center justify-between rounded-md border border-border-medium bg-surface-primary-contrast px-3 py-2">+ <div className="flex items-center gap-2">+ <div className="flex h-6 w-6 items-center justify-center overflow-hidden rounded-full">+ <Icon+ endpoint={EModelEndpoint.agents}+ agentName={getAgentDetails(currentAgentId)?.name ?? ''}+ iconURL={getAgentDetails(currentAgentId)?.avatar?.filepath}+ isCreatedByUser={false}+ />+ </div>+ <div className="font-medium text-text-primary">+ {getAgentDetails(currentAgentId)?.name}+ </div>+ </div>+ </div>+ {<Link2 className="mx-auto text-text-secondary" size={14} />}+ {agentIds.map((agentId, idx) => (+ <React.Fragment key={agentId}>+ <div className="flex h-10 items-center gap-2 rounded-md border border-border-medium bg-surface-tertiary pr-2">+ <ControlCombobox+ isCollapsed={false}+ ariaLabel={localize('com_ui_agent_var', { 0: localize('com_ui_select') })}+ selectedValue={agentId}+ setValue={(id) => updateAgentAt(idx, id)}+ selectPlaceholder={localize('com_ui_agent_var', { 0: localize('com_ui_select') })}+ searchPlaceholder={localize('com_ui_agent_var', { 0: localize('com_ui_search') })}+ items={selectableAgents}+ displayValue={getAgentDetails(agentId)?.name ?? ''}+ SelectIcon={+ <Icon+ endpoint={EModelEndpoint.agents}+ isCreatedByUser={false}+ agentName={getAgentDetails(agentId)?.name ?? ''}+ iconURL={getAgentDetails(agentId)?.avatar?.filepath}+ />+ }+ className="flex-1 border-border-heavy"+ containerClassName="px-0"+ />+ {/* Future Settings button? */}+ {/* <button className="hover:bg-surface-hover p-1 rounded transition">+ <Settings size={16} className="text-text-secondary" />+ </button> */}+ <button+ className="rounded-xl p-1 transition hover:bg-surface-hover"+ onClick={() => removeAgentAt(idx)}+ >+ <X size={18} className="text-text-secondary" />+ </button>+ </div>+ {idx < agentIds.length - 1 && (+ <Link2 className="mx-auto text-text-secondary" size={14} />+ )}+ </React.Fragment>+ ))}++ {agentIds.length < MAX_AGENTS && (+ <>+ {agentIds.length > 0 && <Link2 className="mx-auto text-text-secondary" size={14} />}+ <ControlCombobox+ isCollapsed={false}+ ariaLabel={localize('com_ui_agent_var', { 0: localize('com_ui_add') })}+ selectedValue=""+ setValue={setNewAgentId}+ selectPlaceholder={localize('com_ui_agent_var', { 0: localize('com_ui_add') })}+ searchPlaceholder={localize('com_ui_agent_var', { 0: localize('com_ui_search') })}+ items={selectableAgents}+ className="h-10 w-full border-dashed border-border-heavy text-center text-text-secondary hover:text-text-primary"+ containerClassName="px-0"+ SelectIcon={<PlusCircle size={16} className="text-text-secondary" />}+ />+ </>+ )}++ {agentIds.length >= MAX_AGENTS && (+ <p className="pt-1 text-center text-xs italic text-text-tertiary">+ {localize('com_ui_agent_chain_max', { 0: MAX_AGENTS })}+ </p>+ )}+ </div>+ <HoverCardPortal>+ <HoverCardContent side={ESide.Top} className="w-80">+ <div className="space-y-2">+ <p className="text-sm text-text-secondary">{localize('com_ui_agent_chain_info')}</p>+ </div>+ </HoverCardContent>+ </HoverCardPortal>+ </HoverCard>+ );+};++export default AgentChain;diff --git a/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx b/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsxnew file mode 100644index 0000000000..5e334282f9--- /dev/null+++ b/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx@@ -0,0 +1,52 @@+import { useFormContext, Controller } from 'react-hook-form';+import type { AgentForm } from '~/common';+import {+ HoverCard,+ FormInput,+ HoverCardPortal,+ HoverCardContent,+ HoverCardTrigger,+} from '~/components/ui';+import { CircleHelpIcon } from '~/components/svg';+import { useLocalize } from '~/hooks';+import { ESide } from '~/common';++export default function AdvancedPanel() {+ const localize = useLocalize();+ const methods = useFormContext<AgentForm>();+ const { control } = methods;++ return (+ <HoverCard openDelay={50}>+ <Controller+ name="recursion_limit"+ control={control}+ render={({ field }) => (+ <FormInput+ field={field}+ containerClass="w-1/2"+ inputClass="w-full"+ label={localize('com_ui_agent_recursion_limit')}+ placeholder={localize('com_nav_theme_system')}+ type="number"+ labelClass="w-fit"+ labelAdjacent={+ <HoverCardTrigger>+ <CircleHelpIcon className="h-4 w-4 text-text-tertiary" />+ </HoverCardTrigger>+ }+ />+ )}+ />+ <HoverCardPortal>+ <HoverCardContent side={ESide.Top} className="w-80">+ <div className="space-y-2">+ <p className="text-sm text-text-secondary">+ {localize('com_ui_agent_recursion_limit_info')}+ </p>+ </div>+ </HoverCardContent>+ </HoverCardPortal>+ </HoverCard>+ );+}diff --git a/client/src/components/SidePanel/Agents/AgentConfig.tsx b/client/src/components/SidePanel/Agents/AgentConfig.tsxindex 7ece82bed1..864ecd8173 100644--- a/client/src/components/SidePanel/Agents/AgentConfig.tsx+++ b/client/src/components/SidePanel/Agents/AgentConfig.tsx@@ -1,32 +1,19 @@import React, { useState, useMemo, useCallback } from 'react';import { useQueryClient } from '@tanstack/react-query';import { Controller, useWatch, useFormContext } from 'react-hook-form';-import {- QueryKeys,- SystemRoles,- Permissions,- EModelEndpoint,- PermissionTypes,- AgentCapabilities,-} from 'librechat-data-provider';+import { QueryKeys, EModelEndpoint, AgentCapabilities } from 'librechat-data-provider';import type { TPlugin } from 'librechat-data-provider';import type { AgentForm, AgentPanelProps, IconComponentTypes } from '~/common';import { cn, defaultTextProps, removeFocusOutlines, getEndpointField, getIconKey } from '~/utils';-import { useCreateAgentMutation, useUpdateAgentMutation } from '~/data-provider';-import { useLocalize, useAuthContext, useHasAccess } from '~/hooks';import { useToastContext, useFileMapContext } from '~/Providers';import { icons } from '~/components/Chat/Menus/Endpoints/Icons';import Action from '~/components/SidePanel/Builder/Action';import { ToolSelectDialog } from '~/components/Tools';-import DuplicateAgent from './DuplicateAgent';import { processAgentOption } from '~/utils';-import AdminSettings from './AdminSettings';-import DeleteButton from './DeleteButton';import AgentAvatar from './AgentAvatar';import FileContext from './FileContext';-import { Spinner } from '~/components';+import { useLocalize } from '~/hooks';import FileSearch from './FileSearch';-import ShareAgent from './ShareAgent';import Artifacts from './Artifacts';import AgentTool from './AgentTool';import CodeForm from './Code/Form';@@ -43,11 +30,10 @@ export default function AgentConfig({setAction,actions = [],agentsConfig,- endpointsConfig,+ createMutation,setActivePanel,- setCurrentAgentId,+ endpointsConfig,}: AgentPanelProps) {- const { user } = useAuthContext();const fileMap = useFileMapContext();const queryClient = useQueryClient();@@ -66,11 +52,6 @@ export default function AgentConfig({const tools = useWatch({ control, name: 'tools' });const agent_id = useWatch({ control, name: 'id' });- const hasAccessToShareAgents = useHasAccess({- permissionType: PermissionTypes.AGENTS,- permission: Permissions.SHARED_GLOBAL,- });-const toolsEnabled = useMemo(() => agentsConfig?.capabilities.includes(AgentCapabilities.tools),[agentsConfig],@@ -156,46 +137,6 @@ export default function AgentConfig({return _agent.code_files ?? [];}, [agent, agent_id, fileMap]);- /* Mutations */- const update = useUpdateAgentMutation({- onSuccess: (data) => {- showToast({- message: `${localize('com_assistants_update_success')} ${- data.name ?? localize('com_ui_agent')- }`,- });- },- onError: (err) => {- const error = err as Error;- showToast({- message: `${localize('com_agents_update_error')}${- error.message ? ` ${localize('com_ui_error')}: ${error.message}` : ''- }`,- status: 'error',- });- },- });-- const create = useCreateAgentMutation({- onSuccess: (data) => {- setCurrentAgentId(data.id);- showToast({- message: `${localize('com_assistants_create_success')} ${- data.name ?? localize('com_ui_agent')- }`,- });- },- onError: (err) => {- const error = err as Error;- showToast({- message: `${localize('com_agents_create_error')}${- error.message ? ` ${localize('com_ui_error')}: ${error.message}` : ''- }`,- status: 'error',- });- },- });-const handleAddActions = useCallback(() => {if (!agent_id) {showToast({@@ -225,26 +166,14 @@ export default function AgentConfig({Icon = icons[iconKey];}- const renderSaveButton = () => {- if (create.isLoading || update.isLoading) {- return <Spinner className="icon-md" aria-hidden="true" />;- }-- if (agent_id) {- return localize('com_ui_save');- }-- return localize('com_ui_create');- };-return (<>- <div className="h-auto bg-white px-4 pb-8 pt-3 dark:bg-transparent">+ <div className="h-auto bg-white px-4 pt-3 dark:bg-transparent">{/* Avatar & Name */}<div className="mb-4"><AgentAvatar- createMutation={create}agent_id={agent_id}+ createMutation={createMutation}avatar={agent?.['avatar'] ?? null}/><label className={labelClass} htmlFor="name">@@ -366,12 +295,12 @@ export default function AgentConfig({</label>{/* Code Execution */}{codeEnabled && <CodeForm agent_id={agent_id} files={code_files} />}- {/* File Search */}- {fileSearchEnabled && <FileSearch agent_id={agent_id} files={knowledge_files} />}- {/* Artifacts */}- {artifactsEnabled && <Artifacts />}{/* File Context (OCR) */}{ocrEnabled && <FileContext agent_id={agent_id} files={context_files} />}+ {/* Artifacts */}+ {artifactsEnabled && <Artifacts />}+ {/* File Search */}+ {fileSearchEnabled && <FileSearch agent_id={agent_id} files={knowledge_files} />}</div>)}{/* Agent Tools & Actions */}@@ -431,34 +360,6 @@ export default function AgentConfig({</div></div></div>- {user?.role === SystemRoles.ADMIN && <AdminSettings />}- {/* Context Button */}- <div className="flex items-center justify-end gap-2">- <DeleteButton- agent_id={agent_id}- setCurrentAgentId={setCurrentAgentId}- createMutation={create}- />- {(agent?.author === user?.id || user?.role === SystemRoles.ADMIN) &&- hasAccessToShareAgents && (- <ShareAgent- agent_id={agent_id}- agentName={agent?.name ?? ''}- projectIds={agent?.projectIds ?? []}- isCollaborative={agent?.isCollaborative}- />- )}- {agent && agent.author === user?.id && <DuplicateAgent agent_id={agent_id} />}- {/* Submit Button */}- <button- className="btn btn-primary focus:shadow-outline flex h-9 w-full items-center justify-center px-4 py-2 font-semibold text-white hover:bg-green-600 focus:border-green-500"- type="submit"- disabled={create.isLoading || update.isLoading}- aria-busy={create.isLoading || update.isLoading}- >- {renderSaveButton()}- </button>- </div></div><ToolSelectDialogisOpen={showToolDialog}diff --git a/client/src/components/SidePanel/Agents/AgentFooter.tsx b/client/src/components/SidePanel/Agents/AgentFooter.tsxnew file mode 100644index 0000000000..062f81d253--- /dev/null+++ b/client/src/components/SidePanel/Agents/AgentFooter.tsx@@ -0,0 +1,86 @@+import React from 'react';+import { useWatch, useFormContext } from 'react-hook-form';+import { SystemRoles, Permissions, PermissionTypes } from 'librechat-data-provider';+import type { AgentForm, AgentPanelProps } from '~/common';+import { useLocalize, useAuthContext, useHasAccess } from '~/hooks';+import { useUpdateAgentMutation } from '~/data-provider';+import AdvancedButton from './Advanced/AdvancedButton';+import DuplicateAgent from './DuplicateAgent';+import AdminSettings from './AdminSettings';+import DeleteButton from './DeleteButton';+import { Spinner } from '~/components';+import ShareAgent from './ShareAgent';+import { Panel } from '~/common';++export default function AgentFooter({+ activePanel,+ createMutation,+ updateMutation,+ setActivePanel,+ setCurrentAgentId,+}: Pick<+ AgentPanelProps,+ 'setCurrentAgentId' | 'createMutation' | 'activePanel' | 'setActivePanel'+> & {+ updateMutation: ReturnType<typeof useUpdateAgentMutation>;+}) {+ const localize = useLocalize();+ const { user } = useAuthContext();++ const methods = useFormContext<AgentForm>();++ const { control } = methods;+ const agent = useWatch({ control, name: 'agent' });+ const agent_id = useWatch({ control, name: 'id' });++ const hasAccessToShareAgents = useHasAccess({+ permissionType: PermissionTypes.AGENTS,+ permission: Permissions.SHARED_GLOBAL,+ });++ const renderSaveButton = () => {+ if (createMutation.isLoading || updateMutation.isLoading) {+ return <Spinner className="icon-md" aria-hidden="true" />;+ }++ if (agent_id) {+ return localize('com_ui_save');+ }++ return localize('com_ui_create');+ };++ return (+ <div className="mx-1 mb-1 flex w-full flex-col gap-2">+ {activePanel !== Panel.advanced && <AdvancedButton setActivePanel={setActivePanel} />}+ {user?.role === SystemRoles.ADMIN && <AdminSettings />}+ {/* Context Button */}+ <div className="flex items-center justify-end gap-2">+ <DeleteButton+ agent_id={agent_id}+ setCurrentAgentId={setCurrentAgentId}+ createMutation={createMutation}+ />+ {(agent?.author === user?.id || user?.role === SystemRoles.ADMIN) &&+ hasAccessToShareAgents && (+ <ShareAgent+ agent_id={agent_id}+ agentName={agent?.name ?? ''}+ projectIds={agent?.projectIds ?? []}+ isCollaborative={agent?.isCollaborative}+ />+ )}+ {agent && agent.author === user?.id && <DuplicateAgent agent_id={agent_id} />}+ {/* Submit Button */}+ <button+ className="btn btn-primary focus:shadow-outline flex h-9 w-full items-center justify-center px-4 py-2 font-semibold text-white hover:bg-green-600 focus:border-green-500"+ type="submit"+ disabled={createMutation.isLoading || updateMutation.isLoading}+ aria-busy={createMutation.isLoading || updateMutation.isLoading}+ >+ {renderSaveButton()}+ </button>+ </div>+ </div>+ );+}diff --git a/client/src/components/SidePanel/Agents/AgentPanel.tsx b/client/src/components/SidePanel/Agents/AgentPanel.tsxindex ce0f95f864..fd96e673de 100644--- a/client/src/components/SidePanel/Agents/AgentPanel.tsx+++ b/client/src/components/SidePanel/Agents/AgentPanel.tsx@@ -19,8 +19,10 @@ import { useSelectAgent, useLocalize, useAuthContext } from '~/hooks';import AgentPanelSkeleton from './AgentPanelSkeleton';import { createProviderOption } from '~/utils';import { useToastContext } from '~/Providers';+import AdvancedPanel from './Advanced/AdvancedPanel';import AgentConfig from './AgentConfig';import AgentSelect from './AgentSelect';+import AgentFooter from './AgentFooter';import { Button } from '~/components';import ModelPanel from './ModelPanel';import { Panel } from '~/common';@@ -130,6 +132,7 @@ export default function AgentPanel({agent_ids,end_after_tools,hide_sequential_outputs,+ recursion_limit,} = data;const model = _model ?? '';@@ -151,6 +154,7 @@ export default function AgentPanel({agent_ids,end_after_tools,hide_sequential_outputs,+ recursion_limit,},});return;@@ -175,6 +179,7 @@ export default function AgentPanel({agent_ids,end_after_tools,hide_sequential_outputs,+ recursion_limit,});},[agent_id, create, update, showToast, localize],@@ -276,12 +281,25 @@ export default function AgentPanel({<AgentConfigactions={actions}setAction={setAction}+ createMutation={create}agentsConfig={agentsConfig}setActivePanel={setActivePanel}endpointsConfig={endpointsConfig}setCurrentAgentId={setCurrentAgentId}/>)}+ {canEditAgent && !agentQuery.isInitialLoading && activePanel === Panel.advanced && (+ <AdvancedPanel setActivePanel={setActivePanel} agentsConfig={agentsConfig} />+ )}+ {canEditAgent && !agentQuery.isInitialLoading && (+ <AgentFooter+ createMutation={create}+ updateMutation={update}+ activePanel={activePanel}+ setActivePanel={setActivePanel}+ setCurrentAgentId={setCurrentAgentId}+ />+ )}</form></FormProvider>);diff --git a/client/src/components/SidePanel/Agents/AgentPanelSkeleton.tsx b/client/src/components/SidePanel/Agents/AgentPanelSkeleton.tsxindex 8acd8920b1..d10271f112 100644--- a/client/src/components/SidePanel/Agents/AgentPanelSkeleton.tsx+++ b/client/src/components/SidePanel/Agents/AgentPanelSkeleton.tsx@@ -3,7 +3,7 @@ import { Skeleton } from '~/components/ui';export default function AgentPanelSkeleton() {return (- <div className="h-auto bg-white px-4 pb-8 pt-3 dark:bg-transparent">+ <div className="h-auto bg-white dark:bg-transparent">{/* Avatar */}<div className="mb-4"><div className="flex w-full items-center justify-center gap-4">diff --git a/client/src/components/SidePanel/Agents/AgentSelect.tsx b/client/src/components/SidePanel/Agents/AgentSelect.tsxindex bb5752eb5b..716ad4ce94 100644--- a/client/src/components/SidePanel/Agents/AgentSelect.tsx+++ b/client/src/components/SidePanel/Agents/AgentSelect.tsx@@ -81,10 +81,29 @@ export default function AgentSelect({return;}+ if (capabilities[name] !== undefined) {+ formValues[name] = value;+ return;+ }++ if (+ name === 'agent_ids' &&+ Array.isArray(value) &&+ value.every((item) => typeof item === 'string')+ ) {+ formValues[name] = value;+ return;+ }+if (!keys.has(name)) {return;}+ if (name === 'recursion_limit' && typeof value === 'number') {+ formValues[name] = value;+ return;+ }+if (typeof value !== 'number' && typeof value !== 'object') {formValues[name] = value;}diff --git a/client/src/components/SidePanel/Agents/ModelPanel.tsx b/client/src/components/SidePanel/Agents/ModelPanel.tsxindex d00dc9face..75e393d572 100644--- a/client/src/components/SidePanel/Agents/ModelPanel.tsx+++ b/client/src/components/SidePanel/Agents/ModelPanel.tsx@@ -77,7 +77,7 @@ export default function Parameters({};return (- <div className="scrollbar-gutter-stable h-full min-h-[50vh] overflow-auto pb-12 text-sm">+ <div className="mx-1 mb-1 flex h-full min-h-[50vh] w-full flex-col gap-2 text-sm"><div className="model-panel relative flex flex-col items-center px-16 py-4 text-center"><div className="absolute left-0 top-4"><button@@ -224,19 +224,17 @@ export default function Parameters({);})}</div>- {/* Reset Parameters Button */}- <div className="mt-6 flex justify-center">- <button- type="button"- onClick={handleResetParameters}- className="btn btn-neutral flex w-full items-center justify-center gap-2 px-4 py-2 text-sm"- >- <RotateCcw className="h-4 w-4" aria-hidden="true" />- {localize('com_ui_reset_var', { 0: localize('com_ui_model_parameters') })}- </button>- </div></div>)}+ {/* Reset Parameters Button */}+ <button+ type="button"+ onClick={handleResetParameters}+ className="btn btn-neutral my-1 flex w-full items-center justify-center gap-2 px-4 py-2 text-sm"+ >+ <RotateCcw className="h-4 w-4" aria-hidden="true" />+ {localize('com_ui_reset_var', { 0: localize('com_ui_model_parameters') })}+ </button></div>);}diff --git a/client/src/components/SidePanel/Agents/Sequential/HideSequential.tsx b/client/src/components/SidePanel/Agents/Sequential/HideSequential.tsxdeleted file mode 100644index 8fdc50f876..0000000000--- a/client/src/components/SidePanel/Agents/Sequential/HideSequential.tsx+++ /dev/null@@ -1,74 +0,0 @@-import { AgentCapabilities } from 'librechat-data-provider';-import { useFormContext, Controller } from 'react-hook-form';-import type { AgentForm } from '~/common';-import {- Checkbox,- HoverCard,- // HoverCardContent,- // HoverCardPortal,- // HoverCardTrigger,-} from '~/components/ui';-// import { CircleHelpIcon } from '~/components/svg';-// import { useLocalize } from '~/hooks';-// import { ESide } from '~/common';--export default function HideSequential() {- // const localize = useLocalize();- const methods = useFormContext<AgentForm>();- const { control, setValue, getValues } = methods;-- return (- <>- <HoverCard openDelay={50}>- <div className="my-2 flex items-center">- <Controller- name={AgentCapabilities.hide_sequential_outputs}- control={control}- render={({ field }) => (- <Checkbox- {...field}- checked={field.value}- onCheckedChange={field.onChange}- className="relative float-left mr-2 inline-flex h-4 w-4 cursor-pointer"- value={field.value?.toString()}- />- )}- />- <button- type="button"- className="flex items-center space-x-2"- onClick={() =>-- setValue(- AgentCapabilities.hide_sequential_outputs,- !getValues(AgentCapabilities.hide_sequential_outputs),- {- shouldDirty: true,- },- )- }- >- <label- className="form-check-label text-token-text-primary w-full cursor-pointer"- htmlFor={AgentCapabilities.hide_sequential_outputs}- >- Hide Sequential Agent Outputs except the last agent's- </label>- {/* <HoverCardTrigger>- <CircleHelpIcon className="h-5 w-5 text-gray-500" />- </HoverCardTrigger> */}- </button>- {/* <HoverCardPortal>- <HoverCardContent side={ESide.Top} className="w-80">- <div className="space-y-2">- <p className="text-sm text-text-secondary">- {localize('com_agents_ttg_info')}- </p>- </div>- </HoverCardContent>- </HoverCardPortal> */}- </div>- </HoverCard>- </>- );-}diff --git a/client/src/components/SidePanel/Agents/Sequential/SequentialAgents.tsx b/client/src/components/SidePanel/Agents/Sequential/SequentialAgents.tsxdeleted file mode 100644index 14b1c07251..0000000000--- a/client/src/components/SidePanel/Agents/Sequential/SequentialAgents.tsx+++ /dev/null@@ -1,153 +0,0 @@-import { Plus, X } from 'lucide-react';-import React, { useRef, useState } from 'react';-import { Transition } from 'react-transition-group';-import { Constants } from 'librechat-data-provider';-import { cn, defaultTextProps, removeFocusOutlines } from '~/utils';-import { TooltipAnchor } from '~/components/ui';-import HideSequential from './HideSequential';--interface SequentialAgentsProps {- field: {- value: string[];- onChange: (value: string[]) => void;- };-}--const labelClass = 'mb-2 text-token-text-primary block font-medium';-const inputClass = cn(- defaultTextProps,- 'flex w-full px-3 py-2 dark:border-gray-800 dark:bg-gray-800 rounded-xl mb-2',- removeFocusOutlines,-);--const maxAgents = 5;--const SequentialAgents: React.FC<SequentialAgentsProps> = ({ field }) => {- const inputRefs = useRef<(HTMLInputElement | null)[]>([]);- const nodeRef = useRef(null);- const [newAgentId, setNewAgentId] = useState('');-- const handleAddAgentId = () => {- if (newAgentId.trim() && field.value.length < maxAgents) {- const newValues = [...field.value, newAgentId];- field.onChange(newValues);- setNewAgentId('');- }- };-- const handleDeleteAgentId = (index: number) => {- const newValues = field.value.filter((_, i) => i !== index);- field.onChange(newValues);- };-- const defaultStyle = {- transition: 'opacity 200ms ease-in-out',- opacity: 0,- };-- const triggerShake = (element: HTMLElement) => {- element.classList.remove('shake');- void element.offsetWidth;- element.classList.add('shake');- setTimeout(() => {- element.classList.remove('shake');- }, 200);- };-- const transitionStyles = {- entering: { opacity: 1 },- entered: { opacity: 1 },- exiting: { opacity: 0 },- exited: { opacity: 0 },- };-- const hasReachedMax = field.value.length >= Constants.MAX_CONVO_STARTERS;-- return (- <div className="relative">- <label className={labelClass} htmlFor="agent_ids">- Sequential Agents- </label>- <div className="mt-4 space-y-2">- <HideSequential />- {/* Display existing agents first */}- {field.value.map((agentId, index) => (- <div key={index} className="relative">- <input- ref={(el) => (inputRefs.current[index] = el)}- value={agentId}- onChange={(e) => {- const newValue = [...field.value];- newValue[index] = e.target.value;- field.onChange(newValue);- }}- className={`${inputClass} pr-10`}- type="text"- maxLength={64}- />- <TooltipAnchor- side="top"- description={'Remove agent ID'}- className="absolute right-1 top-1 flex size-7 items-center justify-center rounded-lg transition-colors duration-200 hover:bg-surface-hover"- onClick={() => handleDeleteAgentId(index)}- >- <X className="size-4" />- </TooltipAnchor>- </div>- ))}- {/* Input for new agent at the bottom */}- <div className="relative">- <input- ref={(el) => (inputRefs.current[field.value.length] = el)}- value={newAgentId}- maxLength={64}- className={`${inputClass} pr-10`}- type="text"- placeholder={hasReachedMax ? 'Max agents reached' : 'Enter agent ID (e.g. agent_1234)'}- onChange={(e) => setNewAgentId(e.target.value)}- onKeyDown={(e) => {- if (e.key === 'Enter') {- e.preventDefault();- if (hasReachedMax) {- triggerShake(e.currentTarget);- } else {- handleAddAgentId();- }- }- }}- />- <Transition- nodeRef={nodeRef}- in={field.value.length < Constants.MAX_CONVO_STARTERS}- timeout={200}- unmountOnExit- >- {(state: string) => (- <div- ref={nodeRef}- style={{- ...defaultStyle,- ...transitionStyles[state as keyof typeof transitionStyles],- transition: state === 'entering' ? 'none' : defaultStyle.transition,- }}- className="absolute right-1 top-1"- >- <TooltipAnchor- side="top"- description={hasReachedMax ? 'Max agents reached' : 'Add agent ID'}- className="flex size-7 items-center justify-center rounded-lg transition-colors duration-200 hover:bg-surface-hover"- onClick={handleAddAgentId}- disabled={hasReachedMax}- >- <Plus className="size-4" />- </TooltipAnchor>- </div>- )}- </Transition>- </div>- </div>- </div>- );-};--export default SequentialAgents;diff --git a/client/src/components/SidePanel/Parameters/settings.ts b/client/src/components/SidePanel/Parameters/settings.tsindex d9fa2384dc..3aebbc606c 100644--- a/client/src/components/SidePanel/Parameters/settings.ts+++ b/client/src/components/SidePanel/Parameters/settings.ts@@ -665,6 +665,7 @@ export const settings: Record<string, SettingsConfiguration | undefined> = {[`${EModelEndpoint.bedrock}-${BedrockProviders.Meta}`]: bedrockGeneral,[`${EModelEndpoint.bedrock}-${BedrockProviders.AI21}`]: bedrockGeneral,[`${EModelEndpoint.bedrock}-${BedrockProviders.Amazon}`]: bedrockGeneral,+ [`${EModelEndpoint.bedrock}-${BedrockProviders.DeepSeek}`]: bedrockGeneral,[EModelEndpoint.google]: googleConfig,};@@ -708,6 +709,7 @@ export const presetSettings: Record<[`${EModelEndpoint.bedrock}-${BedrockProviders.Meta}`]: bedrockGeneralColumns,[`${EModelEndpoint.bedrock}-${BedrockProviders.AI21}`]: bedrockGeneralColumns,[`${EModelEndpoint.bedrock}-${BedrockProviders.Amazon}`]: bedrockGeneralColumns,+ [`${EModelEndpoint.bedrock}-${BedrockProviders.DeepSeek}`]: bedrockGeneralColumns,[EModelEndpoint.google]: {col1: googleCol1,col2: googleCol2,diff --git a/client/src/components/ui/FormInput.tsx b/client/src/components/ui/FormInput.tsxnew file mode 100644index 0000000000..dcce7d692b--- /dev/null+++ b/client/src/components/ui/FormInput.tsx@@ -0,0 +1,62 @@+import React from 'react';+import { Label, Input } from '~/components/ui';+import { cn } from '~/utils';++export default function FormInput({+ field,+ label,+ labelClass,+ inputClass,+ containerClass,+ labelAdjacent,+ placeholder = '',+ type = 'string',+}: {+ field: any;+ label: string;+ labelClass?: string;+ inputClass?: string;+ placeholder?: string;+ containerClass?: string;+ type?: 'string' | 'number';+ labelAdjacent?: React.ReactNode;+}) {+ const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ const value = e.target.value;++ if (type !== 'number') {+ field.onChange(value);+ return;+ }++ if (value === '') {+ field.onChange(value);+ } else if (!isNaN(Number(value))) {+ field.onChange(Number(value));+ }+ };++ return (+ <div className={cn('flex w-full flex-col items-center gap-2', containerClass)}>+ <div className="flex w-full items-center justify-start gap-2">+ <Label+ htmlFor={`${field.name}-input`}+ className={cn('text-left text-sm font-semibold text-text-primary', labelClass)}+ >+ {label}+ </Label>+ {labelAdjacent}+ </div>+ <Input+ id={`${field.name}-input`}+ value={field.value ?? ''}+ onChange={handleChange}+ placeholder={placeholder}+ className={cn(+ 'flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2',+ inputClass,+ )}+ />+ </div>+ );+}diff --git a/client/src/components/ui/index.ts b/client/src/components/ui/index.tsindex b0025d2536..1f23d51eab 100644--- a/client/src/components/ui/index.ts+++ b/client/src/components/ui/index.ts@@ -29,6 +29,7 @@ export * from './InputOTP';export { default as Combobox } from './Combobox';export { default as Dropdown } from './Dropdown';export { default as FileUpload } from './FileUpload';+export { default as FormInput } from './FormInput';export { default as DropdownPopup } from './DropdownPopup';export { default as DelayedRender } from './DelayedRender';export { default as ThemeSelector } from './ThemeSelector';diff --git a/client/src/hooks/SSE/useStepHandler.ts b/client/src/hooks/SSE/useStepHandler.tsindex 06e622fc8a..b54617d0bb 100644--- a/client/src/hooks/SSE/useStepHandler.ts+++ b/client/src/hooks/SSE/useStepHandler.ts@@ -23,6 +23,7 @@ type TStepEvent = {event: string;data:| Agents.MessageDeltaEvent+ | Agents.AgentUpdate| Agents.RunStep| Agents.ToolEndEvent| {@@ -87,6 +88,17 @@ export default function useStepHandler({if (contentPart.tool_call_ids != null) {update.tool_call_ids = contentPart.tool_call_ids;}+ updatedContent[index] = update;+ } else if (+ contentType.startsWith(ContentTypes.AGENT_UPDATE) &&+ ContentTypes.AGENT_UPDATE in contentPart &&+ contentPart.agent_update+ ) {+ const update: Agents.AgentUpdate = {+ type: ContentTypes.AGENT_UPDATE,+ agent_update: contentPart.agent_update,+ };+updatedContent[index] = update;} else if (contentType.startsWith(ContentTypes.THINK) &&@@ -191,29 +203,20 @@ export default function useStepHandler({});}} else if (event === 'on_agent_update') {- const { runId, message } = data as { runId?: string; message: string };- const responseMessageId = runId ?? '';+ const { agent_update } = data as Agents.AgentUpdate;+ const responseMessageId = agent_update.runId || '';if (!responseMessageId) {console.warn('No message id found in agent update event');return;}- const responseMessage = messages[messages.length - 1] as TMessage;-- const response = {- ...responseMessage,- parentMessageId: userMessage.messageId,- conversationId: userMessage.conversationId,- messageId: responseMessageId,- content: [- {- type: ContentTypes.TEXT,- text: message,- },- ],- } as TMessage;-- setMessages([...messages.slice(0, -1), response]);+ const response = messageMap.current.get(responseMessageId);+ if (response) {+ const updatedResponse = updateContent(response, agent_update.index, data);+ messageMap.current.set(responseMessageId, updatedResponse);+ const currentMessages = getMessages() || [];+ setMessages([...currentMessages.slice(0, -1), updatedResponse]);+ }} else if (event === 'on_message_delta') {const messageDelta = data as Agents.MessageDeltaEvent;const runStep = stepMap.current.get(messageDelta.id);diff --git a/client/src/locales/en/translation.json b/client/src/locales/en/translation.jsonindex e56024e169..539db6917c 100644--- a/client/src/locales/en/translation.json+++ b/client/src/locales/en/translation.json@@ -465,13 +465,20 @@"com_ui_admin_access_warning": "Disabling Admin access to this feature may cause unexpected UI issues requiring refresh. If saved, the only way to revert is via the interface setting in librechat.yaml config which affects all roles.","com_ui_admin_settings": "Admin Settings","com_ui_advanced": "Advanced",+ "com_ui_advanced_settings": "Advanced Settings","com_ui_agent": "Agent",+ "com_ui_agent_chain": "Agent Chain (Mixture-of-Agents)",+ "com_ui_agent_chain_info": "Enables creating sequences of agents. Each agent can access outputs from previous agents in the chain. Based on the \"Mixture-of-Agents\" architecture where agents use previous outputs as auxiliary information.",+ "com_ui_agent_chain_max": "You have reached the maximum of {{0}} agents.","com_ui_agent_delete_error": "There was an error deleting the agent","com_ui_agent_deleted": "Successfully deleted agent","com_ui_agent_duplicate_error": "There was an error duplicating the agent","com_ui_agent_duplicated": "Agent duplicated successfully","com_ui_agent_editing_allowed": "Other users can already edit this agent",+ "com_ui_agent_recursion_limit": "Max Agent Steps",+ "com_ui_agent_recursion_limit_info": "Limits how many steps the agent can take in a run before giving a final response. Default is 25 steps. A step is either an AI API request or a tool usage round. For example, a basic tool interaction takes 3 steps: initial request, tool usage, and follow-up request.","com_ui_agent_shared_to_all": "something needs to go here. was empty",+ "com_ui_agent_var": "{{0}} agent","com_ui_agents": "Agents","com_ui_agents_allow_create": "Allow creating Agents","com_ui_agents_allow_share_global": "Allow sharing Agents to all users",diff --git a/client/src/mobile.css b/client/src/mobile.cssindex 3c68d8d0ea..8d5a3aeeb5 100644--- a/client/src/mobile.css+++ b/client/src/mobile.css@@ -361,4 +361,14 @@ div[role="tabpanel"][data-state="active"][data-orientation="horizontal"][aria-la.cm-content:focus {outline: none !important;+}++p.whitespace-pre-wrap a, li a {+ color: #0066cc;+ text-decoration: underline;+ font-weight: bold;+}++.dark p.whitespace-pre-wrap a, .dark li a {+ color: #52a0ff;}\ No newline at end of filediff --git a/config/update-banner.js b/config/update-banner.jsindex 4640230bc2..2f2d65bc2d 100644--- a/config/update-banner.js+++ b/config/update-banner.js@@ -2,7 +2,7 @@ const path = require('path');const { v5: uuidv5 } = require('uuid');require('module-alias')({ base: path.resolve(__dirname, '..', 'api') });const { askQuestion, askMultiLineQuestion, silentExit } = require('./helpers');-const Banner = require('~/models/schema/banner');+const { Banner } = require('~/models/Banner');const connect = require('./connect');(async () => {diff --git a/librechat.example.yaml b/librechat.example.yamlindex bc42ff89fc..f624c47fe8 100644--- a/librechat.example.yaml+++ b/librechat.example.yaml@@ -152,8 +152,10 @@ endpoints:# # (optional) Assistant Capabilities available to all users. Omit the ones you wish to exclude. Defaults to list below.# capabilities: ["code_interpreter", "retrieval", "actions", "tools", "image_vision"]# agents:- # (optional) Maximum recursion depth for agents, defaults to 25+ # (optional) Default recursion depth for agents, defaults to 25# recursionLimit: 50+ # (optional) Max recursion depth for agents, defaults to 25+ # maxRecursionLimit: 100# (optional) Disable the builder interface for agents# disableBuilder: false# (optional) Agent Capabilities available to all users. Omit the ones you wish to exclude. Defaults to list below.diff --git a/package-lock.json b/package-lock.jsonindex db80801444..cdd6589237 100644--- a/package-lock.json+++ b/package-lock.json@@ -58,10 +58,10 @@"@keyv/redis": "^2.8.1","@langchain/community": "^0.3.34","@langchain/core": "^0.3.40",- "@langchain/google-genai": "^0.1.9",- "@langchain/google-vertexai": "^0.2.0",+ "@langchain/google-genai": "^0.1.11",+ "@langchain/google-vertexai": "^0.2.2","@langchain/textsplitters": "^0.1.0",- "@librechat/agents": "^2.2.0",+ "@librechat/agents": "^2.2.8","@librechat/data-schemas": "*","@waylaidwanderer/fetch-event-source": "^3.0.1","axios": "^1.8.2",@@ -665,503 +665,952 @@}}},- "api/node_modules/@types/node": {- "version": "18.19.14",- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.14.tgz",- "integrity": "sha512-EnQ4Us2rmOS64nHDWr0XqAD8DsO6f3XR6lf9UIIrZQpUzPVdN/oPuEzfDWNHSyXLvoGgjuEm/sPwFGSSs35Wtg==",- "dependencies": {- "undici-types": "~5.26.4"- }- },- "api/node_modules/@types/whatwg-url": {- "version": "11.0.5",- "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz",- "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==",- "dependencies": {- "@types/webidl-conversions": "*"- }- },- "api/node_modules/agent-base": {- "version": "7.1.3",- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",- "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",- "license": "MIT",- "engines": {- "node": ">= 14"- }- },- "api/node_modules/bson": {- "version": "6.10.3",- "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.3.tgz",- "integrity": "sha512-MTxGsqgYTwfshYWTRdmZRC+M7FnG1b4y7RO7p2k3X24Wq0yv1m77Wsj0BzlPzd/IowgESfsruQCUToa7vbOpPQ==",- "engines": {- "node": ">=16.20.1"- }- },- "api/node_modules/cookie-parser": {- "version": "1.4.7",- "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.7.tgz",- "integrity": "sha512-nGUvgXnotP3BsjiLX2ypbQnWoGUPIIfHQNZkkC668ntrzGWEZVW70HDEB1qnNGMicPje6EttlIgzo51YSwNQGw==",- "dependencies": {- "cookie": "0.7.2",- "cookie-signature": "1.0.6"- },- "engines": {- "node": ">= 0.8.0"- }- },- "api/node_modules/express-rate-limit": {- "version": "7.4.1",- "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.4.1.tgz",- "integrity": "sha512-KS3efpnpIDVIXopMc65EMbWbUht7qvTCdtCR2dD/IZmi9MIkopYESwyRqLgv8Pfu589+KqDqOdzJWW7AHoACeg==",- "engines": {- "node": ">= 16"- },- "funding": {- "url": "https://github.com/sponsors/express-rate-limit"- },- "peerDependencies": {- "express": "4 || 5 || ^5.0.0-beta.1"- }- },- "api/node_modules/express/node_modules/cookie": {- "version": "0.7.1",- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",- "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",- "extraneous": true,- "engines": {- "node": ">= 0.6"- }- },- "api/node_modules/follow-redirects": {- "version": "1.15.9",- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",- "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",- "dev": true,- "funding": [- {- "type": "individual",- "url": "https://github.com/sponsors/RubenVerborgh"- }- ],- "license": "MIT",- "engines": {- "node": ">=4.0"- },- "peerDependenciesMeta": {- "debug": {- "optional": true- }- }- },- "api/node_modules/formidable": {- "version": "3.5.2",- "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.2.tgz",- "integrity": "sha512-Jqc1btCy3QzRbJaICGwKcBfGWuLADRerLzDqi2NwSt/UkXLsHJw2TVResiaoBufHVHy9aSgClOHCeJsSsFLTbg==",- "dev": true,- "license": "MIT",- "dependencies": {- "dezalgo": "^1.0.4",- "hexoid": "^2.0.0",- "once": "^1.4.0"- },- "funding": {- "url": "https://ko-fi.com/tunnckoCore/commissions"- }- },- "api/node_modules/hexoid": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-2.0.0.tgz",- "integrity": "sha512-qlspKUK7IlSQv2o+5I7yhUd7TxlOG2Vr5LTa3ve2XSNVKAL/n/u/7KLvKmFNimomDIKvZFXWHv0T12mv7rT8Aw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "api/node_modules/https-proxy-agent": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",- "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "api/node_modules/@librechat/agents": {+ "version": "2.2.8",+ "resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-2.2.8.tgz",+ "integrity": "sha512-cRG1Tz20sTHGzfJ3vraHRpR3V5nNjnpfRqTxN9TZNd3mYzgWYGO488fHJvE/vhshuWh1979yqsh7Byj4M4WrSw==","dependencies": {- "agent-base": "^7.1.2",- "debug": "4"+ "@aws-crypto/sha256-js": "^5.2.0",+ "@aws-sdk/credential-provider-node": "^3.613.0",+ "@aws-sdk/types": "^3.609.0",+ "@langchain/anthropic": "^0.3.14",+ "@langchain/aws": "^0.1.7",+ "@langchain/community": "^0.3.35",+ "@langchain/core": "^0.3.40",+ "@langchain/deepseek": "^0.0.1",+ "@langchain/google-genai": "^0.1.11",+ "@langchain/google-vertexai": "^0.2.2",+ "@langchain/langgraph": "^0.2.49",+ "@langchain/mistralai": "^0.0.26",+ "@langchain/ollama": "^0.1.5",+ "@langchain/openai": "^0.4.2",+ "@langchain/xai": "^0.0.2",+ "@smithy/eventstream-codec": "^2.2.0",+ "@smithy/protocol-http": "^3.0.6",+ "@smithy/signature-v4": "^2.0.10",+ "@smithy/util-utf8": "^2.0.0",+ "dotenv": "^16.4.7",+ "https-proxy-agent": "^7.0.6",+ "nanoid": "^3.3.7"},"engines": {- "node": ">= 14"+ "node": ">=14.0.0"}},- "api/node_modules/langchain": {- "version": "0.3.19",- "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.3.19.tgz",- "integrity": "sha512-aGhoTvTBS5ulatA67RHbJ4bcV5zcYRYdm5IH+hpX99RYSFXG24XF3ghSjhYi6sxW+SUnEQ99fJhA5kroVpKNhw==",+ "api/node_modules/@librechat/agents/node_modules/@langchain/community": {+ "version": "0.3.35",+ "resolved": "https://registry.npmjs.org/@langchain/community/-/community-0.3.35.tgz",+ "integrity": "sha512-dOV+Uky/zcwN6XJ0I2lQ8cOZ59NOt9OuyuKQhxuGzLIu3d08xVTaEIFSTuuU1f8fN7Vl1yUUJlQENoxW4OdzvQ==","dependencies": {- "@langchain/openai": ">=0.1.0 <0.5.0",- "@langchain/textsplitters": ">=0.0.0 <0.2.0",- "js-tiktoken": "^1.0.12",+ "@langchain/openai": ">=0.2.0 <0.5.0",+ "binary-extensions": "^2.2.0",+ "expr-eval": "^2.0.2",+ "flat": "^5.0.2","js-yaml": "^4.1.0",- "jsonpointer": "^5.0.1",+ "langchain": ">=0.2.3 <0.3.0 || >=0.3.4 <0.4.0","langsmith": ">=0.2.8 <0.4.0",- "openapi-types": "^12.1.3",- "p-retry": "4","uuid": "^10.0.0",- "yaml": "^2.2.1",- "zod": "^3.22.4",- "zod-to-json-schema": "^3.22.3"+ "zod": "^3.22.3",+ "zod-to-json-schema": "^3.22.5"},"engines": {"node": ">=18"},"peerDependencies": {- "@langchain/anthropic": "*",- "@langchain/aws": "*",- "@langchain/cerebras": "*",- "@langchain/cohere": "*",+ "@arcjet/redact": "^v1.0.0-alpha.23",+ "@aws-crypto/sha256-js": "^5.0.0",+ "@aws-sdk/client-bedrock-agent-runtime": "^3.749.0",+ "@aws-sdk/client-bedrock-runtime": "^3.749.0",+ "@aws-sdk/client-dynamodb": "^3.749.0",+ "@aws-sdk/client-kendra": "^3.749.0",+ "@aws-sdk/client-lambda": "^3.749.0",+ "@aws-sdk/client-s3": "^3.749.0",+ "@aws-sdk/client-sagemaker-runtime": "^3.749.0",+ "@aws-sdk/client-sfn": "^3.749.0",+ "@aws-sdk/credential-provider-node": "^3.388.0",+ "@azure/search-documents": "^12.0.0",+ "@azure/storage-blob": "^12.15.0",+ "@browserbasehq/sdk": "*",+ "@browserbasehq/stagehand": "^1.0.0",+ "@clickhouse/client": "^0.2.5",+ "@cloudflare/ai": "*",+ "@datastax/astra-db-ts": "^1.0.0",+ "@elastic/elasticsearch": "^8.4.0",+ "@getmetal/metal-sdk": "*",+ "@getzep/zep-cloud": "^1.0.6",+ "@getzep/zep-js": "^0.9.0",+ "@gomomento/sdk": "^1.51.1",+ "@gomomento/sdk-core": "^1.51.1",+ "@google-ai/generativelanguage": "*",+ "@google-cloud/storage": "^6.10.1 || ^7.7.0",+ "@gradientai/nodejs-sdk": "^1.2.0",+ "@huggingface/inference": "^2.6.4",+ "@huggingface/transformers": "^3.2.3",+ "@ibm-cloud/watsonx-ai": "*",+ "@lancedb/lancedb": "^0.12.0","@langchain/core": ">=0.2.21 <0.4.0",- "@langchain/deepseek": "*",- "@langchain/google-genai": "*",- "@langchain/google-vertexai": "*",- "@langchain/google-vertexai-web": "*",- "@langchain/groq": "*",- "@langchain/mistralai": "*",- "@langchain/ollama": "*",- "@langchain/xai": "*",- "axios": "*",- "cheerio": "*",- "handlebars": "^4.7.8",- "peggy": "^3.0.2",- "typeorm": "*"+ "@layerup/layerup-security": "^1.5.12",+ "@libsql/client": "^0.14.0",+ "@mendable/firecrawl-js": "^1.4.3",+ "@mlc-ai/web-llm": "*",+ "@mozilla/readability": "*",+ "@neondatabase/serverless": "*",+ "@notionhq/client": "^2.2.10",+ "@opensearch-project/opensearch": "*",+ "@pinecone-database/pinecone": "*",+ "@planetscale/database": "^1.8.0",+ "@premai/prem-sdk": "^0.3.25",+ "@qdrant/js-client-rest": "^1.8.2",+ "@raycast/api": "^1.55.2",+ "@rockset/client": "^0.9.1",+ "@smithy/eventstream-codec": "^2.0.5",+ "@smithy/protocol-http": "^3.0.6",+ "@smithy/signature-v4": "^2.0.10",+ "@smithy/util-utf8": "^2.0.0",+ "@spider-cloud/spider-client": "^0.0.21",+ "@supabase/supabase-js": "^2.45.0",+ "@tensorflow-models/universal-sentence-encoder": "*",+ "@tensorflow/tfjs-converter": "*",+ "@tensorflow/tfjs-core": "*",+ "@upstash/ratelimit": "^1.1.3 || ^2.0.3",+ "@upstash/redis": "^1.20.6",+ "@upstash/vector": "^1.1.1",+ "@vercel/kv": "*",+ "@vercel/postgres": "*",+ "@writerai/writer-sdk": "^0.40.2",+ "@xata.io/client": "^0.28.0",+ "@zilliz/milvus2-sdk-node": ">=2.3.5",+ "apify-client": "^2.7.1",+ "assemblyai": "^4.6.0",+ "better-sqlite3": ">=9.4.0 <12.0.0",+ "cassandra-driver": "^4.7.2",+ "cborg": "^4.1.1",+ "cheerio": "^1.0.0-rc.12",+ "chromadb": "*",+ "closevector-common": "0.1.3",+ "closevector-node": "0.1.6",+ "closevector-web": "0.1.6",+ "cohere-ai": "*",+ "convex": "^1.3.1",+ "crypto-js": "^4.2.0",+ "d3-dsv": "^2.0.0",+ "discord.js": "^14.14.1",+ "dria": "^0.0.3",+ "duck-duck-scrape": "^2.2.5",+ "epub2": "^3.0.1",+ "fast-xml-parser": "*",+ "firebase-admin": "^11.9.0 || ^12.0.0",+ "google-auth-library": "*",+ "googleapis": "*",+ "hnswlib-node": "^3.0.0",+ "html-to-text": "^9.0.5",+ "ibm-cloud-sdk-core": "*",+ "ignore": "^5.2.0",+ "interface-datastore": "^8.2.11",+ "ioredis": "^5.3.2",+ "it-all": "^3.0.4",+ "jsdom": "*",+ "jsonwebtoken": "^9.0.2",+ "llmonitor": "^0.5.9",+ "lodash": "^4.17.21",+ "lunary": "^0.7.10",+ "mammoth": "^1.6.0",+ "mongodb": ">=5.2.0",+ "mysql2": "^3.9.8",+ "neo4j-driver": "*",+ "notion-to-md": "^3.1.0",+ "officeparser": "^4.0.4",+ "openai": "*",+ "pdf-parse": "1.1.1",+ "pg": "^8.11.0",+ "pg-copy-streams": "^6.0.5",+ "pickleparser": "^0.2.1",+ "playwright": "^1.32.1",+ "portkey-ai": "^0.1.11",+ "puppeteer": "*",+ "pyodide": ">=0.24.1 <0.27.0",+ "redis": "*",+ "replicate": "*",+ "sonix-speech-recognition": "^2.1.1",+ "srt-parser-2": "^1.2.3",+ "typeorm": "^0.3.20",+ "typesense": "^1.5.3",+ "usearch": "^1.1.1",+ "voy-search": "0.6.2",+ "weaviate-ts-client": "*",+ "web-auth-library": "^1.0.3",+ "word-extractor": "*",+ "ws": "^8.14.2",+ "youtubei.js": "*"},"peerDependenciesMeta": {- "@langchain/anthropic": {+ "@arcjet/redact": {"optional": true},- "@langchain/aws": {+ "@aws-crypto/sha256-js": {"optional": true},- "@langchain/cerebras": {+ "@aws-sdk/client-bedrock-agent-runtime": {"optional": true},- "@langchain/cohere": {+ "@aws-sdk/client-bedrock-runtime": {"optional": true},- "@langchain/deepseek": {+ "@aws-sdk/client-dynamodb": {"optional": true},- "@langchain/google-genai": {+ "@aws-sdk/client-kendra": {"optional": true},- "@langchain/google-vertexai": {+ "@aws-sdk/client-lambda": {"optional": true},- "@langchain/google-vertexai-web": {+ "@aws-sdk/client-s3": {"optional": true},- "@langchain/groq": {+ "@aws-sdk/client-sagemaker-runtime": {"optional": true},- "@langchain/mistralai": {+ "@aws-sdk/client-sfn": {"optional": true},- "@langchain/ollama": {+ "@aws-sdk/credential-provider-node": {"optional": true},- "@langchain/xai": {+ "@aws-sdk/dsql-signer": {"optional": true},- "axios": {+ "@azure/search-documents": {"optional": true},- "cheerio": {+ "@azure/storage-blob": {"optional": true},- "handlebars": {+ "@browserbasehq/sdk": {"optional": true},- "peggy": {+ "@clickhouse/client": {"optional": true},- "typeorm": {+ "@cloudflare/ai": {"optional": true- }- }- },- "api/node_modules/mongodb": {- "version": "6.14.2",- "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.14.2.tgz",- "integrity": "sha512-kMEHNo0F3P6QKDq17zcDuPeaywK/YaJVCEQRzPF3TOM/Bl9MFg64YE5Tu7ifj37qZJMhwU1tl2Ioivws5gRG5Q==",- "dependencies": {- "@mongodb-js/saslprep": "^1.1.9",- "bson": "^6.10.3",- "mongodb-connection-string-url": "^3.0.0"- },- "engines": {- "node": ">=16.20.1"- },- "peerDependencies": {- "@aws-sdk/credential-providers": "^3.188.0",- "@mongodb-js/zstd": "^1.1.0 || ^2.0.0",- "gcp-metadata": "^5.2.0",- "kerberos": "^2.0.1",- "mongodb-client-encryption": ">=6.0.0 <7",- "snappy": "^7.2.2",- "socks": "^2.7.1"- },- "peerDependenciesMeta": {- "@aws-sdk/credential-providers": {+ },+ "@datastax/astra-db-ts": {"optional": true},- "@mongodb-js/zstd": {+ "@elastic/elasticsearch": {"optional": true},- "gcp-metadata": {+ "@getmetal/metal-sdk": {"optional": true},- "kerberos": {+ "@getzep/zep-cloud": {"optional": true},- "mongodb-client-encryption": {+ "@getzep/zep-js": {"optional": true},- "snappy": {+ "@gomomento/sdk": {"optional": true},- "socks": {+ "@gomomento/sdk-core": {"optional": true- }- }- },- "api/node_modules/mongodb-connection-string-url": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.1.tgz",- "integrity": "sha512-XqMGwRX0Lgn05TDB4PyG2h2kKO/FfWJyCzYQbIhXUxz7ETt0I/FqHjUeqj37irJ+Dl1ZtU82uYyj14u2XsZKfg==",- "dependencies": {- "@types/whatwg-url": "^11.0.2",- "whatwg-url": "^13.0.0"- }- },- "api/node_modules/mongodb-connection-string-url/node_modules/tr46": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz",- "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==",- "dependencies": {- "punycode": "^2.3.0"- },- "engines": {- "node": ">=14"- }- },- "api/node_modules/mongodb-connection-string-url/node_modules/webidl-conversions": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",- "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",- "engines": {- "node": ">=12"- }- },- "api/node_modules/mongodb-connection-string-url/node_modules/whatwg-url": {- "version": "13.0.0",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz",- "integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==",- "dependencies": {- "tr46": "^4.1.1",- "webidl-conversions": "^7.0.0"- },- "engines": {- "node": ">=16"- }- },- "api/node_modules/mongodb-memory-server": {- "version": "10.1.3",- "resolved": "https://registry.npmjs.org/mongodb-memory-server/-/mongodb-memory-server-10.1.3.tgz",- "integrity": "sha512-QCUjsIIXSYv/EgkpDAjfhlqRKo6N+qR6DD43q4lyrCVn24xQmvlArdWHW/Um5RS4LkC9YWC3XveSncJqht2Hbg==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "dependencies": {- "mongodb-memory-server-core": "10.1.3",- "tslib": "^2.7.0"- },- "engines": {- "node": ">=16.20.1"- }- },- "api/node_modules/mongodb-memory-server-core": {- "version": "10.1.3",- "resolved": "https://registry.npmjs.org/mongodb-memory-server-core/-/mongodb-memory-server-core-10.1.3.tgz",- "integrity": "sha512-ayBQHeV74wRHhgcAKpxHYI4th9Ufidy/m3XhJnLFRufKsOyDsyHYU3Zxv5Fm4hxsWE6wVd0GAVcQ7t7XNkivOg==",- "dev": true,- "license": "MIT",- "dependencies": {- "async-mutex": "^0.5.0",- "camelcase": "^6.3.0",- "debug": "^4.3.7",- "find-cache-dir": "^3.3.2",- "follow-redirects": "^1.15.9",- "https-proxy-agent": "^7.0.5",- "mongodb": "^6.9.0",- "new-find-package-json": "^2.0.0",- "semver": "^7.6.3",- "tar-stream": "^3.1.7",- "tslib": "^2.7.0",- "yauzl": "^3.1.3"- },- "engines": {- "node": ">=16.20.1"- }- },- "api/node_modules/mongoose": {- "version": "8.12.1",- "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.12.1.tgz",- "integrity": "sha512-UW22y8QFVYmrb36hm8cGncfn4ARc/XsYWQwRTaj0gxtQk1rDuhzDO1eBantS+hTTatfAIS96LlRCJrcNHvW5+Q==",- "dependencies": {- "bson": "^6.10.3",- "kareem": "2.6.3",- "mongodb": "~6.14.0",- "mpath": "0.9.0",- "mquery": "5.0.0",- "ms": "2.1.3",- "sift": "17.1.3"- },- "engines": {- "node": ">=16.20.1"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mongoose"- }- },- "api/node_modules/node-fetch": {- "version": "2.6.7",- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",- "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",- "dependencies": {- "whatwg-url": "^5.0.0"- },- "engines": {- "node": "4.x || >=6.0.0"- },- "peerDependencies": {- "encoding": "^0.1.0"- },- "peerDependenciesMeta": {- "encoding": {+ },+ "@google-ai/generativelanguage": {"optional": true- }- }- },- "api/node_modules/openai": {- "version": "4.71.1",- "resolved": "https://registry.npmjs.org/openai/-/openai-4.71.1.tgz",- "integrity": "sha512-C6JNMaQ1eijM0lrjiRUL3MgThVP5RdwNAghpbJFdW0t11LzmyqON8Eh8MuUuEZ+CeD6bgYl2Fkn2BoptVxv9Ug==",- "license": "Apache-2.0",- "dependencies": {- "@types/node": "^18.11.18",- "@types/node-fetch": "^2.6.4",- "abort-controller": "^3.0.0",- "agentkeepalive": "^4.2.1",- "form-data-encoder": "1.7.2",- "formdata-node": "^4.3.2",- "node-fetch": "^2.6.7"- },- "bin": {- "openai": "bin/cli"+ },+ "@google-cloud/storage": {+ "optional": true+ },+ "@gradientai/nodejs-sdk": {+ "optional": true+ },+ "@huggingface/inference": {+ "optional": true+ },+ "@huggingface/transformers": {+ "optional": true+ },+ "@lancedb/lancedb": {+ "optional": true+ },+ "@layerup/layerup-security": {+ "optional": true+ },+ "@libsql/client": {+ "optional": true+ },+ "@mendable/firecrawl-js": {+ "optional": true+ },+ "@mlc-ai/web-llm": {+ "optional": true+ },+ "@mozilla/readability": {+ "optional": true+ },+ "@neondatabase/serverless": {+ "optional": true+ },+ "@notionhq/client": {+ "optional": true+ },+ "@opensearch-project/opensearch": {+ "optional": true+ },+ "@pinecone-database/pinecone": {+ "optional": true+ },+ "@planetscale/database": {+ "optional": true+ },+ "@premai/prem-sdk": {+ "optional": true+ },+ "@qdrant/js-client-rest": {+ "optional": true+ },+ "@raycast/api": {+ "optional": true+ },+ "@rockset/client": {+ "optional": true+ },+ "@smithy/eventstream-codec": {+ "optional": true+ },+ "@smithy/protocol-http": {+ "optional": true+ },+ "@smithy/signature-v4": {+ "optional": true+ },+ "@smithy/util-utf8": {+ "optional": true+ },+ "@spider-cloud/spider-client": {+ "optional": true+ },+ "@supabase/supabase-js": {+ "optional": true+ },+ "@tensorflow-models/universal-sentence-encoder": {+ "optional": true+ },+ "@tensorflow/tfjs-converter": {+ "optional": true+ },+ "@tensorflow/tfjs-core": {+ "optional": true+ },+ "@upstash/ratelimit": {+ "optional": true+ },+ "@upstash/redis": {+ "optional": true+ },+ "@upstash/vector": {+ "optional": true+ },+ "@vercel/kv": {+ "optional": true+ },+ "@vercel/postgres": {+ "optional": true+ },+ "@writerai/writer-sdk": {+ "optional": true+ },+ "@xata.io/client": {+ "optional": true+ },+ "@zilliz/milvus2-sdk-node": {+ "optional": true+ },+ "apify-client": {+ "optional": true+ },+ "assemblyai": {+ "optional": true+ },+ "better-sqlite3": {+ "optional": true+ },+ "cassandra-driver": {+ "optional": true+ },+ "cborg": {+ "optional": true+ },+ "cheerio": {+ "optional": true+ },+ "chromadb": {+ "optional": true+ },+ "closevector-common": {+ "optional": true+ },+ "closevector-node": {+ "optional": true+ },+ "closevector-web": {+ "optional": true+ },+ "cohere-ai": {+ "optional": true+ },+ "convex": {+ "optional": true+ },+ "crypto-js": {+ "optional": true+ },+ "d3-dsv": {+ "optional": true+ },+ "discord.js": {+ "optional": true+ },+ "dria": {+ "optional": true+ },+ "duck-duck-scrape": {+ "optional": true+ },+ "epub2": {+ "optional": true+ },+ "fast-xml-parser": {+ "optional": true+ },+ "firebase-admin": {+ "optional": true+ },+ "google-auth-library": {+ "optional": true+ },+ "googleapis": {+ "optional": true+ },+ "hnswlib-node": {+ "optional": true+ },+ "html-to-text": {+ "optional": true+ },+ "ignore": {+ "optional": true+ },+ "interface-datastore": {+ "optional": true+ },+ "ioredis": {+ "optional": true+ },+ "it-all": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ },+ "jsonwebtoken": {+ "optional": true+ },+ "llmonitor": {+ "optional": true+ },+ "lodash": {+ "optional": true+ },+ "lunary": {+ "optional": true+ },+ "mammoth": {+ "optional": true+ },+ "mongodb": {+ "optional": true+ },+ "mysql2": {+ "optional": true+ },+ "neo4j-driver": {+ "optional": true+ },+ "notion-to-md": {+ "optional": true+ },+ "officeparser": {+ "optional": true+ },+ "pdf-parse": {+ "optional": true+ },+ "pg": {+ "optional": true+ },+ "pg-copy-streams": {+ "optional": true+ },+ "pickleparser": {+ "optional": true+ },+ "playwright": {+ "optional": true+ },+ "portkey-ai": {+ "optional": true+ },+ "puppeteer": {+ "optional": true+ },+ "pyodide": {+ "optional": true+ },+ "redis": {+ "optional": true+ },+ "replicate": {+ "optional": true+ },+ "sonix-speech-recognition": {+ "optional": true+ },+ "srt-parser-2": {+ "optional": true+ },+ "typeorm": {+ "optional": true+ },+ "typesense": {+ "optional": true+ },+ "usearch": {+ "optional": true+ },+ "voy-search": {+ "optional": true+ },+ "weaviate-ts-client": {+ "optional": true+ },+ "web-auth-library": {+ "optional": true+ },+ "word-extractor": {+ "optional": true+ },+ "ws": {+ "optional": true+ },+ "youtubei.js": {+ "optional": true+ }+ }+ },+ "api/node_modules/@types/node": {+ "version": "18.19.14",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.14.tgz",+ "integrity": "sha512-EnQ4Us2rmOS64nHDWr0XqAD8DsO6f3XR6lf9UIIrZQpUzPVdN/oPuEzfDWNHSyXLvoGgjuEm/sPwFGSSs35Wtg==",+ "dependencies": {+ "undici-types": "~5.26.4"+ }+ },+ "api/node_modules/@types/whatwg-url": {+ "version": "11.0.5",+ "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz",+ "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==",+ "dependencies": {+ "@types/webidl-conversions": "*"+ }+ },+ "api/node_modules/agent-base": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "api/node_modules/bson": {+ "version": "6.10.3",+ "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.3.tgz",+ "integrity": "sha512-MTxGsqgYTwfshYWTRdmZRC+M7FnG1b4y7RO7p2k3X24Wq0yv1m77Wsj0BzlPzd/IowgESfsruQCUToa7vbOpPQ==",+ "engines": {+ "node": ">=16.20.1"+ }+ },+ "api/node_modules/cookie-parser": {+ "version": "1.4.7",+ "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.7.tgz",+ "integrity": "sha512-nGUvgXnotP3BsjiLX2ypbQnWoGUPIIfHQNZkkC668ntrzGWEZVW70HDEB1qnNGMicPje6EttlIgzo51YSwNQGw==",+ "dependencies": {+ "cookie": "0.7.2",+ "cookie-signature": "1.0.6"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "api/node_modules/express-rate-limit": {+ "version": "7.4.1",+ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.4.1.tgz",+ "integrity": "sha512-KS3efpnpIDVIXopMc65EMbWbUht7qvTCdtCR2dD/IZmi9MIkopYESwyRqLgv8Pfu589+KqDqOdzJWW7AHoACeg==",+ "engines": {+ "node": ">= 16"+ },+ "funding": {+ "url": "https://github.com/sponsors/express-rate-limit"},"peerDependencies": {- "zod": "^3.23.8"+ "express": "4 || 5 || ^5.0.0-beta.1"+ }+ },+ "api/node_modules/express/node_modules/cookie": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",+ "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",+ "extraneous": true,+ "engines": {+ "node": ">= 0.6"+ }+ },+ "api/node_modules/follow-redirects": {+ "version": "1.15.9",+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",+ "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",+ "dev": true,+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/RubenVerborgh"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=4.0"},"peerDependenciesMeta": {- "zod": {+ "debug": {"optional": true}}},- "api/node_modules/superagent": {- "version": "9.0.2",- "resolved": "https://registry.npmjs.org/superagent/-/superagent-9.0.2.tgz",- "integrity": "sha512-xuW7dzkUpcJq7QnhOsnNUgtYp3xRwpt2F7abdRYIpCsAt0hhUqia0EdxyXZQQpNmGtsCzYHryaKSV3q3GJnq7w==",+ "api/node_modules/formidable": {+ "version": "3.5.2",+ "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.2.tgz",+ "integrity": "sha512-Jqc1btCy3QzRbJaICGwKcBfGWuLADRerLzDqi2NwSt/UkXLsHJw2TVResiaoBufHVHy9aSgClOHCeJsSsFLTbg==","dev": true,"license": "MIT","dependencies": {- "component-emitter": "^1.3.0",- "cookiejar": "^2.1.4",- "debug": "^4.3.4",- "fast-safe-stringify": "^2.1.1",- "form-data": "^4.0.0",- "formidable": "^3.5.1",- "methods": "^1.1.2",- "mime": "2.6.0",- "qs": "^6.11.0"+ "dezalgo": "^1.0.4",+ "hexoid": "^2.0.0",+ "once": "^1.4.0"},- "engines": {- "node": ">=14.18.0"+ "funding": {+ "url": "https://ko-fi.com/tunnckoCore/commissions"}},- "api/node_modules/superagent/node_modules/mime": {- "version": "2.6.0",- "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",- "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",+ "api/node_modules/hexoid": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-2.0.0.tgz",+ "integrity": "sha512-qlspKUK7IlSQv2o+5I7yhUd7TxlOG2Vr5LTa3ve2XSNVKAL/n/u/7KLvKmFNimomDIKvZFXWHv0T12mv7rT8Aw==","dev": true,"license": "MIT",- "bin": {- "mime": "cli.js"- },"engines": {- "node": ">=4.0.0"+ "node": ">=8"}},- "api/node_modules/supertest": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/supertest/-/supertest-7.0.0.tgz",- "integrity": "sha512-qlsr7fIC0lSddmA3tzojvzubYxvlGtzumcdHgPwbFWMISQwL22MhM2Y3LNt+6w9Yyx7559VW5ab70dgphm8qQA==",- "dev": true,- "license": "MIT",+ "api/node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==","dependencies": {- "methods": "^1.1.2",- "superagent": "^9.0.1"+ "agent-base": "^7.1.2",+ "debug": "4"},"engines": {- "node": ">=14.18.0"+ "node": ">= 14"}},- "api/node_modules/tr46": {- "version": "0.0.3",- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="- },- "api/node_modules/uuid": {- "version": "10.0.0",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",- "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",- "funding": [- "https://github.com/sponsors/broofa",- "https://github.com/sponsors/ctavan"- ],- "bin": {- "uuid": "dist/bin/uuid"+ "api/node_modules/mongodb": {+ "version": "6.14.2",+ "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.14.2.tgz",+ "integrity": "sha512-kMEHNo0F3P6QKDq17zcDuPeaywK/YaJVCEQRzPF3TOM/Bl9MFg64YE5Tu7ifj37qZJMhwU1tl2Ioivws5gRG5Q==",+ "dependencies": {+ "@mongodb-js/saslprep": "^1.1.9",+ "bson": "^6.10.3",+ "mongodb-connection-string-url": "^3.0.0"+ },+ "engines": {+ "node": ">=16.20.1"+ },+ "peerDependencies": {+ "@aws-sdk/credential-providers": "^3.188.0",+ "@mongodb-js/zstd": "^1.1.0 || ^2.0.0",+ "gcp-metadata": "^5.2.0",+ "kerberos": "^2.0.1",+ "mongodb-client-encryption": ">=6.0.0 <7",+ "snappy": "^7.2.2",+ "socks": "^2.7.1"+ },+ "peerDependenciesMeta": {+ "@aws-sdk/credential-providers": {+ "optional": true+ },+ "@mongodb-js/zstd": {+ "optional": true+ },+ "gcp-metadata": {+ "optional": true+ },+ "kerberos": {+ "optional": true+ },+ "mongodb-client-encryption": {+ "optional": true+ },+ "snappy": {+ "optional": true+ },+ "socks": {+ "optional": true+ }}},- "api/node_modules/webidl-conversions": {+ "api/node_modules/mongodb-connection-string-url": {"version": "3.0.1",- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="- },- "api/node_modules/whatwg-url": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",+ "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.1.tgz",+ "integrity": "sha512-XqMGwRX0Lgn05TDB4PyG2h2kKO/FfWJyCzYQbIhXUxz7ETt0I/FqHjUeqj37irJ+Dl1ZtU82uYyj14u2XsZKfg==","dependencies": {- "tr46": "~0.0.3",- "webidl-conversions": "^3.0.0"+ "@types/whatwg-url": "^11.0.2",+ "whatwg-url": "^13.0.0"}},- "client": {- "name": "@librechat/frontend",- "version": "v0.7.7",- "license": "ISC",+ "api/node_modules/mongodb-connection-string-url/node_modules/tr46": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz",+ "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==","dependencies": {- "@ariakit/react": "^0.4.15",- "@ariakit/react-core": "^0.4.15",+ "punycode": "^2.3.0"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "api/node_modules/mongodb-connection-string-url/node_modules/webidl-conversions": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",+ "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",+ "engines": {+ "node": ">=12"+ }+ },+ "api/node_modules/mongodb-connection-string-url/node_modules/whatwg-url": {+ "version": "13.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz",+ "integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==",+ "dependencies": {+ "tr46": "^4.1.1",+ "webidl-conversions": "^7.0.0"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "api/node_modules/mongodb-memory-server": {+ "version": "10.1.3",+ "resolved": "https://registry.npmjs.org/mongodb-memory-server/-/mongodb-memory-server-10.1.3.tgz",+ "integrity": "sha512-QCUjsIIXSYv/EgkpDAjfhlqRKo6N+qR6DD43q4lyrCVn24xQmvlArdWHW/Um5RS4LkC9YWC3XveSncJqht2Hbg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "mongodb-memory-server-core": "10.1.3",+ "tslib": "^2.7.0"+ },+ "engines": {+ "node": ">=16.20.1"+ }+ },+ "api/node_modules/mongodb-memory-server-core": {+ "version": "10.1.3",+ "resolved": "https://registry.npmjs.org/mongodb-memory-server-core/-/mongodb-memory-server-core-10.1.3.tgz",+ "integrity": "sha512-ayBQHeV74wRHhgcAKpxHYI4th9Ufidy/m3XhJnLFRufKsOyDsyHYU3Zxv5Fm4hxsWE6wVd0GAVcQ7t7XNkivOg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "async-mutex": "^0.5.0",+ "camelcase": "^6.3.0",+ "debug": "^4.3.7",+ "find-cache-dir": "^3.3.2",+ "follow-redirects": "^1.15.9",+ "https-proxy-agent": "^7.0.5",+ "mongodb": "^6.9.0",+ "new-find-package-json": "^2.0.0",+ "semver": "^7.6.3",+ "tar-stream": "^3.1.7",+ "tslib": "^2.7.0",+ "yauzl": "^3.1.3"+ },+ "engines": {+ "node": ">=16.20.1"+ }+ },+ "api/node_modules/mongoose": {+ "version": "8.12.1",+ "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.12.1.tgz",+ "integrity": "sha512-UW22y8QFVYmrb36hm8cGncfn4ARc/XsYWQwRTaj0gxtQk1rDuhzDO1eBantS+hTTatfAIS96LlRCJrcNHvW5+Q==",+ "dependencies": {+ "bson": "^6.10.3",+ "kareem": "2.6.3",+ "mongodb": "~6.14.0",+ "mpath": "0.9.0",+ "mquery": "5.0.0",+ "ms": "2.1.3",+ "sift": "17.1.3"+ },+ "engines": {+ "node": ">=16.20.1"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/mongoose"+ }+ },+ "api/node_modules/node-fetch": {+ "version": "2.6.7",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",+ "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",+ "dependencies": {+ "whatwg-url": "^5.0.0"+ },+ "engines": {+ "node": "4.x || >=6.0.0"+ },+ "peerDependencies": {+ "encoding": "^0.1.0"+ },+ "peerDependenciesMeta": {+ "encoding": {+ "optional": true+ }+ }+ },+ "api/node_modules/openai": {+ "version": "4.71.1",+ "resolved": "https://registry.npmjs.org/openai/-/openai-4.71.1.tgz",+ "integrity": "sha512-C6JNMaQ1eijM0lrjiRUL3MgThVP5RdwNAghpbJFdW0t11LzmyqON8Eh8MuUuEZ+CeD6bgYl2Fkn2BoptVxv9Ug==",+ "license": "Apache-2.0",+ "dependencies": {+ "@types/node": "^18.11.18",+ "@types/node-fetch": "^2.6.4",+ "abort-controller": "^3.0.0",+ "agentkeepalive": "^4.2.1",+ "form-data-encoder": "1.7.2",+ "formdata-node": "^4.3.2",+ "node-fetch": "^2.6.7"+ },+ "bin": {+ "openai": "bin/cli"+ },+ "peerDependencies": {+ "zod": "^3.23.8"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "api/node_modules/superagent": {+ "version": "9.0.2",+ "resolved": "https://registry.npmjs.org/superagent/-/superagent-9.0.2.tgz",+ "integrity": "sha512-xuW7dzkUpcJq7QnhOsnNUgtYp3xRwpt2F7abdRYIpCsAt0hhUqia0EdxyXZQQpNmGtsCzYHryaKSV3q3GJnq7w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "component-emitter": "^1.3.0",+ "cookiejar": "^2.1.4",+ "debug": "^4.3.4",+ "fast-safe-stringify": "^2.1.1",+ "form-data": "^4.0.0",+ "formidable": "^3.5.1",+ "methods": "^1.1.2",+ "mime": "2.6.0",+ "qs": "^6.11.0"+ },+ "engines": {+ "node": ">=14.18.0"+ }+ },+ "api/node_modules/superagent/node_modules/mime": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "mime": "cli.js"+ },+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "api/node_modules/supertest": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/supertest/-/supertest-7.0.0.tgz",+ "integrity": "sha512-qlsr7fIC0lSddmA3tzojvzubYxvlGtzumcdHgPwbFWMISQwL22MhM2Y3LNt+6w9Yyx7559VW5ab70dgphm8qQA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "methods": "^1.1.2",+ "superagent": "^9.0.1"+ },+ "engines": {+ "node": ">=14.18.0"+ }+ },+ "api/node_modules/tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="+ },+ "api/node_modules/uuid": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",+ "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },+ "api/node_modules/webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="+ },+ "api/node_modules/whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",+ "dependencies": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },+ "client": {+ "name": "@librechat/frontend",+ "version": "v0.7.7",+ "license": "ISC",+ "dependencies": {+ "@ariakit/react": "^0.4.15",+ "@ariakit/react-core": "^0.4.15","@codesandbox/sandpack-react": "^2.19.10","@dicebear/collection": "^7.0.4","@dicebear/core": "^7.0.4",@@ -14029,9 +14478,9 @@}},"node_modules/@langchain/aws": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/@langchain/aws/-/aws-0.1.6.tgz",- "integrity": "sha512-9w6wf2meQevj8UXEBuDPLbpC4huEuU98inAVEx8SFNfJpyxPfW9w9zG62mcM4ifqGTPGgnbps2H1Sx0QkwO5UA==",+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/@langchain/aws/-/aws-0.1.7.tgz",+ "integrity": "sha512-I5BXnIek1gaorYh/IV9g2M5d9hoyYVUrHJnFGH2gpQM3pqmNcJygOPsFdQKMn0vmNLdm8AqFswX2cv7X+sdrdA==","dependencies": {"@aws-sdk/client-bedrock-agent-runtime": "^3.755.0","@aws-sdk/client-bedrock-runtime": "^3.755.0",@@ -14961,9 +15410,9 @@}},"node_modules/@langchain/google-common": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/@langchain/google-common/-/google-common-0.2.0.tgz",- "integrity": "sha512-sm9bLIu/+l7zQiEGIjQQoROK5bdNSvAWZfeInW/0EHCxEexfMrsiZFQbkYMd8XE3+RmDsZI2Be4vm4hS4dPfwg==",+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/@langchain/google-common/-/google-common-0.2.2.tgz",+ "integrity": "sha512-w0811y4rQ/lSUZegcskVzMdSFA8HctWgTZQGjMSfhirVyJTJwJff81IjmQcbjaOyEgY6RA551lMpTPIGvaSl9w==","dependencies": {"uuid": "^10.0.0","zod-to-json-schema": "^3.22.4"@@ -14988,11 +15437,11 @@}},"node_modules/@langchain/google-gauth": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/@langchain/google-gauth/-/google-gauth-0.2.0.tgz",- "integrity": "sha512-9s3Fsz7Jr17EqJ1lVuIS+1gPtGRIVzbMtvqfSNHknjuDYOzGoYAY4FmADv4dVnr14VPKHVhZpfXkbIyCiszKLg==",+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/@langchain/google-gauth/-/google-gauth-0.2.2.tgz",+ "integrity": "sha512-x4tkogcLwJ9VwgY0JF9FSyGAZyzPkoOlBUO5uGTRILcLjR3iNrcWohW6Uy04zadE64w7MLW9d71F8l5ejdjmdA==","dependencies": {- "@langchain/google-common": "~0.2.0",+ "@langchain/google-common": "^0.2.2","google-auth-library": "^9.15.1"},"engines": {@@ -15003,9 +15452,9 @@}},"node_modules/@langchain/google-genai": {- "version": "0.1.9",- "resolved": "https://registry.npmjs.org/@langchain/google-genai/-/google-genai-0.1.9.tgz",- "integrity": "sha512-YmGnGJBOMOmSwWFrVy1ySGft7RbdLjwOdziwxgMfk4353CDE7rsRyzMMLkLEwaG8qGxF5vdZAlAImnVDFkJhug==",+ "version": "0.1.11",+ "resolved": "https://registry.npmjs.org/@langchain/google-genai/-/google-genai-0.1.11.tgz",+ "integrity": "sha512-puNFwgW+yY3nI358R4wjG7EsCiCIMH0UaIMGcK/GF44opAlf6pBY9iql4CLVrUto1XBI3EETZuNZ9nOhzpnfgQ==","dependencies": {"@google/generative-ai": "^0.21.0","zod-to-json-schema": "^3.22.4"@@ -15018,11 +15467,11 @@}},"node_modules/@langchain/google-vertexai": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/@langchain/google-vertexai/-/google-vertexai-0.2.0.tgz",- "integrity": "sha512-IToJ6FZrGL9k8Z9B51ISwUU7RxmLdh057FdejCAqOQiNXK47QNeUtZfTW8WoeqU0QJLljO6kC6Sei3X2vW3BrA==",+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/@langchain/google-vertexai/-/google-vertexai-0.2.2.tgz",+ "integrity": "sha512-DqlKD3VXGTwVS4lWUIYhryqFvTTDfWGulySnv/Gf6t4e3A9pXkapyCpxY4hb6hAGYAKV/55qg7CLMueRXWbpcA==","dependencies": {- "@langchain/google-gauth": "~0.2.0"+ "@langchain/google-gauth": "~0.2.2"},"engines": {"node": ">=18"@@ -15032,9 +15481,9 @@}},"node_modules/@langchain/langgraph": {- "version": "0.2.54",- "resolved": "https://registry.npmjs.org/@langchain/langgraph/-/langgraph-0.2.54.tgz",- "integrity": "sha512-+P2rU0Qz6bBCNPXOSV8WeUpLRTvhu8fQuzMYR2MqWsbbfmZrfmLxqtVWPHkmr5khx/txxFy1vOBAy+KwZ94mrg==",+ "version": "0.2.56",+ "resolved": "https://registry.npmjs.org/@langchain/langgraph/-/langgraph-0.2.56.tgz",+ "integrity": "sha512-/uiQL+SeEGNv6QZOilxdwNwDoYQ+t3pFr5tZyG3lvmgmO2Pfojp7SIV2y/yuVYkNlKPvKvpdfE6mmCkCT4G2aA==","dependencies": {"@langchain/langgraph-checkpoint": "~0.0.16","@langchain/langgraph-sdk": "~0.0.32",@@ -15044,937 +15493,169 @@"engines": {"node": ">=18"},- "peerDependencies": {- "@langchain/core": ">=0.2.36 <0.3.0 || >=0.3.40 < 0.4.0"- }- },- "node_modules/@langchain/langgraph-checkpoint": {- "version": "0.0.16",- "resolved": "https://registry.npmjs.org/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.0.16.tgz",- "integrity": "sha512-B50l7w9o9353drHsdsD01vhQrCJw0eqvYeXid7oKeoj1Yye+qY90r97xuhiflaYCZHM5VEo2oaizs8oknerZsQ==",- "dependencies": {- "uuid": "^10.0.0"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@langchain/core": ">=0.2.31 <0.4.0"- }- },- "node_modules/@langchain/langgraph-checkpoint/node_modules/uuid": {- "version": "10.0.0",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",- "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",- "funding": [- "https://github.com/sponsors/broofa",- "https://github.com/sponsors/ctavan"- ],- "bin": {- "uuid": "dist/bin/uuid"- }- },- "node_modules/@langchain/langgraph-sdk": {- "version": "0.0.49",- "resolved": "https://registry.npmjs.org/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.49.tgz",- "integrity": "sha512-2pjiVs5SOaAturpxaylENGhPBu+WENc/ukFg3jqtPyXnjPZPOYe7XhsM8xn9v3qgu2KBZZg8bfFy+Bu+ZGbRCA==",- "dependencies": {- "@types/json-schema": "^7.0.15",- "p-queue": "^6.6.2",- "p-retry": "4",- "uuid": "^9.0.0"- },- "peerDependencies": {- "@langchain/core": ">=0.2.31 <0.4.0",- "react": "^18 || ^19"- },- "peerDependenciesMeta": {- "@langchain/core": {- "optional": true- },- "react": {- "optional": true- }- }- },- "node_modules/@langchain/langgraph/node_modules/uuid": {- "version": "10.0.0",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",- "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",- "funding": [- "https://github.com/sponsors/broofa",- "https://github.com/sponsors/ctavan"- ],- "bin": {- "uuid": "dist/bin/uuid"- }- },- "node_modules/@langchain/mistralai": {- "version": "0.0.26",- "resolved": "https://registry.npmjs.org/@langchain/mistralai/-/mistralai-0.0.26.tgz",- "integrity": "sha512-NoXmOTrkHjfCcgWQprbPujCvFktJFPcFTAcJEc4jY0J+PRiwWfhe4Xx2MevWTSV9clWm2Pil454nJ1CYEvh3Ng==",- "dependencies": {- "@langchain/core": ">=0.2.16 <0.3.0",- "@mistralai/mistralai": "^0.4.0",- "uuid": "^10.0.0",- "zod": "^3.22.4",- "zod-to-json-schema": "^3.22.4"- },- "engines": {- "node": ">=18"- }- },- "node_modules/@langchain/mistralai/node_modules/@langchain/core": {- "version": "0.2.36",- "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.36.tgz",- "integrity": "sha512-qHLvScqERDeH7y2cLuJaSAlMwg3f/3Oc9nayRSXRU2UuaK/SOhI42cxiPLj1FnuHJSmN0rBQFkrLx02gI4mcVg==",- "dependencies": {- "ansi-styles": "^5.0.0",- "camelcase": "6",- "decamelize": "1.2.0",- "js-tiktoken": "^1.0.12",- "langsmith": "^0.1.56-rc.1",- "mustache": "^4.2.0",- "p-queue": "^6.6.2",- "p-retry": "4",- "uuid": "^10.0.0",- "zod": "^3.22.4",- "zod-to-json-schema": "^3.22.3"- },- "engines": {- "node": ">=18"- }- },- "node_modules/@langchain/mistralai/node_modules/ansi-styles": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@langchain/mistralai/node_modules/langsmith": {- "version": "0.1.68",- "resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.68.tgz",- "integrity": "sha512-otmiysWtVAqzMx3CJ4PrtUBhWRG5Co8Z4o7hSZENPjlit9/j3/vm3TSvbaxpDYakZxtMjhkcJTqrdYFipISEiQ==",- "dependencies": {- "@types/uuid": "^10.0.0",- "commander": "^10.0.1",- "p-queue": "^6.6.2",- "p-retry": "4",- "semver": "^7.6.3",- "uuid": "^10.0.0"- },- "peerDependencies": {- "openai": "*"- },- "peerDependenciesMeta": {- "openai": {- "optional": true- }- }- },- "node_modules/@langchain/mistralai/node_modules/uuid": {- "version": "10.0.0",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",- "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",- "funding": [- "https://github.com/sponsors/broofa",- "https://github.com/sponsors/ctavan"- ],- "bin": {- "uuid": "dist/bin/uuid"- }- },- "node_modules/@langchain/ollama": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/@langchain/ollama/-/ollama-0.1.6.tgz",- "integrity": "sha512-hS+xHiRqKpq37eGyZQ0JoTghfNA7hWXK54XbILQ0KVm3v2MMWLKqBAep4LwMLrAr4NE7SIp+SJnQRdsjabR0jw==",- "dependencies": {- "ollama": "^0.5.12",- "uuid": "^10.0.0",- "zod": "^3.24.1",- "zod-to-json-schema": "^3.24.1"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@langchain/core": ">=0.2.21 <0.4.0"- }- },- "node_modules/@langchain/ollama/node_modules/uuid": {- "version": "10.0.0",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",- "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",- "funding": [- "https://github.com/sponsors/broofa",- "https://github.com/sponsors/ctavan"- ],- "bin": {- "uuid": "dist/bin/uuid"- }- },- "node_modules/@langchain/openai": {- "version": "0.4.4",- "resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.4.4.tgz",- "integrity": "sha512-UZybJeMd8+UX7Kn47kuFYfqKdBCeBUWNqDtmAr6ZUIMMnlsNIb6MkrEEhGgAEjGCpdT4CU8U/DyyddTz+JayOQ==",- "dependencies": {- "js-tiktoken": "^1.0.12",- "openai": "^4.77.0",- "zod": "^3.22.4",- "zod-to-json-schema": "^3.22.3"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@langchain/core": ">=0.3.39 <0.4.0"- }- },- "node_modules/@langchain/textsplitters": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/@langchain/textsplitters/-/textsplitters-0.1.0.tgz",- "integrity": "sha512-djI4uw9rlkAb5iMhtLED+xJebDdAG935AdP4eRTB02R7OB/act55Bj9wsskhZsvuyQRpO4O1wQOp85s6T6GWmw==",- "dependencies": {- "js-tiktoken": "^1.0.12"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@langchain/core": ">=0.2.21 <0.4.0"- }- },- "node_modules/@langchain/xai": {- "version": "0.0.2",- "resolved": "https://registry.npmjs.org/@langchain/xai/-/xai-0.0.2.tgz",- "integrity": "sha512-wVOs7SfJs4VWk/oiHJomaoaZ+r9nQhPqbEXlQ2D8L0d54PxYhb1ILR9rub9LT1RpqazSX8HG4A8+hX4R01qkSg==",- "dependencies": {- "@langchain/openai": "~0.4.4",- "zod": "^3.24.2"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@langchain/core": ">=0.2.21 <0.4.0"- }- },- "node_modules/@lezer/common": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.1.tgz",- "integrity": "sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ=="- },- "node_modules/@lezer/css": {- "version": "1.1.8",- "resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.1.8.tgz",- "integrity": "sha512-7JhxupKuMBaWQKjQoLtzhGj83DdnZY9MckEOG5+/iLKNK2ZJqKc6hf6uc0HjwCX7Qlok44jBNqZhHKDhEhZYLA==",- "dependencies": {- "@lezer/common": "^1.2.0",- "@lezer/highlight": "^1.0.0",- "@lezer/lr": "^1.0.0"- }- },- "node_modules/@lezer/highlight": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.1.tgz",- "integrity": "sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==",- "dependencies": {- "@lezer/common": "^1.0.0"- }- },- "node_modules/@lezer/html": {- "version": "1.3.10",- "resolved": "https://registry.npmjs.org/@lezer/html/-/html-1.3.10.tgz",- "integrity": "sha512-dqpT8nISx/p9Do3AchvYGV3qYc4/rKr3IBZxlHmpIKam56P47RSHkSF5f13Vu9hebS1jM0HmtJIwLbWz1VIY6w==",- "dependencies": {- "@lezer/common": "^1.2.0",- "@lezer/highlight": "^1.0.0",- "@lezer/lr": "^1.0.0"- }- },- "node_modules/@lezer/javascript": {- "version": "1.4.17",- "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.17.tgz",- "integrity": "sha512-bYW4ctpyGK+JMumDApeUzuIezX01H76R1foD6LcRX224FWfyYit/HYxiPGDjXXe/wQWASjCvVGoukTH68+0HIA==",- "dependencies": {- "@lezer/common": "^1.2.0",- "@lezer/highlight": "^1.1.3",- "@lezer/lr": "^1.3.0"- }- },- "node_modules/@lezer/lr": {- "version": "1.4.2",- "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz",- "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==",- "dependencies": {- "@lezer/common": "^1.0.0"- }- },- "node_modules/@librechat/agents": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-2.2.0.tgz",- "integrity": "sha512-jGBQqmiwRKKkHcrZpJzOysu+4Fa/O8g6LM/T2FcFMZGb4Iu+fbI2oOG3dev+zDMUMgu1poTB6mpa4OKRcZNthw==",- "dependencies": {- "@aws-crypto/sha256-js": "^5.2.0",- "@aws-sdk/credential-provider-node": "^3.613.0",- "@aws-sdk/types": "^3.609.0",- "@langchain/anthropic": "^0.3.14",- "@langchain/aws": "^0.1.6",- "@langchain/community": "^0.3.27",- "@langchain/core": "^0.3.40",- "@langchain/deepseek": "^0.0.1",- "@langchain/google-genai": "^0.1.9",- "@langchain/google-vertexai": "^0.2.0",- "@langchain/langgraph": "^0.2.49",- "@langchain/mistralai": "^0.0.26",- "@langchain/ollama": "^0.1.5",- "@langchain/openai": "^0.4.2",- "@langchain/xai": "^0.0.2",- "@smithy/eventstream-codec": "^2.2.0",- "@smithy/protocol-http": "^3.0.6",- "@smithy/signature-v4": "^2.0.10",- "@smithy/util-utf8": "^2.0.0",- "dotenv": "^16.4.7",- "https-proxy-agent": "^7.0.6",- "nanoid": "^3.3.7"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@librechat/agents/node_modules/@langchain/community": {- "version": "0.3.34",- "resolved": "https://registry.npmjs.org/@langchain/community/-/community-0.3.34.tgz",- "integrity": "sha512-s0KVulgVIPd90s3m6XZtWrCRGQPWsY93uY62seFMmNhzcyF+I65kKnN04Nbiouthrn/YJ9HB4hW8MJAFuX6RRg==",- "dependencies": {- "@langchain/openai": ">=0.2.0 <0.5.0",- "binary-extensions": "^2.2.0",- "expr-eval": "^2.0.2",- "flat": "^5.0.2",- "js-yaml": "^4.1.0",- "langchain": ">=0.2.3 <0.3.0 || >=0.3.4 <0.4.0",- "langsmith": ">=0.2.8 <0.4.0",- "uuid": "^10.0.0",- "zod": "^3.22.3",- "zod-to-json-schema": "^3.22.5"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@arcjet/redact": "^v1.0.0-alpha.23",- "@aws-crypto/sha256-js": "^5.0.0",- "@aws-sdk/client-bedrock-agent-runtime": "^3.749.0",- "@aws-sdk/client-bedrock-runtime": "^3.749.0",- "@aws-sdk/client-dynamodb": "^3.749.0",- "@aws-sdk/client-kendra": "^3.749.0",- "@aws-sdk/client-lambda": "^3.749.0",- "@aws-sdk/client-s3": "^3.749.0",- "@aws-sdk/client-sagemaker-runtime": "^3.749.0",- "@aws-sdk/client-sfn": "^3.749.0",- "@aws-sdk/credential-provider-node": "^3.388.0",- "@azure/search-documents": "^12.0.0",- "@azure/storage-blob": "^12.15.0",- "@browserbasehq/sdk": "*",- "@browserbasehq/stagehand": "^1.0.0",- "@clickhouse/client": "^0.2.5",- "@cloudflare/ai": "*",- "@datastax/astra-db-ts": "^1.0.0",- "@elastic/elasticsearch": "^8.4.0",- "@getmetal/metal-sdk": "*",- "@getzep/zep-cloud": "^1.0.6",- "@getzep/zep-js": "^0.9.0",- "@gomomento/sdk": "^1.51.1",- "@gomomento/sdk-core": "^1.51.1",- "@google-ai/generativelanguage": "*",- "@google-cloud/storage": "^6.10.1 || ^7.7.0",- "@gradientai/nodejs-sdk": "^1.2.0",- "@huggingface/inference": "^2.6.4",- "@huggingface/transformers": "^3.2.3",- "@ibm-cloud/watsonx-ai": "*",- "@lancedb/lancedb": "^0.12.0",- "@langchain/core": ">=0.2.21 <0.4.0",- "@layerup/layerup-security": "^1.5.12",- "@libsql/client": "^0.14.0",- "@mendable/firecrawl-js": "^1.4.3",- "@mlc-ai/web-llm": "*",- "@mozilla/readability": "*",- "@neondatabase/serverless": "*",- "@notionhq/client": "^2.2.10",- "@opensearch-project/opensearch": "*",- "@pinecone-database/pinecone": "*",- "@planetscale/database": "^1.8.0",- "@premai/prem-sdk": "^0.3.25",- "@qdrant/js-client-rest": "^1.8.2",- "@raycast/api": "^1.55.2",- "@rockset/client": "^0.9.1",- "@smithy/eventstream-codec": "^2.0.5",- "@smithy/protocol-http": "^3.0.6",- "@smithy/signature-v4": "^2.0.10",- "@smithy/util-utf8": "^2.0.0",- "@spider-cloud/spider-client": "^0.0.21",- "@supabase/supabase-js": "^2.45.0",- "@tensorflow-models/universal-sentence-encoder": "*",- "@tensorflow/tfjs-converter": "*",- "@tensorflow/tfjs-core": "*",- "@upstash/ratelimit": "^1.1.3 || ^2.0.3",- "@upstash/redis": "^1.20.6",- "@upstash/vector": "^1.1.1",- "@vercel/kv": "*",- "@vercel/postgres": "*",- "@writerai/writer-sdk": "^0.40.2",- "@xata.io/client": "^0.28.0",- "@zilliz/milvus2-sdk-node": ">=2.3.5",- "apify-client": "^2.7.1",- "assemblyai": "^4.6.0",- "better-sqlite3": ">=9.4.0 <12.0.0",- "cassandra-driver": "^4.7.2",- "cborg": "^4.1.1",- "cheerio": "^1.0.0-rc.12",- "chromadb": "*",- "closevector-common": "0.1.3",- "closevector-node": "0.1.6",- "closevector-web": "0.1.6",- "cohere-ai": "*",- "convex": "^1.3.1",- "crypto-js": "^4.2.0",- "d3-dsv": "^2.0.0",- "discord.js": "^14.14.1",- "dria": "^0.0.3",- "duck-duck-scrape": "^2.2.5",- "epub2": "^3.0.1",- "fast-xml-parser": "*",- "firebase-admin": "^11.9.0 || ^12.0.0",- "google-auth-library": "*",- "googleapis": "*",- "hnswlib-node": "^3.0.0",- "html-to-text": "^9.0.5",- "ibm-cloud-sdk-core": "*",- "ignore": "^5.2.0",- "interface-datastore": "^8.2.11",- "ioredis": "^5.3.2",- "it-all": "^3.0.4",- "jsdom": "*",- "jsonwebtoken": "^9.0.2",- "llmonitor": "^0.5.9",- "lodash": "^4.17.21",- "lunary": "^0.7.10",- "mammoth": "^1.6.0",- "mongodb": ">=5.2.0",- "mysql2": "^3.9.8",- "neo4j-driver": "*",- "notion-to-md": "^3.1.0",- "officeparser": "^4.0.4",- "openai": "*",- "pdf-parse": "1.1.1",- "pg": "^8.11.0",- "pg-copy-streams": "^6.0.5",- "pickleparser": "^0.2.1",- "playwright": "^1.32.1",- "portkey-ai": "^0.1.11",- "puppeteer": "*",- "pyodide": ">=0.24.1 <0.27.0",- "redis": "*",- "replicate": "*",- "sonix-speech-recognition": "^2.1.1",- "srt-parser-2": "^1.2.3",- "typeorm": "^0.3.20",- "typesense": "^1.5.3",- "usearch": "^1.1.1",- "voy-search": "0.6.2",- "weaviate-ts-client": "*",- "web-auth-library": "^1.0.3",- "word-extractor": "*",- "ws": "^8.14.2",- "youtubei.js": "*"- },- "peerDependenciesMeta": {- "@arcjet/redact": {- "optional": true- },- "@aws-crypto/sha256-js": {- "optional": true- },- "@aws-sdk/client-bedrock-agent-runtime": {- "optional": true- },- "@aws-sdk/client-bedrock-runtime": {- "optional": true- },- "@aws-sdk/client-dynamodb": {- "optional": true- },- "@aws-sdk/client-kendra": {- "optional": true- },- "@aws-sdk/client-lambda": {- "optional": true- },- "@aws-sdk/client-s3": {- "optional": true- },- "@aws-sdk/client-sagemaker-runtime": {- "optional": true- },- "@aws-sdk/client-sfn": {- "optional": true- },- "@aws-sdk/credential-provider-node": {- "optional": true- },- "@aws-sdk/dsql-signer": {- "optional": true- },- "@azure/search-documents": {- "optional": true- },- "@azure/storage-blob": {- "optional": true- },- "@browserbasehq/sdk": {- "optional": true- },- "@clickhouse/client": {- "optional": true- },- "@cloudflare/ai": {- "optional": true- },- "@datastax/astra-db-ts": {- "optional": true- },- "@elastic/elasticsearch": {- "optional": true- },- "@getmetal/metal-sdk": {- "optional": true- },- "@getzep/zep-cloud": {- "optional": true- },- "@getzep/zep-js": {- "optional": true- },- "@gomomento/sdk": {- "optional": true- },- "@gomomento/sdk-core": {- "optional": true- },- "@google-ai/generativelanguage": {- "optional": true- },- "@google-cloud/storage": {- "optional": true- },- "@gradientai/nodejs-sdk": {- "optional": true- },- "@huggingface/inference": {- "optional": true- },- "@huggingface/transformers": {- "optional": true- },- "@lancedb/lancedb": {- "optional": true- },- "@layerup/layerup-security": {- "optional": true- },- "@libsql/client": {- "optional": true- },- "@mendable/firecrawl-js": {- "optional": true- },- "@mlc-ai/web-llm": {- "optional": true- },- "@mozilla/readability": {- "optional": true- },- "@neondatabase/serverless": {- "optional": true- },- "@notionhq/client": {- "optional": true- },- "@opensearch-project/opensearch": {- "optional": true- },- "@pinecone-database/pinecone": {- "optional": true- },- "@planetscale/database": {- "optional": true- },- "@premai/prem-sdk": {- "optional": true- },- "@qdrant/js-client-rest": {- "optional": true- },- "@raycast/api": {- "optional": true- },- "@rockset/client": {- "optional": true- },- "@smithy/eventstream-codec": {- "optional": true- },- "@smithy/protocol-http": {- "optional": true- },- "@smithy/signature-v4": {- "optional": true- },- "@smithy/util-utf8": {- "optional": true- },- "@spider-cloud/spider-client": {- "optional": true- },- "@supabase/supabase-js": {- "optional": true- },- "@tensorflow-models/universal-sentence-encoder": {- "optional": true- },- "@tensorflow/tfjs-converter": {- "optional": true- },- "@tensorflow/tfjs-core": {- "optional": true- },- "@upstash/ratelimit": {- "optional": true- },- "@upstash/redis": {- "optional": true- },- "@upstash/vector": {- "optional": true- },- "@vercel/kv": {- "optional": true- },- "@vercel/postgres": {- "optional": true- },- "@writerai/writer-sdk": {- "optional": true- },- "@xata.io/client": {- "optional": true- },- "@zilliz/milvus2-sdk-node": {- "optional": true- },- "apify-client": {- "optional": true- },- "assemblyai": {- "optional": true- },- "better-sqlite3": {- "optional": true- },- "cassandra-driver": {- "optional": true- },- "cborg": {- "optional": true- },- "cheerio": {- "optional": true- },- "chromadb": {- "optional": true- },- "closevector-common": {- "optional": true- },- "closevector-node": {- "optional": true- },- "closevector-web": {- "optional": true- },- "cohere-ai": {- "optional": true- },- "convex": {- "optional": true- },- "crypto-js": {- "optional": true- },- "d3-dsv": {- "optional": true- },- "discord.js": {- "optional": true- },- "dria": {- "optional": true- },- "duck-duck-scrape": {- "optional": true- },- "epub2": {- "optional": true- },- "fast-xml-parser": {- "optional": true- },- "firebase-admin": {- "optional": true- },- "google-auth-library": {- "optional": true- },- "googleapis": {- "optional": true- },- "hnswlib-node": {- "optional": true- },- "html-to-text": {- "optional": true- },- "ignore": {- "optional": true- },- "interface-datastore": {- "optional": true- },- "ioredis": {- "optional": true- },- "it-all": {- "optional": true- },- "jsdom": {- "optional": true- },- "jsonwebtoken": {- "optional": true- },- "llmonitor": {- "optional": true- },- "lodash": {- "optional": true- },- "lunary": {- "optional": true- },- "mammoth": {- "optional": true- },- "mongodb": {- "optional": true- },- "mysql2": {- "optional": true- },- "neo4j-driver": {- "optional": true- },- "notion-to-md": {- "optional": true- },- "officeparser": {- "optional": true- },- "pdf-parse": {- "optional": true- },- "pg": {- "optional": true- },- "pg-copy-streams": {- "optional": true- },- "pickleparser": {- "optional": true- },- "playwright": {- "optional": true- },- "portkey-ai": {- "optional": true- },- "puppeteer": {- "optional": true- },- "pyodide": {- "optional": true- },- "redis": {- "optional": true- },- "replicate": {- "optional": true- },- "sonix-speech-recognition": {- "optional": true- },- "srt-parser-2": {- "optional": true- },- "typeorm": {- "optional": true- },- "typesense": {- "optional": true- },- "usearch": {- "optional": true- },- "voy-search": {- "optional": true- },- "weaviate-ts-client": {- "optional": true- },- "web-auth-library": {- "optional": true- },- "word-extractor": {- "optional": true- },- "ws": {+ "peerDependencies": {+ "@langchain/core": ">=0.2.36 <0.3.0 || >=0.3.40 < 0.4.0"+ }+ },+ "node_modules/@langchain/langgraph-checkpoint": {+ "version": "0.0.16",+ "resolved": "https://registry.npmjs.org/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.0.16.tgz",+ "integrity": "sha512-B50l7w9o9353drHsdsD01vhQrCJw0eqvYeXid7oKeoj1Yye+qY90r97xuhiflaYCZHM5VEo2oaizs8oknerZsQ==",+ "dependencies": {+ "uuid": "^10.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.2.31 <0.4.0"+ }+ },+ "node_modules/@langchain/langgraph-checkpoint/node_modules/uuid": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",+ "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },+ "node_modules/@langchain/langgraph-sdk": {+ "version": "0.0.57",+ "resolved": "https://registry.npmjs.org/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.57.tgz",+ "integrity": "sha512-xb1OgsQ7fq6zjWaspa/9yjZ35kf1/qIPBC8wkNUI0gelnZLeAnss9RhGKc8L2qMB1P3anxRB9IPGwqCoMUHimg==",+ "dependencies": {+ "@types/json-schema": "^7.0.15",+ "p-queue": "^6.6.2",+ "p-retry": "4",+ "uuid": "^9.0.0"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.2.31 <0.4.0",+ "react": "^18 || ^19"+ },+ "peerDependenciesMeta": {+ "@langchain/core": {"optional": true},- "youtubei.js": {+ "react": {"optional": true}}},- "node_modules/@librechat/agents/node_modules/@langchain/community/node_modules/langchain": {- "version": "0.3.19",- "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.3.19.tgz",- "integrity": "sha512-aGhoTvTBS5ulatA67RHbJ4bcV5zcYRYdm5IH+hpX99RYSFXG24XF3ghSjhYi6sxW+SUnEQ99fJhA5kroVpKNhw==",+ "node_modules/@langchain/langgraph/node_modules/uuid": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",+ "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },+ "node_modules/@langchain/mistralai": {+ "version": "0.0.26",+ "resolved": "https://registry.npmjs.org/@langchain/mistralai/-/mistralai-0.0.26.tgz",+ "integrity": "sha512-NoXmOTrkHjfCcgWQprbPujCvFktJFPcFTAcJEc4jY0J+PRiwWfhe4Xx2MevWTSV9clWm2Pil454nJ1CYEvh3Ng==","dependencies": {- "@langchain/openai": ">=0.1.0 <0.5.0",- "@langchain/textsplitters": ">=0.0.0 <0.2.0",+ "@langchain/core": ">=0.2.16 <0.3.0",+ "@mistralai/mistralai": "^0.4.0",+ "uuid": "^10.0.0",+ "zod": "^3.22.4",+ "zod-to-json-schema": "^3.22.4"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@langchain/mistralai/node_modules/@langchain/core": {+ "version": "0.2.36",+ "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.36.tgz",+ "integrity": "sha512-qHLvScqERDeH7y2cLuJaSAlMwg3f/3Oc9nayRSXRU2UuaK/SOhI42cxiPLj1FnuHJSmN0rBQFkrLx02gI4mcVg==",+ "dependencies": {+ "ansi-styles": "^5.0.0",+ "camelcase": "6",+ "decamelize": "1.2.0","js-tiktoken": "^1.0.12",- "js-yaml": "^4.1.0",- "jsonpointer": "^5.0.1",- "langsmith": ">=0.2.8 <0.4.0",- "openapi-types": "^12.1.3",+ "langsmith": "^0.1.56-rc.1",+ "mustache": "^4.2.0",+ "p-queue": "^6.6.2","p-retry": "4","uuid": "^10.0.0",- "yaml": "^2.2.1","zod": "^3.22.4","zod-to-json-schema": "^3.22.3"},"engines": {"node": ">=18"+ }+ },+ "node_modules/@langchain/mistralai/node_modules/ansi-styles": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/@langchain/mistralai/node_modules/langsmith": {+ "version": "0.1.68",+ "resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.68.tgz",+ "integrity": "sha512-otmiysWtVAqzMx3CJ4PrtUBhWRG5Co8Z4o7hSZENPjlit9/j3/vm3TSvbaxpDYakZxtMjhkcJTqrdYFipISEiQ==",+ "dependencies": {+ "@types/uuid": "^10.0.0",+ "commander": "^10.0.1",+ "p-queue": "^6.6.2",+ "p-retry": "4",+ "semver": "^7.6.3",+ "uuid": "^10.0.0"},"peerDependencies": {- "@langchain/anthropic": "*",- "@langchain/aws": "*",- "@langchain/cerebras": "*",- "@langchain/cohere": "*",- "@langchain/core": ">=0.2.21 <0.4.0",- "@langchain/deepseek": "*",- "@langchain/google-genai": "*",- "@langchain/google-vertexai": "*",- "@langchain/google-vertexai-web": "*",- "@langchain/groq": "*",- "@langchain/mistralai": "*",- "@langchain/ollama": "*",- "@langchain/xai": "*",- "axios": "*",- "cheerio": "*",- "handlebars": "^4.7.8",- "peggy": "^3.0.2",- "typeorm": "*"+ "openai": "*"},"peerDependenciesMeta": {- "@langchain/anthropic": {- "optional": true- },- "@langchain/aws": {- "optional": true- },- "@langchain/cerebras": {- "optional": true- },- "@langchain/cohere": {- "optional": true- },- "@langchain/deepseek": {- "optional": true- },- "@langchain/google-genai": {- "optional": true- },- "@langchain/google-vertexai": {- "optional": true- },- "@langchain/google-vertexai-web": {- "optional": true- },- "@langchain/groq": {- "optional": true- },- "@langchain/mistralai": {- "optional": true- },- "@langchain/ollama": {- "optional": true- },- "@langchain/xai": {- "optional": true- },- "axios": {- "optional": true- },- "cheerio": {- "optional": true- },- "handlebars": {- "optional": true- },- "peggy": {- "optional": true- },- "typeorm": {+ "openai": {"optional": true}}},- "node_modules/@librechat/agents/node_modules/agent-base": {- "version": "7.1.3",- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",- "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",- "engines": {- "node": ">= 14"+ "node_modules/@langchain/mistralai/node_modules/uuid": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",+ "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "bin": {+ "uuid": "dist/bin/uuid"}},- "node_modules/@librechat/agents/node_modules/https-proxy-agent": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",- "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "node_modules/@langchain/ollama": {+ "version": "0.1.6",+ "resolved": "https://registry.npmjs.org/@langchain/ollama/-/ollama-0.1.6.tgz",+ "integrity": "sha512-hS+xHiRqKpq37eGyZQ0JoTghfNA7hWXK54XbILQ0KVm3v2MMWLKqBAep4LwMLrAr4NE7SIp+SJnQRdsjabR0jw==","dependencies": {- "agent-base": "^7.1.2",- "debug": "4"+ "ollama": "^0.5.12",+ "uuid": "^10.0.0",+ "zod": "^3.24.1",+ "zod-to-json-schema": "^3.24.1"},"engines": {- "node": ">= 14"+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.2.21 <0.4.0"}},- "node_modules/@librechat/agents/node_modules/uuid": {+ "node_modules/@langchain/ollama/node_modules/uuid": {"version": "10.0.0","resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz","integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",@@ -15986,6 +15667,103 @@"uuid": "dist/bin/uuid"}},+ "node_modules/@langchain/openai": {+ "version": "0.4.4",+ "resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.4.4.tgz",+ "integrity": "sha512-UZybJeMd8+UX7Kn47kuFYfqKdBCeBUWNqDtmAr6ZUIMMnlsNIb6MkrEEhGgAEjGCpdT4CU8U/DyyddTz+JayOQ==",+ "dependencies": {+ "js-tiktoken": "^1.0.12",+ "openai": "^4.77.0",+ "zod": "^3.22.4",+ "zod-to-json-schema": "^3.22.3"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.3.39 <0.4.0"+ }+ },+ "node_modules/@langchain/textsplitters": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/@langchain/textsplitters/-/textsplitters-0.1.0.tgz",+ "integrity": "sha512-djI4uw9rlkAb5iMhtLED+xJebDdAG935AdP4eRTB02R7OB/act55Bj9wsskhZsvuyQRpO4O1wQOp85s6T6GWmw==",+ "dependencies": {+ "js-tiktoken": "^1.0.12"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.2.21 <0.4.0"+ }+ },+ "node_modules/@langchain/xai": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/@langchain/xai/-/xai-0.0.2.tgz",+ "integrity": "sha512-wVOs7SfJs4VWk/oiHJomaoaZ+r9nQhPqbEXlQ2D8L0d54PxYhb1ILR9rub9LT1RpqazSX8HG4A8+hX4R01qkSg==",+ "dependencies": {+ "@langchain/openai": "~0.4.4",+ "zod": "^3.24.2"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.2.21 <0.4.0"+ }+ },+ "node_modules/@lezer/common": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.1.tgz",+ "integrity": "sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ=="+ },+ "node_modules/@lezer/css": {+ "version": "1.1.8",+ "resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.1.8.tgz",+ "integrity": "sha512-7JhxupKuMBaWQKjQoLtzhGj83DdnZY9MckEOG5+/iLKNK2ZJqKc6hf6uc0HjwCX7Qlok44jBNqZhHKDhEhZYLA==",+ "dependencies": {+ "@lezer/common": "^1.2.0",+ "@lezer/highlight": "^1.0.0",+ "@lezer/lr": "^1.0.0"+ }+ },+ "node_modules/@lezer/highlight": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.1.tgz",+ "integrity": "sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==",+ "dependencies": {+ "@lezer/common": "^1.0.0"+ }+ },+ "node_modules/@lezer/html": {+ "version": "1.3.10",+ "resolved": "https://registry.npmjs.org/@lezer/html/-/html-1.3.10.tgz",+ "integrity": "sha512-dqpT8nISx/p9Do3AchvYGV3qYc4/rKr3IBZxlHmpIKam56P47RSHkSF5f13Vu9hebS1jM0HmtJIwLbWz1VIY6w==",+ "dependencies": {+ "@lezer/common": "^1.2.0",+ "@lezer/highlight": "^1.0.0",+ "@lezer/lr": "^1.0.0"+ }+ },+ "node_modules/@lezer/javascript": {+ "version": "1.4.17",+ "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.17.tgz",+ "integrity": "sha512-bYW4ctpyGK+JMumDApeUzuIezX01H76R1foD6LcRX224FWfyYit/HYxiPGDjXXe/wQWASjCvVGoukTH68+0HIA==",+ "dependencies": {+ "@lezer/common": "^1.2.0",+ "@lezer/highlight": "^1.1.3",+ "@lezer/lr": "^1.3.0"+ }+ },+ "node_modules/@lezer/lr": {+ "version": "1.4.2",+ "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz",+ "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==",+ "dependencies": {+ "@lezer/common": "^1.0.0"+ }+ },"node_modules/@librechat/backend": {"resolved": "api","link": true@@ -22583,16 +22361,6 @@"node-int64": "^0.4.0"}},- "node_modules/bson": {- "version": "6.10.1",- "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.1.tgz",- "integrity": "sha512-P92xmHDQjSKPLHqFxefqMxASNq/aWJMEZugpCjf+AF/pgcUpMMQCg7t7+ewko0/u8AapvF3luf/FoehddEK+sA==",- "optional": true,- "peer": true,- "engines": {- "node": ">=16.20.1"- }- },"node_modules/buffer": {"version": "6.0.3","resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",@@ -29476,6 +29244,113 @@"resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz","integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A=="},+ "node_modules/langchain": {+ "version": "0.3.19",+ "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.3.19.tgz",+ "integrity": "sha512-aGhoTvTBS5ulatA67RHbJ4bcV5zcYRYdm5IH+hpX99RYSFXG24XF3ghSjhYi6sxW+SUnEQ99fJhA5kroVpKNhw==",+ "dependencies": {+ "@langchain/openai": ">=0.1.0 <0.5.0",+ "@langchain/textsplitters": ">=0.0.0 <0.2.0",+ "js-tiktoken": "^1.0.12",+ "js-yaml": "^4.1.0",+ "jsonpointer": "^5.0.1",+ "langsmith": ">=0.2.8 <0.4.0",+ "openapi-types": "^12.1.3",+ "p-retry": "4",+ "uuid": "^10.0.0",+ "yaml": "^2.2.1",+ "zod": "^3.22.4",+ "zod-to-json-schema": "^3.22.3"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/anthropic": "*",+ "@langchain/aws": "*",+ "@langchain/cerebras": "*",+ "@langchain/cohere": "*",+ "@langchain/core": ">=0.2.21 <0.4.0",+ "@langchain/deepseek": "*",+ "@langchain/google-genai": "*",+ "@langchain/google-vertexai": "*",+ "@langchain/google-vertexai-web": "*",+ "@langchain/groq": "*",+ "@langchain/mistralai": "*",+ "@langchain/ollama": "*",+ "@langchain/xai": "*",+ "axios": "*",+ "cheerio": "*",+ "handlebars": "^4.7.8",+ "peggy": "^3.0.2",+ "typeorm": "*"+ },+ "peerDependenciesMeta": {+ "@langchain/anthropic": {+ "optional": true+ },+ "@langchain/aws": {+ "optional": true+ },+ "@langchain/cerebras": {+ "optional": true+ },+ "@langchain/cohere": {+ "optional": true+ },+ "@langchain/deepseek": {+ "optional": true+ },+ "@langchain/google-genai": {+ "optional": true+ },+ "@langchain/google-vertexai": {+ "optional": true+ },+ "@langchain/google-vertexai-web": {+ "optional": true+ },+ "@langchain/groq": {+ "optional": true+ },+ "@langchain/mistralai": {+ "optional": true+ },+ "@langchain/ollama": {+ "optional": true+ },+ "@langchain/xai": {+ "optional": true+ },+ "axios": {+ "optional": true+ },+ "cheerio": {+ "optional": true+ },+ "handlebars": {+ "optional": true+ },+ "peggy": {+ "optional": true+ },+ "typeorm": {+ "optional": true+ }+ }+ },+ "node_modules/langchain/node_modules/uuid": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",+ "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },"node_modules/langsmith": {"version": "0.2.14","resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.2.14.tgz",@@ -31860,53 +31735,6 @@"node": "*"}},- "node_modules/mongodb": {- "version": "6.12.0",- "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.12.0.tgz",- "integrity": "sha512-RM7AHlvYfS7jv7+BXund/kR64DryVI+cHbVAy9P61fnb1RcWZqOW1/Wj2YhqMCx+MuYhqTRGv7AwHBzmsCKBfA==",- "optional": true,- "peer": true,- "dependencies": {- "@mongodb-js/saslprep": "^1.1.9",- "bson": "^6.10.1",- "mongodb-connection-string-url": "^3.0.0"- },- "engines": {- "node": ">=16.20.1"- },- "peerDependencies": {- "@aws-sdk/credential-providers": "^3.188.0",- "@mongodb-js/zstd": "^1.1.0 || ^2.0.0",- "gcp-metadata": "^5.2.0",- "kerberos": "^2.0.1",- "mongodb-client-encryption": ">=6.0.0 <7",- "snappy": "^7.2.2",- "socks": "^2.7.1"- },- "peerDependenciesMeta": {- "@aws-sdk/credential-providers": {- "optional": true- },- "@mongodb-js/zstd": {- "optional": true- },- "gcp-metadata": {- "optional": true- },- "kerberos": {- "optional": true- },- "mongodb-client-encryption": {- "optional": true- },- "snappy": {- "optional": true- },- "socks": {- "optional": true- }- }- },"node_modules/mongodb-connection-string-url": {"version": "2.6.0","resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz",@@ -31916,54 +31744,6 @@"whatwg-url": "^11.0.0"}},- "node_modules/mongodb/node_modules/@types/whatwg-url": {- "version": "11.0.5",- "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz",- "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==",- "optional": true,- "peer": true,- "dependencies": {- "@types/webidl-conversions": "*"- }- },- "node_modules/mongodb/node_modules/mongodb-connection-string-url": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.2.tgz",- "integrity": "sha512-rMO7CGo/9BFwyZABcKAWL8UJwH/Kc2x0g72uhDWzG48URRax5TCIcJ7Rc3RZqffZzO/Gwff/jyKwCU9TN8gehA==",- "optional": true,- "peer": true,- "dependencies": {- "@types/whatwg-url": "^11.0.2",- "whatwg-url": "^14.1.0 || ^13.0.0"- }- },- "node_modules/mongodb/node_modules/tr46": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz",- "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==",- "optional": true,- "peer": true,- "dependencies": {- "punycode": "^2.3.1"- },- "engines": {- "node": ">=18"- }- },- "node_modules/mongodb/node_modules/whatwg-url": {- "version": "14.1.0",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.1.0.tgz",- "integrity": "sha512-jlf/foYIKywAt3x/XWKZ/3rz8OSJPiWktjmk891alJUEjiVxKX9LEO92qH3hv4aJ0mN3MWPvGMCy8jQi95xK4w==",- "optional": true,- "peer": true,- "dependencies": {- "tr46": "^5.0.0",- "webidl-conversions": "^7.0.0"- },- "engines": {- "node": ">=18"- }- },"node_modules/moo-color": {"version": "1.0.3","resolved": "https://registry.npmjs.org/moo-color/-/moo-color-1.0.3.tgz",@@ -41028,7 +40808,7 @@},"packages/data-provider": {"name": "librechat-data-provider",- "version": "0.7.71",+ "version": "0.7.72","license": "ISC","dependencies": {"axios": "^1.8.2",@@ -41165,7 +40945,7 @@},"packages/data-schemas": {"name": "@librechat/data-schemas",- "version": "0.0.2",+ "version": "0.0.3","license": "MIT","dependencies": {"mongoose": "^8.12.1"diff --git a/packages/data-provider/package.json b/packages/data-provider/package.jsonindex 5ebf9877c0..a90c3afdb7 100644--- a/packages/data-provider/package.json+++ b/packages/data-provider/package.json@@ -1,6 +1,6 @@{"name": "librechat-data-provider",- "version": "0.7.71",+ "version": "0.7.72","description": "data services for librechat apps","main": "dist/index.js","module": "dist/index.es.js",diff --git a/packages/data-provider/src/config.ts b/packages/data-provider/src/config.tsindex af850b4180..96c8071727 100644--- a/packages/data-provider/src/config.ts+++ b/packages/data-provider/src/config.ts@@ -168,6 +168,7 @@ export enum AgentCapabilities {artifacts = 'artifacts',actions = 'actions',tools = 'tools',+ chain = 'chain',ocr = 'ocr',}@@ -234,6 +235,7 @@ export const agentsEndpointSChema = baseEndpointSchema.merge(/* agents specific */recursionLimit: z.number().optional(),disableBuilder: z.boolean().optional(),+ maxRecursionLimit: z.number().optional(),capabilities: z.array(z.nativeEnum(AgentCapabilities)).optional()@@ -244,6 +246,7 @@ export const agentsEndpointSChema = baseEndpointSchema.merge(AgentCapabilities.actions,AgentCapabilities.tools,AgentCapabilities.ocr,+ AgentCapabilities.chain,]),}),);@@ -827,6 +830,7 @@ export const supportsBalanceCheck = {};export const visionModels = [+ 'qwen-vl','grok-vision','grok-2-vision','grok-3',@@ -1190,7 +1194,7 @@ export enum Constants {/** Key for the app's version. */VERSION = 'v0.7.7',/** Key for the Custom Config's version (librechat.yaml). */- CONFIG_VERSION = '1.2.2',+ CONFIG_VERSION = '1.2.3',/** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */NO_PARENT = '00000000-0000-0000-0000-000000000000',/** Standard value for the initial conversationId before a request is sent */diff --git a/packages/data-provider/src/schemas.ts b/packages/data-provider/src/schemas.tsindex 5be5b44453..9c4c30ef01 100644--- a/packages/data-provider/src/schemas.ts+++ b/packages/data-provider/src/schemas.ts@@ -47,6 +47,7 @@ export enum BedrockProviders {Meta = 'meta',MistralAI = 'mistral',StabilityAI = 'stability',+ DeepSeek = 'deepseek',}export const getModelKey = (endpoint: EModelEndpoint | string, model: string) => {@@ -157,6 +158,7 @@ export const defaultAgentFormValues = {projectIds: [],artifacts: '',isCollaborative: false,+ recursion_limit: undefined,[Tools.execute_code]: false,[Tools.file_search]: false,};diff --git a/packages/data-provider/src/types/agents.ts b/packages/data-provider/src/types/agents.tsindex b1021d80f6..d4218440c6 100644--- a/packages/data-provider/src/types/agents.ts+++ b/packages/data-provider/src/types/agents.ts@@ -19,6 +19,15 @@ export namespace Agents {tool_call_ids?: string[];};+ export type AgentUpdate = {+ type: ContentTypes.AGENT_UPDATE;+ agent_update: {+ index: number;+ runId: string;+ agentId: string;+ };+ };+export type MessageContentImageUrl = {type: ContentTypes.IMAGE_URL;image_url: string | { url: string; detail?: ImageDetail };@@ -26,6 +35,7 @@ export namespace Agents {export type MessageContentComplex =| ReasoningContentText+ | AgentUpdate| MessageContentText| MessageContentImageUrl// eslint-disable-next-line @typescript-eslint/no-explicit-any@@ -159,12 +169,7 @@ export namespace Agents {index: number; // #newstepIndex?: number; // #newstepDetails: StepDetails;- usage: null | {- // Define usage structure if it's ever non-null- // prompt_tokens: number; // #new- // completion_tokens: number; // #new- // total_tokens: number; // #new- };+ usage: null | object;};/*** Represents a run step delta i.e. any changed fields on a run step duringdiff --git a/packages/data-provider/src/types/assistants.ts b/packages/data-provider/src/types/assistants.tsindex 7092f98ae6..932fc02077 100644--- a/packages/data-provider/src/types/assistants.ts+++ b/packages/data-provider/src/types/assistants.ts@@ -222,6 +222,7 @@ export type Agent = {end_after_tools?: boolean;hide_sequential_outputs?: boolean;artifacts?: ArtifactModes;+ recursion_limit?: number;};export type TAgentsMap = Record<string, Agent | undefined>;@@ -236,7 +237,10 @@ export type AgentCreateParams = {provider: AgentProvider;model: string | null;model_parameters: AgentModelParameters;-} & Pick<Agent, 'agent_ids' | 'end_after_tools' | 'hide_sequential_outputs' | 'artifacts'>;+} & Pick<+ Agent,+ 'agent_ids' | 'end_after_tools' | 'hide_sequential_outputs' | 'artifacts' | 'recursion_limit'+>;export type AgentUpdateParams = {name?: string | null;@@ -252,7 +256,10 @@ export type AgentUpdateParams = {projectIds?: string[];removeProjectIds?: string[];isCollaborative?: boolean;-} & Pick<Agent, 'agent_ids' | 'end_after_tools' | 'hide_sequential_outputs' | 'artifacts'>;+} & Pick<+ Agent,+ 'agent_ids' | 'end_after_tools' | 'hide_sequential_outputs' | 'artifacts' | 'recursion_limit'+>;export type AgentListParams = {limit?: number;@@ -455,6 +462,7 @@ export type TMessageContentParts =PartMetadata;}| { type: ContentTypes.IMAGE_FILE; image_file: ImageFile & PartMetadata }+ | Agents.AgentUpdate| Agents.MessageContentImageUrl;export type StreamContentData = TMessageContentParts & {diff --git a/packages/data-provider/src/types/runs.ts b/packages/data-provider/src/types/runs.tsindex 1f40d39b72..bba5126054 100644--- a/packages/data-provider/src/types/runs.ts+++ b/packages/data-provider/src/types/runs.ts@@ -5,6 +5,7 @@ export enum ContentTypes {TOOL_CALL = 'tool_call',IMAGE_FILE = 'image_file',IMAGE_URL = 'image_url',+ AGENT_UPDATE = 'agent_update',ERROR = 'error',}diff --git a/packages/data-schemas/package.json b/packages/data-schemas/package.jsonindex 1b62a372db..b1845b36a9 100644--- a/packages/data-schemas/package.json+++ b/packages/data-schemas/package.json@@ -1,6 +1,6 @@{"name": "@librechat/data-schemas",- "version": "0.0.2",+ "version": "0.0.3","type": "module","description": "Mongoose schemas and models for LibreChat","main": "dist/index.cjs",diff --git a/packages/data-schemas/src/schema/agent.ts b/packages/data-schemas/src/schema/agent.tsindex 282a2f9a52..642d281c68 100644--- a/packages/data-schemas/src/schema/agent.ts+++ b/packages/data-schemas/src/schema/agent.ts@@ -13,6 +13,7 @@ export interface IAgent extends Omit<Document, 'model'> {model_parameters?: Record<string, unknown>;artifacts?: string;access_level?: number;+ recursion_limit?: number;tools?: string[];tool_kwargs?: Array<unknown>;actions?: string[];@@ -65,6 +66,9 @@ const agentSchema = new Schema<IAgent>(access_level: {type: Number,},+ recursion_limit: {+ type: Number,+ },tools: {type: [String],default: undefined,