@digipair/skill-llm 0.94.0-3 → 0.94.0-8

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.
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index.cjs2.js');
4
- require('@digipair/engine');
5
4
 
6
5
  /**
7
6
  * Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set#implementing_basic_set_operations
@@ -850,8 +849,7 @@ function formatSet(input) {
850
849
  var chain = _step.value;
851
850
  if (chain.inputKeys.filter(function(k) {
852
851
  var _chain_memory;
853
- var _ref;
854
- return (_ref = !((_chain_memory = chain.memory) === null || _chain_memory === void 0 ? void 0 : _chain_memory.memoryKeys.includes(k))) !== null && _ref !== void 0 ? _ref : true;
852
+ return !((_chain_memory = chain.memory) === null || _chain_memory === void 0 ? void 0 : _chain_memory.memoryKeys.includes(k));
855
853
  }).length !== 1) {
856
854
  throw new Error("Chains used in SimpleSequentialChain should all have one input, got ".concat(chain.inputKeys.length, " for ").concat(chain._chainType(), "."));
857
855
  }
@@ -1,4 +1,4 @@
1
- import { g as BaseChain } from './index.esm2.js';
1
+ import { b as BaseChain } from './index.esm2.js';
2
2
 
3
3
  /**
4
4
  * Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set#implementing_basic_set_operations
@@ -847,8 +847,7 @@ function formatSet(input) {
847
847
  var chain = _step.value;
848
848
  if (chain.inputKeys.filter(function(k) {
849
849
  var _chain_memory;
850
- var _ref;
851
- return (_ref = !((_chain_memory = chain.memory) === null || _chain_memory === void 0 ? void 0 : _chain_memory.memoryKeys.includes(k))) !== null && _ref !== void 0 ? _ref : true;
850
+ return !((_chain_memory = chain.memory) === null || _chain_memory === void 0 ? void 0 : _chain_memory.memoryKeys.includes(k));
852
851
  }).length !== 1) {
853
852
  throw new Error("Chains used in SimpleSequentialChain should all have one input, got ".concat(chain.inputKeys.length, " for ").concat(chain._chainType(), "."));
854
853
  }
@@ -0,0 +1,2 @@
1
+ export * from './lib/skill-llm';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -7,3 +7,4 @@ export declare const reasoningStep: (params: any, pinsSettingsList: PinsSettings
7
7
  export declare const basic: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<RunnableSequence<any, any>>;
8
8
  export declare const vision: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<RunnableSequence<any, any>>;
9
9
  export declare const summarization: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<RunnableSequence<any, any>>;
10
+ //# sourceMappingURL=skill-llm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-llm.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-llm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAmB,MAAM,kBAAkB,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAuT7D,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACtB,CAAC;AAE7D,eAAO,MAAM,aAAa,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG;;EACtB,CAAC;AAEpE,eAAO,MAAM,KAAK,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,wCACtB,CAAC;AAE5D,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,wCACtB,CAAC;AAE7D,eAAO,MAAM,aAAa,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,wCACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=skill-llm.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-llm.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-llm.spec.ts"],"names":[],"mappings":""}
@@ -1,8 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index.cjs2.js');
4
- var chat = require('./chat.cjs.js');
5
- require('@digipair/engine');
6
4
 
7
5
  /**
8
6
  * Abstract class that defines the interface for selecting a prompt for a
@@ -66,7 +64,6 @@ function _defineProperties$1(target, props) {
66
64
  }
67
65
  function _create_class$1(Constructor, protoProps, staticProps) {
68
66
  if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
69
- if (staticProps) _defineProperties$1(Constructor, staticProps);
70
67
  return Constructor;
71
68
  }
72
69
  function _get_prototype_of$1(o) {
@@ -373,10 +370,10 @@ var DEFAULT_QA_PROMPT = /*#__PURE__*/ new index.PromptTemplate({
373
370
  });
