@librechat/agents 3.6.10 → 3.6.11
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/agents/AgentContext.cjs +63 -10
- package/dist/cjs/agents/AgentContext.cjs.map +1 -1
- package/dist/cjs/graphs/Graph.cjs +4 -3
- package/dist/cjs/graphs/Graph.cjs.map +1 -1
- package/dist/cjs/main.cjs +2 -0
- package/dist/cjs/stream.cjs +1 -0
- package/dist/cjs/stream.cjs.map +1 -1
- package/dist/cjs/tools/CallerCapabilities.cjs +31 -0
- package/dist/cjs/tools/CallerCapabilities.cjs.map +1 -1
- package/dist/cjs/tools/ToolNode.cjs +23 -6
- package/dist/cjs/tools/ToolNode.cjs.map +1 -1
- package/dist/cjs/tools/local/resolveLocalExecutionTools.cjs +26 -2
- package/dist/cjs/tools/local/resolveLocalExecutionTools.cjs.map +1 -1
- package/dist/esm/agents/AgentContext.mjs +65 -12
- package/dist/esm/agents/AgentContext.mjs.map +1 -1
- package/dist/esm/graphs/Graph.mjs +4 -3
- package/dist/esm/graphs/Graph.mjs.map +1 -1
- package/dist/esm/main.mjs +2 -2
- package/dist/esm/stream.mjs +1 -0
- package/dist/esm/stream.mjs.map +1 -1
- package/dist/esm/tools/CallerCapabilities.mjs +29 -1
- package/dist/esm/tools/CallerCapabilities.mjs.map +1 -1
- package/dist/esm/tools/ToolNode.mjs +24 -7
- package/dist/esm/tools/ToolNode.mjs.map +1 -1
- package/dist/esm/tools/local/resolveLocalExecutionTools.mjs +26 -4
- package/dist/esm/tools/local/resolveLocalExecutionTools.mjs.map +1 -1
- package/dist/types/agents/AgentContext.d.ts +11 -0
- package/dist/types/tools/CallerCapabilities.d.ts +13 -0
- package/dist/types/tools/ToolNode.d.ts +9 -1
- package/dist/types/tools/local/resolveLocalExecutionTools.d.ts +6 -0
- package/dist/types/types/tools.d.ts +17 -0
- package/package.json +1 -1
- package/src/agents/AgentContext.ts +157 -15
- package/src/graphs/Graph.ts +6 -3
- package/src/stream.ts +6 -0
- package/src/tools/CallerCapabilities.ts +68 -0
- package/src/tools/ToolNode.ts +47 -4
- package/src/tools/local/resolveLocalExecutionTools.ts +77 -3
- package/src/types/tools.ts +18 -0
package/src/types/tools.ts
CHANGED
|
@@ -557,6 +557,19 @@ export type ToolCallRequest = {
|
|
|
557
557
|
runtimeSessionHint?: string;
|
|
558
558
|
};
|
|
559
559
|
|
|
560
|
+
/**
|
|
561
|
+
* Serializable view of the active tools grouped by their effective caller
|
|
562
|
+
* capabilities. Event-driven hosts use this snapshot to preserve the SDK's
|
|
563
|
+
* live deferred-tool discovery state without reimplementing its policy.
|
|
564
|
+
*/
|
|
565
|
+
export type CallerCapabilityProjectionSnapshot = {
|
|
566
|
+
version: 1;
|
|
567
|
+
directToolNames: string[];
|
|
568
|
+
codeExecutionToolNames: string[];
|
|
569
|
+
directOnlyToolNames: string[];
|
|
570
|
+
codeExecutionOnlyToolNames: string[];
|
|
571
|
+
};
|
|
572
|
+
|
|
560
573
|
/** Batch request containing ALL tool calls for a graph step */
|
|
561
574
|
export type ToolExecuteBatchRequest = {
|
|
562
575
|
/** All tool calls from the AIMessage */
|
|
@@ -565,6 +578,11 @@ export type ToolExecuteBatchRequest = {
|
|
|
565
578
|
userId?: string;
|
|
566
579
|
/** Agent ID for context */
|
|
567
580
|
agentId?: string;
|
|
581
|
+
/**
|
|
582
|
+
* SDK-owned snapshot of the active caller capability projection. Optional
|
|
583
|
+
* so older event handlers remain compatible with newer SDKs.
|
|
584
|
+
*/
|
|
585
|
+
callerCapabilityProjection?: CallerCapabilityProjectionSnapshot;
|
|
568
586
|
/** Runtime configurable from RunnableConfig (includes user, userMCPAuthMap, etc.) */
|
|
569
587
|
configurable?: Record<string, unknown>;
|
|
570
588
|
/** Runtime metadata from RunnableConfig (includes thread_id, run_id, provider, etc.) */
|