@digipair/skill-llm 0.2.9 → 0.2.15

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/index.cjs.js CHANGED
@@ -4,26 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var engine = require('@digipair/engine');
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var engine__namespace = /*#__PURE__*/_interopNamespace(engine);
26
-
27
7
  function _extends() {
28
8
  _extends = Object.assign || function assign(target) {
29
9
  for(var i = 1; i < arguments.length; i++){
@@ -32741,7 +32721,6 @@ function _coerceToRunnable(coerceable) {
32741
32721
  return RunnablePick;
32742
32722
  }(Runnable);
32743
32723
 
32744
- const { executePins, executePinsList } = engine__namespace;
32745
32724
  let LLMService = class LLMService {
32746
32725
  objectToInput(obj) {
32747
32726
  const result = {};
@@ -32756,7 +32735,7 @@ let LLMService = class LLMService {
32756
32735
  const { input = {} } = params;
32757
32736
  const chain = RunnableSequence.from([
32758
32737
  this.objectToInput(input),
32759
- ...await Promise.all(pinsSettingsList.map((pinsSettings)=>executePins(pinsSettings, context)))
32738
+ ...await Promise.all(pinsSettingsList.map((pinsSettings)=>engine.executePins(pinsSettings, context)))
32760
32739
  ]);
32761
32740
  const result = await chain.invoke({});
32762
32741
  return result;
@@ -32765,7 +32744,7 @@ let LLMService = class LLMService {
32765
32744
  const { attributes } = params;
32766
32745
  const data = {};
32767
32746
  for (const attribute of attributes){
32768
- data[attribute.name] = async (previous)=>await executePinsList(attribute.value, _extends({}, context, {
32747
+ data[attribute.name] = async (previous)=>await engine.executePinsList(attribute.value, _extends({}, context, {
32769
32748
  previous,
32770
32749
  parent: {
32771
32750
  previous: context.previous,
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './index.cjs';
package/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import * as engine from '@digipair/engine';
1
+ import { executePins, executePinsList } from '@digipair/engine';
2
2
 
3
3
  function _extends() {
4
4
  _extends = Object.assign || function assign(target) {
@@ -32717,7 +32717,6 @@ function _coerceToRunnable(coerceable) {
32717
32717
  return RunnablePick;
32718
32718
  }(Runnable);
32719
32719
 
32720
- const { executePins, executePinsList } = engine;
32721
32720
  let LLMService = class LLMService {
32722
32721
  objectToInput(obj) {
32723
32722
  const result = {};
@@ -1,7 +1,6 @@
1
- type PinsSettings = any;
1
+ import { PinsSettings } from '@digipair/engine';
2
2
  export declare const invoke: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
3
3
  export declare const reasoningStep: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<{
4
4
  [key: string]: any;
5
5
  }>;
6
6
  export declare const reasoningStepValue: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
7
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.2.9",
3
+ "version": "0.2.15",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"