@librechat/agents-types 3.0.42 → 3.0.44

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tools.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@librechat/agents-types",
3
- "version": "3.0.42",
3
+ "version": "3.0.44",
4
4
  "description": "Type definitions for @librechat/agents",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {
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
- /** Tools available for programmatic code execution (allowed_callers includes 'code_execution') */
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;
@@ -241,6 +239,8 @@ export type ProgrammaticToolCallingParams = {
241
239
  maxRoundTrips?: number;
242
240
  /** HTTP proxy URL */
243
241
  proxy?: string;
242
+ /** Enable debug logging (or set PTC_DEBUG=true env var) */
243
+ debug?: boolean;
244
244
  /** Environment variable key for API key */
245
245
  [key: string]: unknown;
246
246
  };