🔧 chore: Update @librechat/agents to version 3.0.49 and enhance tool calling logic

This commit is contained in:
Danny Avila 2025-12-08 14:57:14 -05:00
parent 4359260b38
commit b3ace68178
9 changed files with 32 additions and 21 deletions

View file

@ -1,5 +1,6 @@
const { nanoid } = require('nanoid');
const { sendEvent } = require('@librechat/api');
const { Constants } = require('@librechat/agents');
const { logger } = require('@librechat/data-schemas');
const { Tools, StepTypes, FileContext, ErrorTypes } = require('librechat-data-provider');
const {
@ -406,9 +407,11 @@ function createToolEndCallback({ req, res, artifactPromises }) {
}
return;
}
// Constants.PROGRAMMATIC_TOOL_CALLING
{
if (output.name !== Tools.execute_code) {
const isCodeTool =
output.name === Tools.execute_code || output.name === Constants.PROGRAMMATIC_TOOL_CALLING;
if (!isCodeTool) {
return;
}
}