@promptbook/remote-server 0.60.0-3 → 0.60.0-5

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.
Files changed (94) hide show
  1. package/README.md +3 -5
  2. package/esm/index.es.js +6 -6
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/promptbook-collection/index.d.ts +1 -1
  5. package/esm/typings/src/_packages/core.index.d.ts +9 -9
  6. package/esm/typings/src/_packages/node.index.d.ts +1 -1
  7. package/esm/typings/src/_packages/types.index.d.ts +3 -3
  8. package/{umd/typings/src/library → esm/typings/src/collection}/PipelineCollection.d.ts +4 -4
  9. package/{umd/typings/src/library → esm/typings/src/collection}/SimplePipelineCollection.d.ts +5 -5
  10. package/{umd/typings/src/library/libraryToJson.d.ts → esm/typings/src/collection/collectionToJson.d.ts} +2 -2
  11. package/esm/typings/src/{library → collection}/constructors/createCollectionFromDirectory.d.ts +3 -3
  12. package/esm/typings/src/{library → collection}/constructors/createCollectionFromJson.d.ts +1 -1
  13. package/{umd/typings/src/library → esm/typings/src/collection}/constructors/createCollectionFromPromise.d.ts +1 -1
  14. package/esm/typings/src/{library → collection}/constructors/createCollectionFromUrl.d.ts +1 -1
  15. package/esm/typings/src/collection/constructors/createSubcollection.d.ts +12 -0
  16. package/esm/typings/src/config.d.ts +2 -2
  17. package/esm/typings/src/conversion/prettify/prettifyPipelineString.d.ts +1 -1
  18. package/esm/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +1 -1
  19. package/esm/typings/src/errors/CollectionError.d.ts +1 -1
  20. package/esm/typings/src/errors/ExecutionError.d.ts +1 -1
  21. package/esm/typings/src/errors/NotFoundError.d.ts +1 -1
  22. package/esm/typings/src/execution/EmbeddingVector.d.ts +1 -1
  23. package/esm/typings/src/execution/{PromptbookExecutor.d.ts → PipelineExecutor.d.ts} +3 -3
  24. package/esm/typings/src/execution/assertsExecutionSuccessful.d.ts +2 -2
  25. package/{umd/typings/src/execution/createPromptbookExecutor.d.ts → esm/typings/src/execution/createPipelineExecutor.d.ts} +13 -13
  26. package/esm/typings/src/execution/utils/replaceParameters.d.ts +1 -1
  27. package/esm/typings/src/llm-providers/mocked/joker.test.d.ts +1 -1
  28. package/esm/typings/src/llm-providers/mocked/mocked-chat.test.d.ts +1 -1
  29. package/esm/typings/src/llm-providers/mocked/mocked-completion.test.d.ts +1 -1
  30. package/esm/typings/src/llm-providers/remote/interfaces/RemoteServerOptions.d.ts +4 -4
  31. package/esm/typings/src/llm-providers/remote/startRemoteServer.d.ts +1 -1
  32. package/esm/typings/src/types/Command.d.ts +2 -2
  33. package/esm/typings/src/types/PipelineJson/PipelineJson.d.ts +6 -6
  34. package/esm/typings/src/types/PipelineJson/PromptTemplateJson.d.ts +1 -1
  35. package/esm/typings/src/types/PipelineString.d.ts +1 -1
  36. package/esm/typings/src/types/Prompt.d.ts +4 -4
  37. package/esm/typings/src/types/TaskProgress.d.ts +1 -1
  38. package/esm/typings/src/types/execution-report/ExecutionReportJson.d.ts +3 -3
  39. package/esm/typings/src/types/execution-report/config.d.ts +1 -1
  40. package/esm/typings/src/types/typeAliases.d.ts +2 -2
  41. package/esm/typings/src/utils/emojis.d.ts +1 -1
  42. package/package.json +2 -2
  43. package/umd/index.umd.js +6 -6
  44. package/umd/index.umd.js.map +1 -1
  45. package/umd/typings/promptbook-collection/index.d.ts +1 -1
  46. package/umd/typings/src/_packages/core.index.d.ts +9 -9
  47. package/umd/typings/src/_packages/node.index.d.ts +1 -1
  48. package/umd/typings/src/_packages/types.index.d.ts +3 -3
  49. package/{esm/typings/src/library → umd/typings/src/collection}/PipelineCollection.d.ts +4 -4
  50. package/{esm/typings/src/library → umd/typings/src/collection}/SimplePipelineCollection.d.ts +5 -5
  51. package/{esm/typings/src/library/libraryToJson.d.ts → umd/typings/src/collection/collectionToJson.d.ts} +2 -2
  52. package/umd/typings/src/{library → collection}/constructors/createCollectionFromDirectory.d.ts +3 -3
  53. package/umd/typings/src/{library → collection}/constructors/createCollectionFromJson.d.ts +1 -1
  54. package/{esm/typings/src/library → umd/typings/src/collection}/constructors/createCollectionFromPromise.d.ts +1 -1
  55. package/umd/typings/src/{library → collection}/constructors/createCollectionFromUrl.d.ts +1 -1
  56. package/umd/typings/src/collection/constructors/createSubcollection.d.ts +12 -0
  57. package/umd/typings/src/config.d.ts +2 -2
  58. package/umd/typings/src/conversion/prettify/prettifyPipelineString.d.ts +1 -1
  59. package/umd/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +1 -1
  60. package/umd/typings/src/errors/CollectionError.d.ts +1 -1
  61. package/umd/typings/src/errors/ExecutionError.d.ts +1 -1
  62. package/umd/typings/src/errors/NotFoundError.d.ts +1 -1
  63. package/umd/typings/src/execution/EmbeddingVector.d.ts +1 -1
  64. package/umd/typings/src/execution/{PromptbookExecutor.d.ts → PipelineExecutor.d.ts} +3 -3
  65. package/umd/typings/src/execution/assertsExecutionSuccessful.d.ts +2 -2
  66. package/{esm/typings/src/execution/createPromptbookExecutor.d.ts → umd/typings/src/execution/createPipelineExecutor.d.ts} +13 -13
  67. package/umd/typings/src/execution/utils/replaceParameters.d.ts +1 -1
  68. package/umd/typings/src/llm-providers/mocked/joker.test.d.ts +1 -1
  69. package/umd/typings/src/llm-providers/mocked/mocked-chat.test.d.ts +1 -1
  70. package/umd/typings/src/llm-providers/mocked/mocked-completion.test.d.ts +1 -1
  71. package/umd/typings/src/llm-providers/remote/interfaces/RemoteServerOptions.d.ts +4 -4
  72. package/umd/typings/src/llm-providers/remote/startRemoteServer.d.ts +1 -1
  73. package/umd/typings/src/types/Command.d.ts +2 -2
  74. package/umd/typings/src/types/PipelineJson/PipelineJson.d.ts +6 -6
  75. package/umd/typings/src/types/PipelineJson/PromptTemplateJson.d.ts +1 -1
  76. package/umd/typings/src/types/PipelineString.d.ts +1 -1
  77. package/umd/typings/src/types/Prompt.d.ts +4 -4
  78. package/umd/typings/src/types/TaskProgress.d.ts +1 -1
  79. package/umd/typings/src/types/execution-report/ExecutionReportJson.d.ts +3 -3
  80. package/umd/typings/src/types/execution-report/config.d.ts +1 -1
  81. package/umd/typings/src/types/typeAliases.d.ts +2 -2
  82. package/umd/typings/src/utils/emojis.d.ts +1 -1
  83. package/esm/typings/src/library/constructors/createSubcollection.d.ts +0 -12
  84. package/umd/typings/src/library/constructors/createSubcollection.d.ts +0 -12
  85. /package/esm/typings/src/{library/constructors/createCollectionFromDirectory.test.d.ts → collection/collectionToJson.test.d.ts} +0 -0
  86. /package/{umd/typings/src/library → esm/typings/src/collection}/constructors/createCollectionFromDirectory.test.d.ts +0 -0
  87. /package/esm/typings/src/{library → collection}/constructors/createCollectionFromJson.test.d.ts +0 -0
  88. /package/esm/typings/src/{library → collection}/constructors/createCollectionFromPromise.test.d.ts +0 -0
  89. /package/esm/typings/src/{library → collection}/constructors/justTestFsImport.d.ts +0 -0
  90. /package/{esm/typings/src/library/libraryToJson.test.d.ts → umd/typings/src/collection/collectionToJson.test.d.ts} +0 -0
  91. /package/umd/typings/src/{library/constructors/createCollectionFromJson.test.d.ts → collection/constructors/createCollectionFromDirectory.test.d.ts} +0 -0
  92. /package/umd/typings/src/{library/constructors/createCollectionFromPromise.test.d.ts → collection/constructors/createCollectionFromJson.test.d.ts} +0 -0
  93. /package/umd/typings/src/{library/libraryToJson.test.d.ts → collection/constructors/createCollectionFromPromise.test.d.ts} +0 -0
  94. /package/umd/typings/src/{library → collection}/constructors/justTestFsImport.d.ts +0 -0
package/README.md CHANGED
@@ -35,8 +35,6 @@ npm i @promptbook/remote-server
35
35
 
36
36
  Rest of the documentation is common for **entire promptbook ecosystem**:
37
37
 
38
-
39
-
40
38
  ## 🤍 The Promptbook Whitepaper
41
39
 
42
40
  When you have a simple, single prompt for ChatGPT, GPT-4, Anthropic Claude, Google Gemini, Llama 2, or whatever, it doesn't matter how it is integrated. Whether it's the direct calling of a REST API, using the SDK, hardcoding the prompt in the source code, or importing a text file, the process remains the same.
@@ -81,7 +79,7 @@ File `write-website-content.ptbk.md`:
81
79
  >
82
80
  > Instructions for creating web page content.
83
81
  >
84
- > - PROMPTBOOK URL https://promptbook.webgpt.com/en/write-website-content.ptbk.md
82
+ > - PIPELINE URL https://promptbook.studio/webgpt/write-website-content.ptbk.md
85
83
  > - PROMPTBOOK VERSION 0.0.1
86
84
  > - INPUT  PARAM `{rawTitle}` Automatically suggested a site name or empty text
87
85
  > - INPUT  PARAM `{rawAssigment}` Automatically generated site entry from image recognition
@@ -435,7 +433,7 @@ Internally it can have multiple formats:
435
433
  ### Promptbook **Library**
