@librechat/agents 3.2.56 → 3.2.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/graphs/Graph.cjs +5 -0
- package/dist/cjs/graphs/Graph.cjs.map +1 -1
- package/dist/cjs/run.cjs +4 -0
- package/dist/cjs/run.cjs.map +1 -1
- package/dist/cjs/stream.cjs +3 -2
- package/dist/cjs/stream.cjs.map +1 -1
- package/dist/cjs/tools/ToolNode.cjs +19 -5
- package/dist/cjs/tools/ToolNode.cjs.map +1 -1
- package/dist/esm/graphs/Graph.mjs +5 -0
- package/dist/esm/graphs/Graph.mjs.map +1 -1
- package/dist/esm/run.mjs +4 -0
- package/dist/esm/run.mjs.map +1 -1
- package/dist/esm/stream.mjs +3 -2
- package/dist/esm/stream.mjs.map +1 -1
- package/dist/esm/tools/ToolNode.mjs +19 -5
- package/dist/esm/tools/ToolNode.mjs.map +1 -1
- package/dist/types/graphs/Graph.d.ts +1 -0
- package/dist/types/run.d.ts +1 -0
- package/dist/types/tools/ToolNode.d.ts +11 -1
- package/dist/types/types/run.d.ts +9 -0
- package/dist/types/types/tools.d.ts +6 -0
- package/package.json +1 -1
- package/src/__tests__/stream.eagerEventExecution.test.ts +44 -0
- package/src/graphs/Graph.ts +6 -1
- package/src/run.ts +4 -0
- package/src/stream.ts +10 -2
- package/src/tools/ToolNode.ts +28 -4
- package/src/tools/__tests__/ToolNode.session.test.ts +160 -0
- package/src/types/run.ts +9 -0
- package/src/types/tools.ts +6 -0
|
@@ -274,6 +274,7 @@ var Graph = class {
|
|
|
274
274
|
* consumes the settled promises while preserving final ToolMessage order.
|
|
275
275
|
*/
|
|
276
276
|
eagerEventToolExecution;
|
|
277
|
+
codeSessionToolNames;
|
|
277
278
|
eagerEventToolExecutions = /* @__PURE__ */ new Map();
|
|
278
279
|
eagerEventToolUsageCount = /* @__PURE__ */ new Map();
|
|
279
280
|
eagerEventToolUsageCountsByAgentId = /* @__PURE__ */ new Map();
|
|
@@ -319,6 +320,7 @@ var Graph = class {
|
|
|
319
320
|
this.humanInTheLoop = void 0;
|
|
320
321
|
this.toolOutputReferences = void 0;
|
|
321
322
|
this.eagerEventToolExecution = void 0;
|
|
323
|
+
this.codeSessionToolNames = void 0;
|
|
322
324
|
this.eagerEventToolExecutions.clear();
|
|
323
325
|
this.clearEagerEventToolUsageCounts();
|
|
324
326
|
this.eagerEventToolCallChunks.clear();
|
|
@@ -678,6 +680,7 @@ var StandardGraph = class StandardGraph extends Graph {
|
|
|
678
680
|
hookRegistry: this.hookRegistry,
|
|
679
681
|
humanInTheLoop: this.humanInTheLoop,
|
|
680
682
|
eagerEventToolExecution: this.eagerEventToolExecution,
|
|
683
|
+
codeSessionToolNames: this.codeSessionToolNames,
|
|
681
684
|
eagerEventToolExecutions: this.eagerEventToolExecutions,
|
|
682
685
|
eagerEventToolUsageCount: this.getEagerEventToolUsageCount(agentContext?.agentId),
|
|
683
686
|
toolExecution: this.toolExecution,
|
|
@@ -705,6 +708,7 @@ var StandardGraph = class StandardGraph extends Graph {
|
|
|
705
708
|
toolRegistry: agentContext?.toolRegistry,
|
|
706
709
|
sessions: this.sessions,
|
|
707
710
|
toolExecution: this.toolExecution,
|
|
711
|
+
codeSessionToolNames: this.codeSessionToolNames,
|
|
708
712
|
hookRegistry: this.hookRegistry,
|
|
709
713
|
humanInTheLoop: this.humanInTheLoop,
|
|
710
714
|
maxContextTokens: agentContext?.maxContextTokens,
|
|
@@ -1247,6 +1251,7 @@ var StandardGraph = class StandardGraph extends Graph {
|
|
|
1247
1251
|
*/
|
|
1248
1252
|
childGraph.toolOutputReferences = this.toolOutputReferences;
|
|
1249
1253
|
childGraph.eagerEventToolExecution = this.eagerEventToolExecution;
|
|
1254
|
+
childGraph.codeSessionToolNames = this.codeSessionToolNames;
|
|
1250
1255
|
childGraph.toolExecution = this.toolExecution;
|
|
1251
1256
|
childGraph.eventToolExecutionAvailable = this.handlerRegistry?.getHandler("on_tool_execute") != null;
|
|
1252
1257
|
return childGraph;
|