@librechat/agents-types 3.0.41 → 3.0.43
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/package.json +1 -1
- package/tools.ts +3 -5
package/package.json
CHANGED
package/tools.ts
CHANGED
|
@@ -35,11 +35,7 @@ export type ToolNodeOptions = {
|
|
|
35
35
|
data: ToolErrorData,
|
|
36
36
|
metadata?: Record<string, unknown>
|
|
37
37
|
) => Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
programmaticToolMap?: ToolMap;
|
|
40
|
-
/** Tool definitions for programmatic code execution (sent to Code API for stub generation) */
|
|
41
|
-
programmaticToolDefs?: LCTool[];
|
|
42
|
-
/** Tool registry for tool search (deferred tool definitions) */
|
|
38
|
+
/** Tool registry for lazy computation of programmatic tools and tool search */
|
|
43
39
|
toolRegistry?: LCToolRegistry;
|
|
44
40
|
};
|
|
45
41
|
|
|
@@ -128,6 +124,8 @@ export type LCTool = {
|
|
|
128
124
|
/** Map of tool names to tool definitions */
|
|
129
125
|
export type LCToolRegistry = Map<string, LCTool>;
|
|
130
126
|
|
|
127
|
+
export type ProgrammaticCache = { toolMap: ToolMap; toolDefs: LCTool[] };
|
|
128
|
+
|
|
131
129
|
/** Parameters for creating a Tool Search Regex tool */
|
|
132
130
|
export type ToolSearchRegexParams = {
|
|
133
131
|
apiKey?: string;
|