436
434
 
437
435
  Library of all promptbooks used in your application.
438
- Each promptbook is a separate `.ptbk.md` file with unique `PROMPTBOOK URL`. Theese urls are used to reference promptbooks in other promptbooks or in the application code.
436
+ Each promptbook is a separate `.ptbk.md` file with unique `PIPELINE URL`. Theese urls are used to reference promptbooks in other promptbooks or in the application code.
439
437
 
440
438
  ### Prompt Result
441
439
 
@@ -573,7 +571,7 @@ Look at [expectations.ptbk.md](samples/templates/45-expectations.ptbk.md) and [e
573
571
 
574
572
  ### Execution report
575
573
 
576
- Execution report is a simple object or markdown that contains information about the execution of the promptbook.
574
+ Execution report is a simple object or markdown that contains information about the execution of the pipeline.
577
575
 
578
576
  [See the example of such a report](/samples/templates/50-advanced.report.md)
579
577
 
package/esm/index.es.js CHANGED
@@ -73,7 +73,7 @@ function __generator(thisArg, body) {
73
73
  }
74
74
 
75
75
  /**
76
- * This error indicates errors during the execution of the promptbook
76
+ * This error indicates errors during the execution of the pipeline
77
77
  */
78
78
  var ExecutionError = /** @class */ (function (_super) {
79
79
  __extends(ExecutionError, _super);
@@ -89,7 +89,7 @@ var ExecutionError = /** @class */ (function (_super) {
89
89
  /**
90
90
  * The version of the Promptbook library
91
91
  */
92
- var PROMPTBOOK_VERSION = '0.60.0-2';
92
+ var PROMPTBOOK_VERSION = '0.60.0-4';
93
93
 
94
94
  /**
95
95
  * Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
@@ -101,7 +101,7 @@ var PROMPTBOOK_VERSION = '0.60.0-2';
101
101
  */
102
102
  function startRemoteServer(options) {
103
103
  var _this = this;
104
- var port = options.port, path = options.path, library = options.library, createLlmExecutionTools = options.createLlmExecutionTools, isVerbose = options.isVerbose;
104
+ var port = options.port, path = options.path, collection = options.collection, createLlmExecutionTools = options.createLlmExecutionTools, isVerbose = options.isVerbose;
105
105
  var httpServer = http.createServer({}, function (request, response) {
106
106
  var _a;
107
107
  if ((_a = request.url) === null || _a === void 0 ? void 0 : _a.includes('socket.io')) {
@@ -134,10 +134,10 @@ function startRemoteServer(options) {
134
134
  case 1:
135
135
  _b.trys.push([1, 9, 10, 11]);
136
136
  executionToolsForClient = createLlmExecutionTools(clientId);
137
- return [4 /*yield*/, library.isResponsibleForPrompt(prompt)];
137
+ return [4 /*yield*/, collection.isResponsibleForPrompt(prompt)];
138
138
  case 2:
139
139
  if (!(_b.sent())) {
140
- throw new ExecutionError("Prompt is not in the library of this server");
140
+ throw new ExecutionError("Pipeline is not in the collection of this server");
141
141
  }
142
142
  promptResult = void 0;
143
143
  _a = prompt.modelRequirements.modelVariant;
@@ -204,7 +204,7 @@ function startRemoteServer(options) {
204
204
  };
205
205
  }
206
206
  /**
207
- * TODO: [⚖] Expose the library to be able to connect to same library via createCollectionFromUrl
207
+ * TODO: [⚖] Expose the collection to be able to connect to same collection via createCollectionFromUrl
208
208
  * TODO: Handle progress - support streaming
209
209
  * TODO: [🤹‍♂️] Do not hang up immediately but wait until client closes OR timeout
210
210
  * TODO: [🤹‍♂️] Timeout on chat to free up resources
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../../src/errors/ExecutionError.ts","../../../../src/version.ts","../../../../src/llm-providers/remote/startRemoteServer.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null,null],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;AACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;AACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;AACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1G,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/B,CAAC,CAAC;AACF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AU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;IAGxB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,8CAAuC,IAAI,CAAE,CAAC,CAAC,CAAC;IAC5E,IAAI,SAAS,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;KACzD;IAED,IAAI,WAAW,GAAG,KAAK,CAAC;IAExB,OAAO;QACH,IAAI,WAAW;YACX,OAAO,WAAW,CAAC;SACtB;QACD,OAAO;YACH,IAAI,WAAW,EAAE;gBACb,OAAO;aACV;YACD,WAAW,GAAG,IAAI,CAAC;YACnB,UAAU,CAAC,KAAK,EAAE,CAAC;YACnB,MAAM,CAAC,KAAK,EAAE,CAAC;SAClB;KACJ,CAAC;AACN,CAAC;AAED;;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../../src/errors/ExecutionError.ts","../../../../src/version.ts","../../../../src/llm-providers/remote/startRemoteServer.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null,null],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;AACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;AACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;AACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1G,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/B,CAAC,CAAC;AACF;AACO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;AAChC,IAAI,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;AAC7C,QAAQ,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,+BAA+B,CAAC,CAAC;AAClG,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;AAC3C,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,C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B,UAAU,CAAC,KAAK,EAAE,CAAC;YACnB,MAAM,CAAC,KAAK,EAAE,CAAC;SAClB;KACJ,CAAC;AACN,CAAC;AAED;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- promptbookUrl: string;
3
+ pipelineUrl: string;
4
4
  promptbookVersion: string;
5
5
  parameters: {
6
6
  name: string;
@@ -1,3 +1,8 @@
1
+ import { collectionToJson } from '../collection/collectionToJson';
2
+ import { createCollectionFromJson } from '../collection/constructors/createCollectionFromJson';
3
+ import { createCollectionFromPromise } from '../collection/constructors/createCollectionFromPromise';
4
+ import { createCollectionFromUrl } from '../collection/constructors/createCollectionFromUrl';
5
+ import { createSubcollection } from '../collection/constructors/createSubcollection';
1
6
  import { pipelineJsonToString } from '../conversion/pipelineJsonToString';
2
7
  import { pipelineStringToJson } from '../conversion/pipelineStringToJson';
3
8
  import { pipelineStringToJsonSync } from '../conversion/pipelineStringToJsonSync';
@@ -13,7 +18,7 @@ import { TemplateError } from '../errors/TemplateError';
13
18
  import { UnexpectedError } from '../errors/UnexpectedError';
14
19
  import { ExpectError } from '../errors/_ExpectError';
15
20
  import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
16
- import { createPromptbookExecutor } from '../execution/createPromptbookExecutor';
21
+ import { createPipelineExecutor } from '../execution/createPipelineExecutor';
17
22
  import { embeddingVectorToString } from '../execution/embeddingVectorToString';
18
23
  import { addUsage } from '../execution/utils/addUsage';
19
24
  import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
@@ -22,11 +27,6 @@ import { CallbackInterfaceTools } from '../knowledge/dialogs/callback/CallbackIn
22
27
  import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions';
23
28
  import { SimplePromptInterfaceTools } from '../knowledge/dialogs/simple-prompt/SimplePromptInterfaceTools';
24
29
  import { prepareKnowledgeFromMarkdown } from '../knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown';
25
- import { createCollectionFromJson } from '../library/constructors/createCollectionFromJson';
26
- import { createCollectionFromPromise } from '../library/constructors/createCollectionFromPromise';
27
- import { createCollectionFromUrl } from '../library/constructors/createCollectionFromUrl';
28
- import { createSubcollection } from '../library/constructors/createSubcollection';
29
- import { libraryToJson } from '../library/libraryToJson';
30
30
  import { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlmExecutionTools';
31
31
  import { ExecutionTypes } from '../types/ExecutionTypes';
32
32
  import type { ExecutionReportStringOptions } from '../types/execution-report/ExecutionReportStringOptions';
@@ -35,10 +35,10 @@ import { executionReportJsonToString } from '../types/execution-report/execution
35
35
  import { PROMPTBOOK_VERSION } from '../version';
36
36
  export { PROMPTBOOK_VERSION };
37
37
  export { ExecutionTypes };
38
- export { ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, addUsage, assertsExecutionSuccessful, checkExpectations, embeddingVectorToString, executionReportJsonToString, isPassingExpectations, prepareKnowledgeFromMarkdown, prettifyPipelineString, usageToWorktime, };
39
- export { createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createSubcollection as createSublibrary, libraryToJson, };
38
+ export { addUsage, assertsExecutionSuccessful, checkExpectations, embeddingVectorToString, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prepareKnowledgeFromMarkdown, prettifyPipelineString, usageToWorktime, };
39
+ export { collectionToJson, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createSubcollection as createSublibrary, };
40
40
  export { SimplePromptInterfaceTools };
41
41
  export { pipelineJsonToString, pipelineStringToJson, pipelineStringToJsonSync, validatePipeline };
42
- export { MultipleLlmExecutionTools, createPromptbookExecutor };
42
+ export { createPipelineExecutor, MultipleLlmExecutionTools };
43
43
  export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };
44
44
  export { CollectionError, ExecutionError, ExpectError, NotFoundError, PipelineLogicError, ReferenceError, SyntaxError, TemplateError, UnexpectedError, };
@@ -1,4 +1,4 @@
1
- import { createCollectionFromDirectory } from '../library/constructors/createCollectionFromDirectory';
1
+ import { createCollectionFromDirectory } from '../collection/constructors/createCollectionFromDirectory';
2
2
  import { PROMPTBOOK_VERSION } from '../version';
3
3
  export { PROMPTBOOK_VERSION };
4
4
  export { createCollectionFromDirectory };
@@ -1,12 +1,12 @@
1
+ import type { PipelineCollection } from '../collection/PipelineCollection';
1
2
  import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
2
3
  import { EmbeddingVector } from '../execution/EmbeddingVector';
3
4
  import type { ExecutionTools } from '../execution/ExecutionTools';
4
5
  import type { AvailableModel, LlmExecutionTools } from '../execution/LlmExecutionTools';
6
+ import type { PipelineExecutor } from '../execution/PipelineExecutor';
5
7
  import type { PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptEmbeddingResult, PromptResult, PromptResultUsage, PromptResultUsageCounts, UncertainNumber } from '../execution/PromptResult';
6
- import type { PromptbookExecutor } from '../execution/PromptbookExecutor';
7
8
  import type { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../execution/ScriptExecutionTools';
8
9
  import type { UserInterfaceTools, UserInterfaceToolsPromptDialogOptions } from '../execution/UserInterfaceTools';
9
- import type { PipelineCollection } from '../library/PipelineCollection';
10
10
  import type { ExecutionType } from '../types/ExecutionTypes';
11
11
  import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements';
12
12
  import type { Parameters } from '../types/Parameters';
@@ -27,7 +27,7 @@ import type { FromtoItems } from '../utils/FromtoItems';
27
27
  import { PROMPTBOOK_VERSION } from '../version';
28
28
  export { PROMPTBOOK_VERSION };
29
29
  export { EXPECTATION_UNITS };
30
- export type { AvailableModel, CommonExecutionToolsOptions, EmbeddingVector, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, ExpectationUnit, Expectations, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, ModelRequirements, ModelVariant, Parameters, PipelineCollection, PipelineJson, PipelineString, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptEmbeddingResult, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, PromptbookExecutor, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, client_id, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_pipeline_url, string_pipeline_url_with_hashtemplate, string_prompt, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, };
30
+ export type { AvailableModel, CommonExecutionToolsOptions, EmbeddingVector, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, ExpectationUnit, Expectations, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, ModelRequirements, ModelVariant, Parameters, PipelineCollection, PipelineExecutor, PipelineJson, PipelineString, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptEmbeddingResult, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, client_id, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_pipeline_url, string_pipeline_url_with_hashtemplate, string_prompt, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, };
31
31
  /**
32
32
  * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
33
33
  */
@@ -5,21 +5,21 @@ import type { string_pipeline_url } from '../types/typeAliases';
5
5
  /**
6
6
  * Collection that groups together pipelines, knowledge, personas, tools and actions
7
7
  *
8
- * @see !!! https://github.com/webgptorg/pipeline#pipeline-library
8
+ * @see !!! https://github.com/webgptorg/pipeline#pipeline-collection
9
9
  */
10
10
  export type PipelineCollection = {
11
11
  /**
12
- * Gets all pipelines in the library
12
+ * Gets all pipelines in the collection
13
13
  */
14
14
  listPipelines(): Promisable<Array<string_pipeline_url>>;
15
15
  /**
16
16
  * Gets pipeline by its URL
17
17
  *
18
- * Note: This is not a direct fetching from the URL, but a lookup in the library
18
+ * Note: This is not a direct fetching from the URL, but a lookup in the collection
19
19
  */
20
20
  getPipelineByUrl(url: string_pipeline_url): Promisable<PipelineJson>;
21
21
  /**
22
- * Checks whether given prompt was defined in any pipeline in the library
22
+ * Checks whether given prompt was defined in any pipeline in the collection
23
23
  */
24
24
  isResponsibleForPrompt(prompt: Prompt): Promisable<boolean>;
25
25
  };
@@ -10,9 +10,9 @@ import type { PipelineCollection } from './PipelineCollection';
10
10
  * @see https://github.com/webgptorg/promptbook#promptbook-collection
11
11
  */
12
12
  export declare class SimplePipelineCollection implements PipelineCollection {
13
- private library;
13
+ private collection;
14
14
  /**
15
- * Constructs a promptbook library from promptbooks
15
+ * Constructs a pipeline collection from promptbooks
16
16
  *
17
17
  * @param promptbooks !!!
18
18
  *
@@ -22,17 +22,17 @@ export declare class SimplePipelineCollection implements PipelineCollection {
22
22
  */
23
23
  constructor(...promptbooks: Array<PipelineJson>);
24
24
  /**
25
- * Gets all promptbooks in the library
25
+ * Gets all promptbooks in the collection
26
26
  */
27
27
  listPipelines(): Array<string_pipeline_url>;
28
28
  /**
29
29
  * Gets promptbook by its URL
30
30
  *
31
- * Note: This is not a direct fetching from the URL, but a lookup in the library
31
+ * Note: This is not a direct fetching from the URL, but a lookup in the collection
32
32
  */
33
33
  getPipelineByUrl(url: string_pipeline_url): PipelineJson;
34
34
  /**
35
- * Checks whether given prompt was defined in any promptbook in the library
35
+ * Checks whether given prompt was defined in any promptbook in the collection
36
36
  */
37
37
  isResponsibleForPrompt(prompt: Prompt): boolean;
38
38
  }
@@ -3,6 +3,6 @@ import type { PipelineCollection } from './PipelineCollection';
3
3
  /**
4
4
  * Converts PipelineCollection to serialized JSON
5
5
  *
6
- * Note: Functions `libraryToJson` and `createCollectionFromJson` are complementary
6
+ * Note: Functions `collectionToJson` and `createCollectionFromJson` are complementary
7
7
  */
8
- export declare function libraryToJson(library: PipelineCollection): Promise<Array<PipelineJson>>;
8
+ export declare function collectionToJson(collection: PipelineCollection): Promise<Array<PipelineJson>>;
@@ -11,7 +11,7 @@ type CreatePipelineCollectionFromDirectoryOptions = {
11
11
  */
12
12
  isRecursive?: boolean;
13
13
  /**
14
- * If true, the library creation outputs information about each file it reads
14
+ * If true, the collection creation outputs information about each file it reads
15
15
  *
16
16
  * @default false
17
17
  */
@@ -23,7 +23,7 @@ type CreatePipelineCollectionFromDirectoryOptions = {
23
23
  */
24
24
  isLazyLoaded?: boolean;
25
25
  /**
26
- * If true, whole library creation crashes on error in any promptbook
26
+ * If true, whole collection creation crashes on error in any promptbook
27
27
  * If true and isLazyLoaded is true, the error is thrown on first access to the promptbook
28
28
  *
29
29
  * @default true
@@ -36,7 +36,7 @@ type CreatePipelineCollectionFromDirectoryOptions = {
36
36
  * Note: Works only in Node.js environment because it reads the file system
37
37
  *
38
38
  * @param path - path to the directory with promptbooks
39
- * @param options - Misc options for the library
39
+ * @param options - Misc options for the collection
40
40
  * @returns PipelineCollection
41
41
  */
42
42
  export declare function createCollectionFromDirectory(path: string_folder_path, options?: CreatePipelineCollectionFromDirectoryOptions): Promise<PipelineCollection>;
@@ -3,7 +3,7 @@ import type { PipelineCollection } from '../PipelineCollection';
3
3
  /**
4
4
  * Creates PipelineCollection from array of PipelineJson or PipelineString
5
5
  *
6
- * Note: Functions `libraryToJson` and `createCollectionFromJson` are complementary
6
+ * Note: Functions `collectionToJson` and `createCollectionFromJson` are complementary
7
7
  * Note: During the construction syntax and logic of all sources are validated
8
8
  *
9
9
  * @param promptbookSources
@@ -10,7 +10,7 @@ import type { PipelineCollection } from '../PipelineCollection';
10
10
  * `createCollectionFromUrl` or `createCollectionFromDirectory`
11
11
  * Consider using those functions instead of this one
12
12
  *
13
- * Note: The function does NOT return promise it returns the library directly which waits for the sources to be resolved
13
+ * Note: The function does NOT return promise it returns the collection directly which waits for the sources to be resolved
14
14
  * when error occurs in given promise or factory function, it is thrown during `listPipelines` or `getPipelineByUrl` call
15
15
  *
16
16
  * Note: Consider using `createCollectionFromDirectory` or `createCollectionFromUrl`
@@ -5,7 +5,7 @@ import type { PipelineCollection } from '../PipelineCollection';
5
5
  */
6
6
  type CreatePipelineCollectionFromUrlyOptions = {
7
7
  /**
8
- * If true, the library creation outputs information about each file it reads
8
+ * If true, the collection creation outputs information about each file it reads
9
9
  *
10
10
  * @default false
11
11
  */
@@ -0,0 +1,12 @@
1
+ import type { string_pipeline_url } from '../../types/typeAliases';
2
+ import type { PipelineCollection } from '../PipelineCollection';
3
+ /**
4
+ * Creates PipelineCollection as a subset of another PipelineCollection
5
+ *
6
+ * Note: You can use any type of collection as a parent collection - local, remote, etc.
7
+ * Note: This is just a thin wrapper / proxy around the parent collection
8
+ *
9
+ * @param promptbookSources
10
+ * @returns PipelineCollection
11
+ */
12
+ export declare function createSubcollection(collection: PipelineCollection, predicate: (url: string_pipeline_url) => boolean): PipelineCollection;
@@ -7,6 +7,6 @@ export declare const LOOP_LIMIT = 1000;
7
7
  */
8
8
  export declare const CHARACTER_LOOP_LIMIT = 100000;
9
9
  /**
10
- * The name of the builded promptbook library made by CLI `promptbook make` and for lookup in `createCollectionFromDirectory`
10
+ * The name of the builded pipeline collection made by CLI `promptbook make` and for lookup in `createCollectionFromDirectory`
11
11
  */
12
- export declare const PROMPTBOOK_MAKED_BASE_FILENAME = "index";
12
+ export declare const PIPELINE_COLLECTION_BASE_FILENAME = "index";
@@ -5,6 +5,6 @@ import type { PrettifyOptions } from './PrettifyOptions';
5
5
  */
6
6
  export declare function prettifyPipelineString(pipelineString: PipelineString, options: PrettifyOptions): Promise<PipelineString>;
7
7
  /**
8
- * TODO: Maybe use some Mermaid library instead of string templating
8
+ * TODO: Maybe use some Mermaid package instead of string templating
9
9
  * TODO: [🕌] When more than 2 functionalities, split into separate functions
10
10
  */
@@ -20,6 +20,6 @@ export type renderPipelineMermaidOptions = {
20
20
  */
21
21
  export declare function renderPromptbookMermaid(pipelineJson: PipelineJson, options?: renderPipelineMermaidOptions): string;
22
22
  /**
23
- * TODO: Maybe use some Mermaid library instead of string templating
23
+ * TODO: Maybe use some Mermaid package instead of string templating
24
24
  * TODO: [🕌] When more than 2 functionalities, split into separate functions
25
25
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This error indicates that the promptbook library cannot be propperly loaded
2
+ * This error indicates that the pipeline collection cannot be propperly loaded
3
3
  */
4
4
  export declare class CollectionError extends Error {
5
5
  readonly name = "CollectionError";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This error indicates errors during the execution of the promptbook
2
+ * This error indicates errors during the execution of the pipeline
3
3
  */
4
4
  export declare class ExecutionError extends Error {
5
5
  readonly name = "ExecutionError";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This error indicates that promptbook not found in the library
2
+ * This error indicates that promptbook not found in the collection
3
3
  */
4
4
  export declare class NotFoundError extends Error {
5
5
  readonly name = "NotFoundError";
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export type EmbeddingVector = Array<number>;
5
5
  /**
6
- * TODO: Figure out how to use library xyzt
6
+ * TODO: Figure out how to use NPM package xyzt
7
7
  * Not using IVectorData due to HUGE dimensionality
8
8
  */
@@ -5,13 +5,13 @@ import type { string_name } from '../types/typeAliases';
5
5
  import type { PromptResultUsage } from './PromptResult';
6
6
  /**
7
7
  * Executor is a simple async function that takes INPUT PARAMETERs and returns result parameters _(along with all intermediate parameters and INPUT PARAMETERs = it extends input object)_.
8
- * Executor is made by combining execution tools and promptbook library.
8
+ * Executor is made by combining execution tools and pipeline collection.
9
9
  *
10
- * It can be created with `createPromptbookExecutor` function.
10
+ * It can be created with `createPipelineExecutor` function.
11
11
  *
12
12
  * @see https://github.com/webgptorg/promptbook#executor
13
13
  */
14
- export type PromptbookExecutor = {
14
+ export type PipelineExecutor = {
15
15
  (inputParameters: Record<string_name, string>, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<{
16
16
  /**
17
17
  * Whether the execution was successful, details are aviable in `executionReport`
@@ -1,11 +1,11 @@
1
- import type { PromptbookExecutor } from './PromptbookExecutor';
1
+ import type { PipelineExecutor } from './PipelineExecutor';
2
2
  /**
3
3
  * Asserts that the execution of a promptnook is successful
4
4
  *
5
5
  * @param executionResult - The partial result of the promptnook execution
6
6
  * @throws {ExecutionError} If the execution is not successful or if multiple errors occurred
7
7
  */
8
- export declare function assertsExecutionSuccessful(executionResult: Pick<Awaited<ReturnType<PromptbookExecutor>>, 'isSuccessful' | 'errors'>): void;
8
+ export declare function assertsExecutionSuccessful(executionResult: Pick<Awaited<ReturnType<PipelineExecutor>>, 'isSuccessful' | 'errors'>): void;
9
9
  /**
10
10
  * TODO: [🧠] Can this return type be better typed than void
11
11
  */
@@ -1,7 +1,7 @@
1
1
  import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
2
2
  import type { ExecutionTools } from './ExecutionTools';
3
- import type { PromptbookExecutor } from './PromptbookExecutor';
4
- type CreatePromptbookExecutorSettings = {
3
+ import type { PipelineExecutor } from './PipelineExecutor';
4
+ type CreatePipelineExecutorSettings = {
5
5
  /**
6
6
  * When executor does not satisfy expectations it will be retried this amount of times
7
7
  *
@@ -10,33 +10,33 @@ type CreatePromptbookExecutorSettings = {
10
10
  readonly maxExecutionAttempts: number;
11
11
  };
12
12
  /**
13
- * Options for creating a promptbook executor
13
+ * Options for creating a pipeline executor
14
14
  */
15
- interface CreatePromptbookExecutorOptions {
15
+ interface CreatePipelineExecutorOptions {
16
16
  /**
17
- * The promptbook to be executed
17
+ * The pipeline to be executed
18
18
  */
19
- readonly promptbook: PipelineJson;
19
+ readonly pipeline: PipelineJson;
20
20
  /**
21
- * The execution tools to be used during the execution of the PROMPTBOOK
21
+ * The execution tools to be used during the execution of the pipeline
22
22
  */
23
23
  readonly tools: ExecutionTools;
24
24
  /**
25
- * Optional settings for the PROMPTBOOK executor
25
+ * Optional settings for the pipeline executor
26
26
  */
27
- readonly settings?: Partial<CreatePromptbookExecutorSettings>;
27
+ readonly settings?: Partial<CreatePipelineExecutorSettings>;
28
28
  }
29
29
  /**
30
- * Creates executor function from promptbook and execution tools.
30
+ * Creates executor function from pipeline and execution tools.
31
31
  *
32
32
  * @returns The executor function
33
- * @throws {PipelineLogicError} on logical error in the promptbook
33
+ * @throws {PipelineLogicError} on logical error in the pipeline
34
34
  */
35
- export declare function createPromptbookExecutor(options: CreatePromptbookExecutorOptions): PromptbookExecutor;
35
+ export declare function createPipelineExecutor(options: CreatePipelineExecutorOptions): PipelineExecutor;
36
36
  export {};
37
37
  /**
38
38
  * TODO: [🧠] When not meet expectations in PROMPT_DIALOG, make some way to tell the user
39
39
  * TODO: [👧] Strongly type the executors to avoid need of remove nullables whtn noUncheckedIndexedAccess in tsconfig.json
40
- * Note: CreatePromptbookExecutorOptions are just connected to PromptbookExecutor so do not extract to types folder
40
+ * Note: CreatePipelineExecutorOptions are just connected to PipelineExecutor so do not extract to types folder
41
41
  * TODO: [🧠][3] transparent = (report intermediate parameters) / opaque execution = (report only output parameters) progress reporting mode
42
42
  */
@@ -8,6 +8,6 @@ import type { string_template } from '../../types/typeAliases';
8
8
  * @returns the template with replaced parameters
9
9
  * @throws {TemplateError} if parameter is not defined, not closed, or not opened
10
10
  *
11
- * @private within the createPromptbookExecutor
11
+ * @private within the createPipelineExecutor
12
12
  */
13
13
  export declare function replaceParameters(template: string_template, parameters: Parameters): string;
@@ -1,4 +1,4 @@
1
1
  export {};
2
2
  /**
3
- * TODO: [🧠] What should be name of this test "MockedEchoExecutionTools.test.ts" or "createPromptbookExecutor.test.ts"
3
+ * TODO: [🧠] What should be name of this test "MockedEchoExecutionTools.test.ts" or "createPipelineExecutor.test.ts"
4
4
  */
@@ -1,4 +1,4 @@
1
1
  export {};
2
2
  /**
3
- * TODO: [🧠] What should be name of this test "MockedEchoExecutionTools.test.ts" or "createPromptbookExecutor.test.ts"
3
+ * TODO: [🧠] What should be name of this test "MockedEchoExecutionTools.test.ts" or "createPipelineExecutor.test.ts"
4
4
  */
@@ -1,4 +1,4 @@
1
1
  export {};
2
2
  /**
3
- * TODO: [🧠] What should be name of this test "MockedEchoExecutionTools.test.ts" or "createPromptbookExecutor.test.ts"
3
+ * TODO: [🧠] What should be name of this test "MockedEchoExecutionTools.test.ts" or "createPipelineExecutor.test.ts"
4
4
  */