@digipair/skill-llm 0.113.1 → 0.114.2

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # skill-test
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build skill-llm` to build the library.
@@ -1,4 +1,4 @@
1
- import { P as PromptTemplate, L as LLMChain, g as BaseChain } from './index.esm2.js';
1
+ import { P as PromptTemplate, L as LLMChain, b as BaseChain } from './index.esm2.js';
2
2
 
3
3
  var API_URL_RAW_PROMPT_TEMPLATE = "You are given the below API Documentation:\n{api_docs}\nUsing this documentation, generate the full API url to call for answering the user question.\nYou should build the API url in order to get a response that is as short as possible, while still getting the necessary information to answer the question. Pay attention to deliberately exclude any unnecessary pieces of data in the API call.\n\nQuestion:{question}\nAPI url:";
4
4
  var API_URL_PROMPT_TEMPLATE = /* #__PURE__ */ new PromptTemplate({
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index.cjs2.js');
4
- var chat = require('./chat.cjs.js');
5
4
  require('@digipair/engine');
6
5
 
7
6
  function _array_like_to_array(arr, len) {
@@ -123,11 +122,6 @@ function ownKeys(object, enumerableOnly) {
123
122
  var keys = Object.keys(object);
124
123
  if (Object.getOwnPropertySymbols) {
125
124
  var symbols = Object.getOwnPropertySymbols(object);
126
- if (enumerableOnly) {
127
- symbols = symbols.filter(function(sym) {
128
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
129
- });
130
- }
131
125
  keys.push.apply(keys, symbols);
132
126
  }
133
127
  return keys;
@@ -883,7 +877,7 @@ function _ts_generator(thisArg, body) {
883
877
  }
884
878
  ]);
885
879
  return FewShotChatMessagePromptTemplate;
886
- }(chat.BaseChatPromptTemplate);
880
+ }(index.BaseChatPromptTemplate);
887
881
 
888
882
  exports.FewShotChatMessagePromptTemplate = FewShotChatMessagePromptTemplate;
889
883
  exports.FewShotPromptTemplate = FewShotPromptTemplate;
@@ -1,5 +1,4 @@
1
- import { c as checkValidTemplate, B as BaseStringPromptTemplate, P as PromptTemplate, r as renderTemplate } from './index.esm2.js';
2
- import { B as BaseChatPromptTemplate } from './chat.esm.js';
1
+ import { c as checkValidTemplate, B as BaseStringPromptTemplate, a as BaseChatPromptTemplate, P as PromptTemplate, r as renderTemplate } from './index.esm2.js';
3
2
 
4
3
  function _array_like_to_array(arr, len) {
5
4
  if (len == null || len > arr.length) len = arr.length;
@@ -120,11 +119,6 @@ function ownKeys(object, enumerableOnly) {
120
119
  var keys = Object.keys(object);
121
120
  if (Object.getOwnPropertySymbols) {
122
121
  var symbols = Object.getOwnPropertySymbols(object);
123
- if (enumerableOnly) {
124
- symbols = symbols.filter(function(sym) {
125
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
126
- });
127
- }
128
122
  keys.push.apply(keys, symbols);
129
123
  }
130
124
  return keys;
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var index = require('./index.cjs2.js');
6
4
  require('@digipair/engine');
7
5