vovk 3.0.0-draft.259 → 3.0.0-draft.260

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.
@@ -29,7 +29,7 @@ type CallerInput = {
29
29
  handlerName: string;
30
30
  moduleName: string;
31
31
  };
32
- declare function defaultCaller({ handler, body, query, params, init }: CallerInput, _options: KnownAny): Promise<any>;
32
+ declare function defaultCaller({ handler, body, query, params, init, meta }: CallerInput, _options: KnownAny): Promise<any>;
33
33
  export declare function createLLMTools({ modules, caller, meta, onExecute, onError, }: {
34
34
  modules: Record<string, object | [object, {
35
35
  init?: RequestInit;
@@ -65,7 +65,7 @@ const createLLMTool = ({ moduleName, handlerName, caller, module, init, meta, on
65
65
  models,
66
66
  };
67
67
  };
68
- async function defaultCaller({ handler, body, query, params, init },
68
+ async function defaultCaller({ handler, body, query, params, init, meta },
69
69
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
70
70
  _options) {
71
71
  if (handler.isRPC) {
@@ -75,6 +75,7 @@ _options) {
75
75
  query,
76
76
  params,
77
77
  init,
78
+ meta,
78
79
  });
79
80
  }
80
81
  if (handler.fn) {
@@ -82,6 +83,7 @@ _options) {
82
83
  body,
83
84
  query,
84
85
  params,
86
+ meta,
85
87
  });
86
88
  }
87
89
  throw new Error('Handler is not a valid RPC or controller method');
@@ -29,7 +29,7 @@ type CallerInput = {
29
29
  handlerName: string;
30
30
  moduleName: string;
31
31
  };
32
- declare function defaultCaller({ handler, body, query, params, init }: CallerInput, _options: KnownAny): Promise<any>;
32
+ declare function defaultCaller({ handler, body, query, params, init, meta }: CallerInput, _options: KnownAny): Promise<any>;
33
33
  export declare function createLLMTools({ modules, caller, meta, onExecute, onError, }: {
34
34
  modules: Record<string, object | [object, {
35
35
  init?: RequestInit;
@@ -65,7 +65,7 @@ const createLLMTool = ({ moduleName, handlerName, caller, module, init, meta, on
65
65
  models,
66
66
  };
67
67
  };
68
- async function defaultCaller({ handler, body, query, params, init },
68
+ async function defaultCaller({ handler, body, query, params, init, meta },
69
69
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
70
70
  _options) {
71
71
  if (handler.isRPC) {
@@ -75,6 +75,7 @@ _options) {
75
75
  query,
76
76
  params,
77
77
  init,
78
+ meta,
78
79
  });
79
80
  }
80
81
  if (handler.fn) {
@@ -82,6 +83,7 @@ _options) {
82
83
  body,
83
84
  query,
84
85
  params,
86
+ meta,
85
87
  });
86
88
  }
87
89
  throw new Error('Handler is not a valid RPC or controller method');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "3.0.0-draft.259",
3
+ "version": "3.0.0-draft.260",
4
4
  "main": "./cjs/index.js",
5
5
  "module": "./mjs/index.js",
6
6
  "types": "./mjs/index.d.ts",