@digipair/skill-llm 0.8.29 → 0.8.30

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.cjs2.js CHANGED
@@ -23508,14 +23508,14 @@ function indent(str, spaces) {
23508
23508
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23509
23509
  // match is required
23510
23510
  if (!match) {
23511
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23511
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23512
23512
  v: nextMatch1
23513
23513
  };
23514
23514
  }
23515
23515
  var token = match.token, offset = match.offset;
23516
23516
  i1 += offset;
23517
23517
  if (token === " ") {
23518
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23518
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23519
23519
  }
23520
23520
  tokens1 = _to_consumable_array$w(tokens1).concat([
23521
23521
  token
@@ -23534,7 +23534,7 @@ function indent(str, spaces) {
23534
23534
  if (contextKeys.some(function(el) {
23535
23535
  return el.startsWith(name);
23536
23536
  })) {
23537
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23537
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23538
23538
  }
23539
23539
  if (dateTimeIdentifiers.some(function(el) {
23540
23540
  return el === name;
@@ -23553,9 +23553,9 @@ function indent(str, spaces) {
23553
23553
  if (dateTimeIdentifiers.some(function(el) {
23554
23554
  return el.startsWith(name);
23555
23555
  })) {
23556
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23556
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23557
23557
  }
23558
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23558
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23559
23559
  v: nextMatch1
23560
23560
  };
23561
23561
  };
@@ -70279,7 +70279,12 @@ let LLMService = class LLMService {
70279
70279
  const modelInstance = await executePinsList((_ref = model != null ? model : context.privates.MODEL_LLM_JSON) != null ? _ref : context.privates.MODEL_LLM, context);
70280
70280
  const parser = new StructuredOutputParser(this.jsonSchemaToZod(schema));
70281
70281
  chain = RunnableSequence.from([
70282
- PromptTemplate.fromTemplate(`Answer the users question as best as possible.\n{format_instructions}\n${prompt != null ? prompt : '{prompt}'}\n\nJSON:`, {
70282
+ PromptTemplate.fromTemplate(`${prompt != null ? prompt : '{prompt}'}
70283
+
70284
+ Answer the users question as best as possible.
70285
+ {format_instructions}
70286
+
70287
+ JSON:`, {
70283
70288
  partialVariables: {
70284
70289
  format_instructions: parser.getFormatInstructions()
70285
70290
  }
@@ -70316,7 +70321,12 @@ let LLMService = class LLMService {
70316
70321
  });
70317
70322
  const parser = new StructuredOutputParser(this.jsonSchemaToZod(schema));
70318
70323
  chain = RunnableSequence.from([
70319
- PromptTemplate.fromTemplate(`Answer the users question as best as possible.\n{format_instructions}\n${prompt != null ? prompt : '{prompt}'}\n\nJSON:`, {
70324
+ PromptTemplate.fromTemplate(`${prompt != null ? prompt : '{prompt}'}
70325
+
70326
+ Answer the users question as best as possible.
70327
+ {format_instructions}
70328
+
70329
+ JSON:`, {
70320
70330
  partialVariables: {
70321
70331
  format_instructions: parser.getFormatInstructions()
70322
70332
  }
package/index.esm2.js CHANGED
@@ -23488,14 +23488,14 @@ function indent(str, spaces) {
23488
23488
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23489
23489
  // match is required
23490
23490
  if (!match) {
23491
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23491
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23492
23492
  v: nextMatch1
23493
23493
  };
23494
23494
  }
23495
23495
  var token = match.token, offset = match.offset;
23496
23496
  i1 += offset;
23497
23497
  if (token === " ") {
23498
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23498
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23499
23499
  }
23500
23500
  tokens1 = _to_consumable_array$w(tokens1).concat([
23501
23501
  token
@@ -23514,7 +23514,7 @@ function indent(str, spaces) {
23514
23514
  if (contextKeys.some(function(el) {
23515
23515
  return el.startsWith(name);
23516
23516
  })) {
23517
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23517
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23518
23518
  }
23519
23519
  if (dateTimeIdentifiers.some(function(el) {
23520
23520
  return el === name;
@@ -23533,9 +23533,9 @@ function indent(str, spaces) {
23533
23533
  if (dateTimeIdentifiers.some(function(el) {
23534
23534
  return el.startsWith(name);
23535
23535
  })) {
23536
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23536
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23537
23537
  }
23538
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23538
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23539
23539
  v: nextMatch1
23540
23540
  };
23541
23541
  };
@@ -70259,7 +70259,12 @@ let LLMService = class LLMService {
70259
70259
  const modelInstance = await executePinsList((_ref = model != null ? model : context.privates.MODEL_LLM_JSON) != null ? _ref : context.privates.MODEL_LLM, context);
70260
70260
  const parser = new StructuredOutputParser(this.jsonSchemaToZod(schema));
70261
70261
  chain = RunnableSequence.from([
70262
- PromptTemplate.fromTemplate(`Answer the users question as best as possible.\n{format_instructions}\n${prompt != null ? prompt : '{prompt}'}\n\nJSON:`, {
70262
+ PromptTemplate.fromTemplate(`${prompt != null ? prompt : '{prompt}'}
70263
+
70264
+ Answer the users question as best as possible.
70265
+ {format_instructions}
70266
+
70267
+ JSON:`, {
70263
70268
  partialVariables: {
70264
70269
  format_instructions: parser.getFormatInstructions()
70265
70270
  }
@@ -70296,7 +70301,12 @@ let LLMService = class LLMService {
70296
70301
  });
70297
70302
  const parser = new StructuredOutputParser(this.jsonSchemaToZod(schema));
70298
70303
  chain = RunnableSequence.from([
70299
- PromptTemplate.fromTemplate(`Answer the users question as best as possible.\n{format_instructions}\n${prompt != null ? prompt : '{prompt}'}\n\nJSON:`, {
70304
+ PromptTemplate.fromTemplate(`${prompt != null ? prompt : '{prompt}'}
70305
+
70306
+ Answer the users question as best as possible.
70307
+ {format_instructions}
70308
+
70309
+ JSON:`, {
70300
70310
  partialVariables: {
70301
70311
  format_instructions: parser.getFormatInstructions()
70302
70312
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-llm",
3
- "version": "0.8.29",
3
+ "version": "0.8.30",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"