374
371
  var system_template = "Use the following pieces of context to answer the users question. \nIf you don't know the answer, just say that you don't know, don't try to make up an answer.\n----------------\n{context}";
375
372
  var messages = [
376
- /*#__PURE__*/ chat.SystemMessagePromptTemplate.fromTemplate(system_template),
377
- /*#__PURE__*/ chat.HumanMessagePromptTemplate.fromTemplate("{question}")
373
+ /*#__PURE__*/ index.SystemMessagePromptTemplate.fromTemplate(system_template),
374
+ /*#__PURE__*/ index.HumanMessagePromptTemplate.fromTemplate("{question}")
378
375
  ];
379
- var CHAT_PROMPT = /*#__PURE__*/ chat.ChatPromptTemplate.fromMessages(messages);
376
+ var CHAT_PROMPT = /*#__PURE__*/ index.ChatPromptTemplate.fromMessages(messages);
380
377
  var QA_PROMPT_SELECTOR = /*#__PURE__*/ new ConditionalPromptSelector(DEFAULT_QA_PROMPT, [
381
378
  [
382
379
  isChatModel,
@@ -510,11 +507,6 @@ function ownKeys(object, enumerableOnly) {
510
507
  var keys = Object.keys(object);
511
508
  if (Object.getOwnPropertySymbols) {
512
509
  var symbols = Object.getOwnPropertySymbols(object);
513
- if (enumerableOnly) {
514
- symbols = symbols.filter(function(sym) {
515
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
516
- });
517
- }
518
510
  keys.push.apply(keys, symbols);
519
511
  }
520
512
  return keys;
@@ -1,5 +1,4 @@
1
- import { P as PromptTemplate, L as LLMChain, h as StuffDocumentsChain, g as BaseChain } from './index.esm2.js';
2
- import { C as ChatPromptTemplate, S as SystemMessagePromptTemplate, H as HumanMessagePromptTemplate } from './chat.esm.js';
1
+ import { P as PromptTemplate, C as ChatPromptTemplate, S as SystemMessagePromptTemplate, H as HumanMessagePromptTemplate, L as LLMChain, d as StuffDocumentsChain, b as BaseChain } from './index.esm2.js';
3
2
 
4
3
  /**
5
4
  * Abstract class that defines the interface for selecting a prompt for a
@@ -63,7 +62,6 @@ function _defineProperties$1(target, props) {
63
62
  }
64
63
  function _create_class$1(Constructor, protoProps, staticProps) {
65
64
  if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
66
- if (staticProps) _defineProperties$1(Constructor, staticProps);
67
65
  return Constructor;
68
66
  }
69
67
  function _get_prototype_of$1(o) {
@@ -507,11 +505,6 @@ function ownKeys(object, enumerableOnly) {
507
505
  var keys = Object.keys(object);
508
506
  if (Object.getOwnPropertySymbols) {
509
507
  var symbols = Object.getOwnPropertySymbols(object);
510
- if (enumerableOnly) {
511
- symbols = symbols.filter(function(sym) {
512
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
513
- });
514
- }
515
508
  keys.push.apply(keys, symbols);
516
509
  }
517
510
  return keys;
package/package.json CHANGED
@@ -1,12 +1,28 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.94.0-3",
3
+ "version": "0.94.0-8",
4
+ "main": "./dist/index.cjs.js",
5
+ "module": "./dist/index.esm.js",
6
+ "types": "./dist/index.d.ts",
4
7
  "keywords": [
5
8
  "digipair",
6
9
  "service",
7
10
  "tool"
8
11
  ],
9
- "dependencies": {},
10
- "main": "./index.cjs.js",
11
- "module": "./index.esm.js"
12
- }
12
+ "exports": {
13
+ "./package.json": "./package.json",
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.esm.js",
17
+ "default": "./dist/index.cjs.js"
18
+ }
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "!**/*.tsbuildinfo"
23
+ ],
24
+ "nx": {
25
+ "name": "skill-llm"
26
+ },
27
+ "dependencies": {}
28
+ }