mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-10 04:28:50 +01:00
🔧 chore: Update @librechat/agents to version 3.0.49 and enhance tool calling logic
This commit is contained in:
parent
4359260b38
commit
b3ace68178
9 changed files with 32 additions and 21 deletions
|
|
@ -43,7 +43,7 @@
|
|||
"@googleapis/youtube": "^20.0.0",
|
||||
"@keyv/redis": "^4.3.3",
|
||||
"@langchain/core": "^0.3.79",
|
||||
"@librechat/agents": "^3.0.44",
|
||||
"@librechat/agents": "^3.0.49",
|
||||
"@librechat/api": "*",
|
||||
"@librechat/data-schemas": "*",
|
||||
"@microsoft/microsoft-graph-client": "^3.0.7",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue