@promptbook/remote-client 0.61.0-0 → 0.61.0-10
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/esm/index.es.js +1 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/promptbook-collection/index.d.ts +118 -26
- package/esm/typings/src/_packages/core.index.d.ts +5 -1
- package/esm/typings/src/_packages/types.index.d.ts +5 -3
- package/esm/typings/src/_packages/utils.index.d.ts +1 -2
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -1
- package/esm/typings/src/collection/constructors/createCollectionFromUrl.d.ts +2 -2
- package/esm/typings/src/collection/constructors/justTestFsImport.d.ts +1 -1
- package/esm/typings/src/commands/MODEL/ModelCommand.d.ts +1 -1
- package/esm/typings/src/commands/PERSONA/PersonaCommand.d.ts +4 -2
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +12 -12
- package/esm/typings/src/config.d.ts +4 -0
- package/esm/typings/src/conversion/pipelineStringToJson.d.ts +8 -5
- package/esm/typings/src/conversion/pipelineStringToJsonSync.d.ts +3 -3
- package/esm/typings/src/conversion/prettify/PrettifyOptions.d.ts +2 -2
- package/esm/typings/src/conversion/utils/renameParameter.d.ts +3 -3
- package/esm/typings/src/conversion/validation/_importPipeline.d.ts +2 -2
- package/esm/typings/src/errors/VersionMismatch.d.ts +8 -0
- package/esm/typings/src/execution/PipelineExecutor.d.ts +5 -5
- package/esm/typings/src/execution/PromptResult.d.ts +5 -5
- package/esm/typings/src/execution/ScriptExecutionTools.d.ts +3 -3
- package/esm/typings/src/execution/UserInterfaceTools.d.ts +5 -5
- package/esm/typings/src/execution/createPipelineExecutor.d.ts +2 -1
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +2 -2
- package/esm/typings/src/execution/utils/forEachAsync.d.ts +1 -1
- package/esm/typings/src/formats/csv/ListFormatDefinition.d.ts +1 -1
- package/esm/typings/src/formats/json/JsonFormatDefinition.d.ts +1 -1
- package/esm/typings/src/formats/list/ListFormatDefinition.d.ts +1 -1
- package/esm/typings/src/knowledge/dialogs/callback/CallbackInterfaceToolsOptions.d.ts +1 -1
- package/esm/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.d.ts +18 -0
- package/esm/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.test.d.ts +1 -0
- package/esm/typings/src/knowledge/prepare-knowledge/_common/utils/getLlmToolsForTests.d.ts +7 -0
- package/esm/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +8 -23
- package/esm/typings/src/knowledge/prepare-knowledge/pdf/prepareKnowledgeFromPdf.d.ts +7 -14
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +2 -2
- package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +5 -5
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +2 -2
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/personas/preparePersona.d.ts +13 -0
- package/esm/typings/src/personas/preparePersona.test.d.ts +1 -0
- package/esm/typings/src/prepare/PrepareOptions.d.ts +22 -0
- package/esm/typings/src/prepare/preparePipeline.d.ts +15 -0
- package/esm/typings/src/prepare/unpreparePipeline.d.ts +8 -0
- package/esm/typings/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/scripting/javascript/utils/preserve.d.ts +1 -1
- package/esm/typings/src/types/ModelRequirements.d.ts +2 -1
- package/esm/typings/src/types/Parameters.d.ts +1 -0
- package/esm/typings/src/types/PipelineJson/Expectations.d.ts +6 -2
- package/esm/typings/src/types/PipelineJson/KnowledgePieceJson.d.ts +67 -0
- package/esm/typings/src/types/PipelineJson/KnowledgeSourceJson.d.ts +24 -0
- package/esm/typings/src/types/PipelineJson/LlmTemplateJson.d.ts +8 -1
- package/esm/typings/src/types/PipelineJson/PersonaJson.d.ts +40 -0
- package/esm/typings/src/types/PipelineJson/PipelineJson.d.ts +27 -2
- package/esm/typings/src/types/PipelineJson/PreparationJson.d.ts +25 -0
- package/esm/typings/src/types/PipelineJson/PromptDialogJson.d.ts +2 -0
- package/esm/typings/src/types/PipelineJson/PromptTemplateJson.d.ts +1 -1
- package/esm/typings/src/types/PipelineJson/PromptTemplateJsonCommon.d.ts +7 -1
- package/esm/typings/src/types/PipelineJson/ScriptJson.d.ts +2 -0
- package/esm/typings/src/types/PipelineJson/SimpleTemplateJson.d.ts +2 -0
- package/esm/typings/src/types/execution-report/ExecutionReportJson.d.ts +4 -4
- package/esm/typings/src/types/execution-report/ExecutionReportStringOptions.d.ts +3 -3
- package/esm/typings/src/types/typeAliases.d.ts +27 -13
- package/esm/typings/src/utils/FromtoItems.d.ts +3 -3
- package/esm/typings/src/utils/currentDate.d.ts +7 -0
- package/esm/typings/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -2
- package/esm/typings/src/utils/markdown/createMarkdownChart.d.ts +6 -9
- package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -2
- package/esm/typings/src/utils/markdown/parseMarkdownSection.d.ts +3 -3
- package/esm/typings/src/utils/organization/TODO.d.ts +4 -0
- package/esm/typings/src/utils/organization/TODO_USE.d.ts +11 -0
- package/esm/typings/src/utils/organization/___.d.ts +4 -0
- package/esm/typings/src/utils/organization/really_any.d.ts +4 -0
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/index.umd.js.map +1 -1
- package/umd/typings/promptbook-collection/index.d.ts +118 -26
- package/umd/typings/src/_packages/core.index.d.ts +5 -1
- package/umd/typings/src/_packages/types.index.d.ts +5 -3
- package/umd/typings/src/_packages/utils.index.d.ts +1 -2
- package/umd/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -1
- package/umd/typings/src/collection/constructors/createCollectionFromUrl.d.ts +2 -2
- package/umd/typings/src/collection/constructors/justTestFsImport.d.ts +1 -1
- package/umd/typings/src/commands/MODEL/ModelCommand.d.ts +1 -1
- package/umd/typings/src/commands/PERSONA/PersonaCommand.d.ts +4 -2
- package/umd/typings/src/commands/_common/types/CommandParser.d.ts +12 -12
- package/umd/typings/src/config.d.ts +4 -0
- package/umd/typings/src/conversion/pipelineStringToJson.d.ts +8 -5
- package/umd/typings/src/conversion/pipelineStringToJsonSync.d.ts +3 -3
- package/umd/typings/src/conversion/prettify/PrettifyOptions.d.ts +2 -2
- package/umd/typings/src/conversion/utils/renameParameter.d.ts +3 -3
- package/umd/typings/src/conversion/validation/_importPipeline.d.ts +2 -2
- package/umd/typings/src/errors/VersionMismatch.d.ts +8 -0
- package/umd/typings/src/execution/PipelineExecutor.d.ts +5 -5
- package/umd/typings/src/execution/PromptResult.d.ts +5 -5
- package/umd/typings/src/execution/ScriptExecutionTools.d.ts +3 -3
- package/umd/typings/src/execution/UserInterfaceTools.d.ts +5 -5
- package/umd/typings/src/execution/createPipelineExecutor.d.ts +2 -1
- package/umd/typings/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +2 -2
- package/umd/typings/src/execution/utils/forEachAsync.d.ts +1 -1
- package/umd/typings/src/formats/csv/ListFormatDefinition.d.ts +1 -1
- package/umd/typings/src/formats/json/JsonFormatDefinition.d.ts +1 -1
- package/umd/typings/src/formats/list/ListFormatDefinition.d.ts +1 -1
- package/umd/typings/src/knowledge/dialogs/callback/CallbackInterfaceToolsOptions.d.ts +1 -1
- package/umd/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.d.ts +18 -0
- package/umd/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.test.d.ts +1 -0
- package/umd/typings/src/knowledge/prepare-knowledge/_common/utils/getLlmToolsForTests.d.ts +7 -0
- package/umd/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +8 -23
- package/umd/typings/src/knowledge/prepare-knowledge/pdf/prepareKnowledgeFromPdf.d.ts +7 -14
- package/umd/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +1 -1
- package/umd/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +2 -2
- package/umd/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +5 -5
- package/umd/typings/src/llm-providers/openai/OpenAiExecutionToolsOptions.d.ts +1 -1
- package/umd/typings/src/llm-providers/openai/openai-models.d.ts +2 -2
- package/umd/typings/src/llm-providers/remote/RemoteLlmExecutionToolsOptions.d.ts +1 -1
- package/umd/typings/src/personas/preparePersona.d.ts +13 -0
- package/umd/typings/src/personas/preparePersona.test.d.ts +1 -0
- package/umd/typings/src/prepare/PrepareOptions.d.ts +22 -0
- package/umd/typings/src/prepare/preparePipeline.d.ts +15 -0
- package/umd/typings/src/prepare/unpreparePipeline.d.ts +8 -0
- package/umd/typings/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +1 -1
- package/umd/typings/src/scripting/javascript/utils/preserve.d.ts +1 -1
- package/umd/typings/src/types/ModelRequirements.d.ts +2 -1
- package/umd/typings/src/types/Parameters.d.ts +1 -0
- package/umd/typings/src/types/PipelineJson/Expectations.d.ts +6 -2
- package/umd/typings/src/types/PipelineJson/KnowledgePieceJson.d.ts +67 -0
- package/umd/typings/src/types/PipelineJson/KnowledgeSourceJson.d.ts +24 -0
- package/umd/typings/src/types/PipelineJson/LlmTemplateJson.d.ts +8 -1
- package/umd/typings/src/types/PipelineJson/PersonaJson.d.ts +40 -0
- package/umd/typings/src/types/PipelineJson/PipelineJson.d.ts +27 -2
- package/umd/typings/src/types/PipelineJson/PreparationJson.d.ts +25 -0
- package/umd/typings/src/types/PipelineJson/PromptDialogJson.d.ts +2 -0
- package/umd/typings/src/types/PipelineJson/PromptTemplateJson.d.ts +1 -1
- package/umd/typings/src/types/PipelineJson/PromptTemplateJsonCommon.d.ts +7 -1
- package/umd/typings/src/types/PipelineJson/ScriptJson.d.ts +2 -0
- package/umd/typings/src/types/PipelineJson/SimpleTemplateJson.d.ts +2 -0
- package/umd/typings/src/types/execution-report/ExecutionReportJson.d.ts +4 -4
- package/umd/typings/src/types/execution-report/ExecutionReportStringOptions.d.ts +3 -3
- package/umd/typings/src/types/typeAliases.d.ts +27 -13
- package/umd/typings/src/utils/FromtoItems.d.ts +3 -3
- package/umd/typings/src/utils/currentDate.d.ts +7 -0
- package/umd/typings/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -2
- package/umd/typings/src/utils/markdown/createMarkdownChart.d.ts +6 -9
- package/umd/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -2
- package/umd/typings/src/utils/markdown/parseMarkdownSection.d.ts +3 -3
- package/umd/typings/src/utils/organization/TODO.d.ts +4 -0
- package/umd/typings/src/utils/organization/TODO_USE.d.ts +11 -0
- package/umd/typings/src/utils/organization/___.d.ts +4 -0
- package/umd/typings/src/utils/organization/really_any.d.ts +4 -0
- package/esm/typings/src/personas/personaToModelRequirements.d.ts +0 -6
- package/esm/typings/src/types/PipelineJson/KnowledgeJson.d.ts +0 -6
- package/esm/typings/src/types/PipelineJson/MaterialKnowledgePieceJson.d.ts +0 -28
- package/umd/typings/src/personas/personaToModelRequirements.d.ts +0 -6
- package/umd/typings/src/types/PipelineJson/KnowledgeJson.d.ts +0 -6
- package/umd/typings/src/types/PipelineJson/MaterialKnowledgePieceJson.d.ts +0 -28
- /package/esm/typings/src/_packages/{markdown-utils.d.ts → markdown-utils.index.d.ts} +0 -0
- /package/esm/typings/src/utils/{just.d.ts → organization/just.d.ts} +0 -0
- /package/umd/typings/src/_packages/{markdown-utils.d.ts → markdown-utils.index.d.ts} +0 -0
- /package/umd/typings/src/utils/{just.d.ts → organization/just.d.ts} +0 -0
package/esm/index.es.js
CHANGED
|
@@ -181,7 +181,7 @@ var RemoteLlmExecutionTools = /** @class */ (function () {
|
|
|
181
181
|
/**
|
|
182
182
|
* The version of the Promptbook library
|
|
183
183
|
*/
|
|
184
|
-
var PROMPTBOOK_VERSION = '0.
|
|
184
|
+
var PROMPTBOOK_VERSION = '0.61.0-9';
|
|
185
185
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
186
186
|
|
|
187
187
|
export { PROMPTBOOK_VERSION, RemoteLlmExecutionTools };
|
package/esm/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../../src/llm-providers/remote/RemoteLlmExecutionTools.ts","../../../../src/version.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],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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;;;IAGa,kBAAkB,GAA8B,SAAS;AAGtE;;;;"}
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../../src/llm-providers/remote/RemoteLlmExecutionTools.ts","../../../../src/version.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],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuDA;AACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AA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AAC,CAAC;SACrD;QACD,uBAAuB,IAAI,CAAC,eAAe,CAAC,MAAM,CAAmC,CAAC;KACzF;;;;;IAOa,iDAAe,GAA7B,UAA8B,MAAc;;;;;4BACzB,qBAAM,IAAI,CAAC,cAAc,EAAE,EAAA;;wBAApC,MAAM,GAAG,SAA2B;wBAC1C,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,QAAA,EAAsC,CAAC,CAAC;wBAEnF,qBAAM,IAAI,OAAO,CAAe,UAAC,OAAO,EAAE,MAAM;gCACjE,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,UAAC,QAAoC;oCACvD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;oCAC/B,MAAM,CAAC,UAAU,EAAE,CAAC;iCACvB,CAAC,CAAC;gCACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,UAAC,KAA8B;;oCAE9C,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;oCACtC,MAAM,CAAC,UAAU,EAAE,CAAC;iCACvB,CAAC,CAAC;6BACN,CAAC,EAAA;;wBAVI,YAAY,GAAG,SAUnB;wBAEF,MAAM,CAAC,UAAU,EAAE,CAAC;wBAEpB,sBAAO,YAAY,EAAC;;;;KACvB;;;;IAKY,4CAAU,GAAvB;;;gBACI,sBAAO;;qBAEN,EAAC;;;KACL;IACL,8BAAC;AAAD,CAAC,IAAA;AAED;;;;;AC5HA;;;IAGa,kBAAkB,GAA8B,WAAW;AAGxE;;;;"}
|
|
@@ -13,6 +13,7 @@ declare const _default: ({
|
|
|
13
13
|
title: string;
|
|
14
14
|
dependentParameterNames: string[];
|
|
15
15
|
blockType: string;
|
|
16
|
+
personaName: null;
|
|
16
17
|
modelRequirements: {
|
|
17
18
|
modelVariant: string;
|
|
18
19
|
modelName: string;
|
|
@@ -20,19 +21,64 @@ declare const _default: ({
|
|
|
20
21
|
content: string;
|
|
21
22
|
resultingParameterName: string;
|
|
22
23
|
}[];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
knowledgeSources: never[];
|
|
25
|
+
knowledgePieces: never[];
|
|
26
|
+
personas: never[];
|
|
27
|
+
preparations: {
|
|
28
|
+
id: number;
|
|
29
|
+
date: string;
|
|
30
|
+
promptbookVersion: string;
|
|
31
|
+
modelUsage: {
|
|
32
|
+
price: {
|
|
33
|
+
value: number;
|
|
34
|
+
};
|
|
35
|
+
input: {
|
|
36
|
+
tokensCount: {
|
|
37
|
+
value: number;
|
|
38
|
+
};
|
|
39
|
+
charactersCount: {
|
|
40
|
+
value: number;
|
|
41
|
+
};
|
|
42
|
+
wordsCount: {
|
|
43
|
+
value: number;
|
|
44
|
+
};
|
|
45
|
+
sentencesCount: {
|
|
46
|
+
value: number;
|
|
47
|
+
};
|
|
48
|
+
linesCount: {
|
|
49
|
+
value: number;
|
|
50
|
+
};
|
|
51
|
+
paragraphsCount: {
|
|
52
|
+
value: number;
|
|
53
|
+
};
|
|
54
|
+
pagesCount: {
|
|
55
|
+
value: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
output: {
|
|
59
|
+
tokensCount: {
|
|
60
|
+
value: number;
|
|
61
|
+
};
|
|
62
|
+
charactersCount: {
|
|
63
|
+
value: number;
|
|
64
|
+
};
|
|
65
|
+
wordsCount: {
|
|
66
|
+
value: number;
|
|
67
|
+
};
|
|
68
|
+
sentencesCount: {
|
|
69
|
+
value: number;
|
|
70
|
+
};
|
|
71
|
+
linesCount: {
|
|
72
|
+
value: number;
|
|
73
|
+
};
|
|
74
|
+
paragraphsCount: {
|
|
75
|
+
value: number;
|
|
76
|
+
};
|
|
77
|
+
pagesCount: {
|
|
78
|
+
value: number;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
36
82
|
}[];
|
|
37
83
|
sourceFile: string;
|
|
38
84
|
} | {
|
|
@@ -56,6 +102,7 @@ declare const _default: ({
|
|
|
56
102
|
max: number;
|
|
57
103
|
};
|
|
58
104
|
};
|
|
105
|
+
personaName: null;
|
|
59
106
|
modelRequirements: {
|
|
60
107
|
modelVariant: string;
|
|
61
108
|
modelName: string;
|
|
@@ -63,19 +110,64 @@ declare const _default: ({
|
|
|
63
110
|
content: string;
|
|
64
111
|
resultingParameterName: string;
|
|
65
112
|
}[];
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
113
|
+
knowledgeSources: never[];
|
|
114
|
+
knowledgePieces: never[];
|
|
115
|
+
personas: never[];
|
|
116
|
+
preparations: {
|
|
117
|
+
id: number;
|
|
118
|
+
date: string;
|
|
119
|
+
promptbookVersion: string;
|
|
120
|
+
modelUsage: {
|
|
121
|
+
price: {
|
|
122
|
+
value: number;
|
|
123
|
+
};
|
|
124
|
+
input: {
|
|
125
|
+
tokensCount: {
|
|
126
|
+
value: number;
|
|
127
|
+
};
|
|
128
|
+
charactersCount: {
|
|
129
|
+
value: number;
|
|
130
|
+
};
|
|
131
|
+
wordsCount: {
|
|
132
|
+
value: number;
|
|
133
|
+
};
|
|
134
|
+
sentencesCount: {
|
|
135
|
+
value: number;
|
|
136
|
+
};
|
|
137
|
+
linesCount: {
|
|
138
|
+
value: number;
|
|
139
|
+
};
|
|
140
|
+
paragraphsCount: {
|
|
141
|
+
value: number;
|
|
142
|
+
};
|
|
143
|
+
pagesCount: {
|
|
144
|
+
value: number;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
output: {
|
|
148
|
+
tokensCount: {
|
|
149
|
+
value: number;
|
|
150
|
+
};
|
|
151
|
+
charactersCount: {
|
|
152
|
+
value: number;
|
|
153
|
+
};
|
|
154
|
+
wordsCount: {
|
|
155
|
+
value: number;
|
|
156
|
+
};
|
|
157
|
+
sentencesCount: {
|
|
158
|
+
value: number;
|
|
159
|
+
};
|
|
160
|
+
linesCount: {
|
|
161
|
+
value: number;
|
|
162
|
+
};
|
|
163
|
+
paragraphsCount: {
|
|
164
|
+
value: number;
|
|
165
|
+
};
|
|
166
|
+
pagesCount: {
|
|
167
|
+
value: number;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
79
171
|
}[];
|
|
80
172
|
sourceFile: string;
|
|
81
173
|
})[];
|
|
@@ -17,6 +17,7 @@ import { PipelineExecutionError } from '../errors/PipelineExecutionError';
|
|
|
17
17
|
import { PipelineLogicError } from '../errors/PipelineLogicError';
|
|
18
18
|
import { ReferenceError } from '../errors/ReferenceError';
|
|
19
19
|
import { UnexpectedError } from '../errors/UnexpectedError';
|
|
20
|
+
import { VersionMismatch } from '../errors/VersionMismatch';
|
|
20
21
|
import { ExpectError } from '../errors/_ExpectError';
|
|
21
22
|
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
|
|
22
23
|
import { createPipelineExecutor } from '../execution/createPipelineExecutor';
|
|
@@ -29,6 +30,8 @@ import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callbac
|
|
|
29
30
|
import { SimplePromptInterfaceTools } from '../knowledge/dialogs/simple-prompt/SimplePromptInterfaceTools';
|
|
30
31
|
import { prepareKnowledgeFromMarkdown } from '../knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown';
|
|
31
32
|
import { joinLlmExecutionTools } from '../llm-providers/multiple/joinLlmExecutionTools';
|
|
33
|
+
import { preparePipeline } from '../prepare/preparePipeline';
|
|
34
|
+
import { unpreparePipeline } from '../prepare/unpreparePipeline';
|
|
32
35
|
import type { ExecutionReportStringOptions } from '../types/execution-report/ExecutionReportStringOptions';
|
|
33
36
|
import { ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
|
|
34
37
|
import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
|
|
@@ -39,6 +42,7 @@ export { addUsage, assertsExecutionSuccessful, checkExpectations, embeddingVecto
|
|
|
39
42
|
export { collectionToJson, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createSubcollection, };
|
|
40
43
|
export { SimplePromptInterfaceTools };
|
|
41
44
|
export { pipelineJsonToString, pipelineStringToJson, pipelineStringToJsonSync, validatePipeline };
|
|
45
|
+
export { preparePipeline, unpreparePipeline };
|
|
42
46
|
export { createPipelineExecutor, joinLlmExecutionTools };
|
|
43
47
|
export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };
|
|
44
|
-
export { CollectionError, ExpectError, NotFoundError, ParsingError, PipelineExecutionError, PipelineLogicError, ReferenceError, UnexpectedError, };
|
|
48
|
+
export { CollectionError, ExpectError, NotFoundError, ParsingError, PipelineExecutionError, PipelineLogicError, ReferenceError, UnexpectedError, VersionMismatch, };
|
|
@@ -12,10 +12,12 @@ import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements
|
|
|
12
12
|
import type { Parameters } from '../types/Parameters';
|
|
13
13
|
import type { ExpectationAmount, ExpectationUnit, Expectations } from '../types/PipelineJson/Expectations';
|
|
14
14
|
import { EXPECTATION_UNITS } from '../types/PipelineJson/Expectations';
|
|
15
|
-
import {
|
|
15
|
+
import { KnowledgePiecePreparedJson } from '../types/PipelineJson/KnowledgePieceJson';
|
|
16
|
+
import { KnowledgeSourceJson, KnowledgeSourcePreparedJson } from '../types/PipelineJson/KnowledgeSourceJson';
|
|
16
17
|
import type { LlmTemplateJson } from '../types/PipelineJson/LlmTemplateJson';
|
|
17
|
-
import {
|
|
18
|
+
import { PersonaJson, PersonaPreparedJson } from '../types/PipelineJson/PersonaJson';
|
|
18
19
|
import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
|
|
20
|
+
import { PreparationJson } from '../types/PipelineJson/PreparationJson';
|
|
19
21
|
import type { PromptDialogJson } from '../types/PipelineJson/PromptDialogJson';
|
|
20
22
|
import type { PromptTemplateJson } from '../types/PipelineJson/PromptTemplateJson';
|
|
21
23
|
import type { PromptTemplateParameterJson } from '../types/PipelineJson/PromptTemplateParameterJson';
|
|
@@ -32,7 +34,7 @@ import type { FromtoItems } from '../utils/FromtoItems';
|
|
|
32
34
|
import { PROMPTBOOK_VERSION, string_promptbook_version } from '../version';
|
|
33
35
|
export { PROMPTBOOK_VERSION };
|
|
34
36
|
export { EXPECTATION_UNITS };
|
|
35
|
-
export type { AvailableModel, BlockType, CommonExecutionToolsOptions, EmbeddingVector, ExecutionReportJson, ExecutionTools, ExpectationAmount, ExpectationUnit, Expectations, FromtoItems,
|
|
37
|
+
export type { AvailableModel, BlockType, CommonExecutionToolsOptions, EmbeddingVector, ExecutionReportJson, ExecutionTools, ExpectationAmount, ExpectationUnit, Expectations, FromtoItems, KnowledgePiecePreparedJson, KnowledgeSourceJson, KnowledgeSourcePreparedJson, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, PersonaJson, PersonaPreparedJson, PipelineCollection, PipelineExecutor, PipelineJson, PipelineString, PreparationJson, 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_emails, 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_promptbook_version, string_script, string_semantic_version, 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_uuid, };
|
|
36
38
|
/**
|
|
37
39
|
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
|
|
38
40
|
*/
|
|
@@ -54,7 +54,7 @@ import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
|
|
|
54
54
|
import { PROMPTBOOK_VERSION } from '../version';
|
|
55
55
|
export { forEachAsync, PROMPTBOOK_VERSION };
|
|
56
56
|
export { extractBlock, // <- [🌻] + maybe export through `@promptbook/markdown-utils`
|
|
57
|
-
extractParameters, extractVariables, isHostnameOnPrivateNetwork, isUrlOnPrivateNetwork, isValidFilePath, isValidJavascriptName, isValidJsonString, isValidPipelineUrl
|
|
57
|
+
extractParameters, extractVariables, isHostnameOnPrivateNetwork, isUrlOnPrivateNetwork, isValidFilePath, isValidJavascriptName, isValidJsonString, isValidPipelineUrl, isValidPromptbookVersion, isValidSemanticVersion, isValidUrl, isValidUuid, parseNumber, // <- [🌻]
|
|
58
58
|
removeEmojis, removeQuotes, replaceParameters, spaceTrim, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
|
|
59
59
|
export { countCharacters, countLines, countPages, countParagraphs, countSentences, CountUtils, countWords };
|
|
60
60
|
export { splitIntoSentences };
|
|
@@ -70,6 +70,5 @@ export type { string_camelCase, string_kebab_case, string_PascalCase, string_SCR
|
|
|
70
70
|
export { extractParametersFromPromptTemplate, renameParameter, renderPromptbookMermaid };
|
|
71
71
|
export { difference, intersection, union };
|
|
72
72
|
/**
|
|
73
|
-
* TODO: [🧠] Maybe create some indipendent package like `@promptbook/markdown-utils`
|
|
74
73
|
* Note: [🕙] It does not make sence to have simple lower / UPPER case normalization
|
|
75
74
|
*/
|
|
@@ -9,13 +9,13 @@ type CreatePipelineCollectionFromUrlyOptions = {
|
|
|
9
9
|
*
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
|
-
isVerbose?: boolean;
|
|
12
|
+
readonly isVerbose?: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* If true, directory will be scanned only when needed not during the construction
|
|
15
15
|
*
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
|
-
isLazyLoaded?: boolean;
|
|
18
|
+
readonly isLazyLoaded?: boolean;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Constructs Promptbook from remote Promptbase URL
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { string_name } from '../../types/typeAliases';
|
|
2
|
+
import type { string_persona_description } from '../../types/typeAliases';
|
|
1
3
|
/**
|
|
2
4
|
* Parsed PERSONA command
|
|
3
5
|
*
|
|
@@ -6,6 +8,6 @@
|
|
|
6
8
|
*/
|
|
7
9
|
export type PersonaCommand = {
|
|
8
10
|
readonly type: 'PERSONA';
|
|
9
|
-
personaName:
|
|
10
|
-
personaDescription:
|
|
11
|
+
readonly personaName: string_name;
|
|
12
|
+
readonly personaDescription: string_persona_description | null;
|
|
11
13
|
};
|
|
@@ -5,24 +5,24 @@ import type { CommandUsagePlace } from './CommandUsagePlaces';
|
|
|
5
5
|
export type CommandParser<TCommand extends {
|
|
6
6
|
type: string_name & string_SCREAMING_CASE;
|
|
7
7
|
}> = {
|
|
8
|
-
name: string_name & string_SCREAMING_CASE;
|
|
9
|
-
aliasNames?: Array<string_name & string_SCREAMING_CASE>;
|
|
10
|
-
deprecatedNames?: Array<string_name & string_SCREAMING_CASE>;
|
|
11
|
-
usagePlaces: Array<CommandUsagePlace>;
|
|
12
|
-
description: string_markdown_text;
|
|
13
|
-
discussionUrl: `https://github.com/webgptorg/promptbook/discussions/${number | '@@'}`;
|
|
14
|
-
examples: Array<string_markdown_text>;
|
|
8
|
+
readonly name: string_name & string_SCREAMING_CASE;
|
|
9
|
+
readonly aliasNames?: Array<string_name & string_SCREAMING_CASE>;
|
|
10
|
+
readonly deprecatedNames?: Array<string_name & string_SCREAMING_CASE>;
|
|
11
|
+
readonly usagePlaces: Array<CommandUsagePlace>;
|
|
12
|
+
readonly description: string_markdown_text;
|
|
13
|
+
readonly discussionUrl: `https://github.com/webgptorg/promptbook/discussions/${number | '@@'}`;
|
|
14
|
+
readonly examples: Array<string_markdown_text>;
|
|
15
15
|
/**
|
|
16
16
|
* @throws {ParsingError} if the parsing fails
|
|
17
17
|
*/
|
|
18
18
|
parse(input: CommandParserInput): TCommand;
|
|
19
19
|
};
|
|
20
20
|
export type CommandParserInput = {
|
|
21
|
-
usagePlace: CommandUsagePlace;
|
|
22
|
-
raw: string_markdown_text;
|
|
23
|
-
rawArgs: string_markdown_text;
|
|
24
|
-
normalized: string_name & string_SCREAMING_CASE;
|
|
25
|
-
args: Array<string_name & string_SCREAMING_CASE>;
|
|
21
|
+
readonly usagePlace: CommandUsagePlace;
|
|
22
|
+
readonly raw: string_markdown_text;
|
|
23
|
+
readonly rawArgs: string_markdown_text;
|
|
24
|
+
readonly normalized: string_name & string_SCREAMING_CASE;
|
|
25
|
+
readonly args: Array<string_name & string_SCREAMING_CASE>;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* TODO: !!!! Annotate
|
|
@@ -6,6 +6,10 @@ export declare const LOOP_LIMIT = 1000;
|
|
|
6
6
|
* The maximum number of iterations for a loops which adds characters one by one
|
|
7
7
|
*/
|
|
8
8
|
export declare const CHARACTER_LOOP_LIMIT = 100000;
|
|
9
|
+
/**
|
|
10
|
+
* The maximum number of (LLM) tasks running in parallel
|
|
11
|
+
*/
|
|
12
|
+
export declare const MAX_PARALLEL_COUNT = 5;
|
|
9
13
|
/**
|
|
10
14
|
* The name of the builded pipeline collection made by CLI `ptbk make` and for lookup in `createCollectionFromDirectory`
|
|
11
15
|
*/
|
|
@@ -2,20 +2,23 @@ import type { LlmExecutionTools } from '../execution/LlmExecutionTools';
|
|
|
2
2
|
import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
|
|
3
3
|
import type { PipelineString } from '../types/PipelineString';
|
|
4
4
|
/**
|
|
5
|
-
* Options for pipelineStringToJson
|
|
5
|
+
* Options for `pipelineStringToJson`
|
|
6
6
|
*/
|
|
7
7
|
export type PipelineStringToJsonOptions = {
|
|
8
8
|
/**
|
|
9
|
-
* Tools for processing required for knowledge
|
|
9
|
+
* Tools for processing required for preparation of knowledge *(not for actual execution)*
|
|
10
|
+
*
|
|
11
|
+
* Note: If you provide `null`, the knowledge will not be prepared
|
|
10
12
|
*/
|
|
11
|
-
llmTools
|
|
13
|
+
readonly llmTools: LlmExecutionTools | null;
|
|
12
14
|
};
|
|
13
15
|
/**
|
|
14
|
-
* Compile
|
|
16
|
+
* Compile pipeline from string (markdown) format to JSON format
|
|
15
17
|
*
|
|
16
|
-
* Note: There are
|
|
18
|
+
* Note: There are 3 similar functions:
|
|
17
19
|
* - `pipelineStringToJson` **(preferred)** - which propperly compiles the promptbook and use embedding for external knowledge
|
|
18
20
|
* - `pipelineStringToJsonSync` - use only if you need to compile promptbook synchronously and it contains NO external knowledge
|
|
21
|
+
* - `preparePipeline` - just one step in the compilation process
|
|
19
22
|
*
|
|
20
23
|
* @param pipelineString {Promptbook} in string markdown format (.ptbk.md)
|
|
21
24
|
* @param options - Options and tools for the compilation
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
|
|
2
2
|
import type { PipelineString } from '../types/PipelineString';
|
|
3
3
|
/**
|
|
4
|
-
* Compile
|
|
4
|
+
* Compile pipeline from string (markdown) format to JSON format synchronously
|
|
5
5
|
*
|
|
6
|
-
* Note: There are
|
|
6
|
+
* Note: There are 3 similar functions:
|
|
7
7
|
* - `pipelineStringToJson` **(preferred)** - which propperly compiles the promptbook and use embedding for external knowledge
|
|
8
8
|
* - `pipelineStringToJsonSync` - use only if you need to compile promptbook synchronously and it contains NO external knowledge
|
|
9
|
+
* - `preparePipeline` - just one step in the compilation process
|
|
9
10
|
*
|
|
10
11
|
* @param pipelineString {Promptbook} in string markdown format (.ptbk.md)
|
|
11
|
-
* @param options - Options and tools for the compilation
|
|
12
12
|
* @returns {Promptbook} compiled in JSON format (.ptbk.json)
|
|
13
13
|
* @throws {ParsingError} if the promptbook string is not valid
|
|
14
14
|
*
|
|
@@ -5,9 +5,9 @@ export type PrettifyOptions = {
|
|
|
5
5
|
/***
|
|
6
6
|
* If true, adds Mermaid graph to the Promptbook string
|
|
7
7
|
*/
|
|
8
|
-
isGraphAdded?: boolean;
|
|
8
|
+
readonly isGraphAdded?: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* If true, the string is prettifyed as markdown
|
|
11
11
|
*/
|
|
12
|
-
isPrettifyed?: boolean;
|
|
12
|
+
readonly isPrettifyed?: boolean;
|
|
13
13
|
};
|
|
@@ -5,15 +5,15 @@ type RenameParameterOptions = {
|
|
|
5
5
|
* Pipeline to search and replace for parameters
|
|
6
6
|
* This pipeline is returned as copy with replaced parameters
|
|
7
7
|
*/
|
|
8
|
-
pipeline: PipelineJson;
|
|
8
|
+
readonly pipeline: PipelineJson;
|
|
9
9
|
/**
|
|
10
10
|
* Original parameter name that should be replaced
|
|
11
11
|
*/
|
|
12
|
-
oldParameterName: string_name;
|
|
12
|
+
readonly oldParameterName: string_name;
|
|
13
13
|
/**
|
|
14
14
|
* New parameter name that should replace the original parameter name
|
|
15
15
|
*/
|
|
16
|
-
newParameterName: string_name;
|
|
16
|
+
readonly newParameterName: string_name;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* Function renameParameter will find all usable parameters for given prompt template
|
|
@@ -9,5 +9,5 @@ import type { PipelineString } from '../../types/PipelineString';
|
|
|
9
9
|
* @param path - The path to the file relative to samples/templates directory
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
12
|
+
export declare function importPipelineWithoutPreparation(path: `${string}.ptbk.md`): PipelineString;
|
|
13
|
+
export declare function importPipelineWithoutPreparation(path: `${string}.ptbk.json`): PipelineJson;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { string_semantic_version } from '../types/typeAliases';
|
|
2
|
+
/**
|
|
3
|
+
* This error type indicates that the version of the pipeline is not matching the expected version
|
|
4
|
+
*/
|
|
5
|
+
export declare class VersionMismatch extends Error {
|
|
6
|
+
readonly name = "UnexpectedError";
|
|
7
|
+
constructor(message: string, expectedVersion: string_semantic_version);
|
|
8
|
+
}
|
|
@@ -16,25 +16,25 @@ export type PipelineExecutor = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Whether the execution was successful, details are aviable in `executionReport`
|
|
18
18
|
*/
|
|
19
|
-
isSuccessful: boolean;
|
|
19
|
+
readonly isSuccessful: boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Added usage of whole execution, detailed usage is aviable in `executionReport`
|
|
22
22
|
*/
|
|
23
|
-
usage: PromptResultUsage;
|
|
23
|
+
readonly usage: PromptResultUsage;
|
|
24
24
|
/**
|
|
25
25
|
* Errors that occured during the execution, details are aviable in `executionReport`
|
|
26
26
|
*/
|
|
27
|
-
errors: Array<Error>;
|
|
27
|
+
readonly errors: Array<Error>;
|
|
28
28
|
/**
|
|
29
29
|
* The report of the execution with all details
|
|
30
30
|
*/
|
|
31
|
-
executionReport: ExecutionReportJson;
|
|
31
|
+
readonly executionReport: ExecutionReportJson;
|
|
32
32
|
/**
|
|
33
33
|
* Result parameters of the execution
|
|
34
34
|
*
|
|
35
35
|
* Note: If the execution was not successful, there are only some of the result parameters
|
|
36
36
|
*/
|
|
37
|
-
outputParameters: Record<string_name, string>;
|
|
37
|
+
readonly outputParameters: Record<string_name, string>;
|
|
38
38
|
}>;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
@@ -47,15 +47,15 @@ export type PromptCommonResult = {
|
|
|
47
47
|
/**
|
|
48
48
|
* Start of the execution
|
|
49
49
|
*/
|
|
50
|
-
start: string_date_iso8601;
|
|
50
|
+
readonly start: string_date_iso8601;
|
|
51
51
|
/**
|
|
52
52
|
* First token generated
|
|
53
53
|
*/
|
|
54
|
-
firstToken?: string_date_iso8601;
|
|
54
|
+
readonly firstToken?: string_date_iso8601;
|
|
55
55
|
/**
|
|
56
56
|
* End of the execution
|
|
57
57
|
*/
|
|
58
|
-
complete: string_date_iso8601;
|
|
58
|
+
readonly complete: string_date_iso8601;
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* Usage of the prompt execution
|
|
@@ -99,11 +99,11 @@ export type UncertainNumber = {
|
|
|
99
99
|
/**
|
|
100
100
|
* The numeric value
|
|
101
101
|
*/
|
|
102
|
-
value: number_usd & (number_positive | 0);
|
|
102
|
+
readonly value: number_usd & (number_positive | 0);
|
|
103
103
|
/**
|
|
104
104
|
* Is the value uncertain
|
|
105
105
|
*/
|
|
106
|
-
isUncertain?: true;
|
|
106
|
+
readonly isUncertain?: true;
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* TODO: [🧠] Maybe timing more accurate then seconds?
|