@promptbook/remote-client 0.89.0-1 → 0.89.0-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/esm/index.es.js +11 -9
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +4 -0
- package/esm/typings/src/_packages/types.index.d.ts +6 -4
- package/esm/typings/src/cli/cli-commands/login.d.ts +15 -0
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +2 -2
- package/esm/typings/src/execution/PromptResult.d.ts +2 -2
- package/esm/typings/src/execution/{PromptResultUsage.d.ts → Usage.d.ts} +5 -5
- package/esm/typings/src/execution/utils/addUsage.d.ts +2 -2
- package/esm/typings/src/execution/utils/computeUsageCounts.d.ts +3 -3
- package/esm/typings/src/execution/utils/usage-constants.d.ts +77 -60
- package/esm/typings/src/execution/utils/usageToHuman.d.ts +5 -5
- package/esm/typings/src/execution/utils/usageToWorktime.d.ts +5 -5
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +3 -3
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +2 -2
- package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +2 -2
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +0 -9
- package/esm/typings/src/llm-providers/openai/computeOpenAiUsage.d.ts +2 -2
- package/esm/typings/src/pipeline/PipelineJson/PreparationJson.d.ts +2 -2
- package/esm/typings/src/playground/BrjappConnector.d.ts +3 -0
- package/esm/typings/src/types/typeAliases.d.ts +6 -0
- package/package.json +2 -2
- package/umd/index.umd.js +11 -9
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -200,7 +200,7 @@ Each part of the book defines one of 3 circles:
|
|
|
200
200
|
|
|
201
201
|
### **What:** Workflows, Tasks and Parameters
|
|
202
202
|
|
|
203
|
-
What work needs to be done. Each book defines a workflow, which is one or more tasks. Each workflow has a fixed input and output. For example, you have a book that generates an article from a topic. Once it generates an article about AI, once about marketing, once about cooking. The workflow (= your AI program) is the same, only the input and output change.
|
|
203
|
+
What work needs to be done. Each book defines a [workflow *(scenario or pipeline)*](https://github.com/webgptorg/promptbook/discussions/88), which is one or more tasks. Each workflow has a fixed input and output. For example, you have a book that generates an article from a topic. Once it generates an article about AI, once about marketing, once about cooking. The workflow (= your AI program) is the same, only the input and output change.
|
|
204
204
|
|
|
205
205
|
**Related commands:**
|
|
206
206
|
|
|
@@ -310,6 +310,8 @@ The following glossary is used to clarify certain concepts:
|
|
|
310
310
|
|
|
311
311
|
|
|
312
312
|
|
|
313
|
+
|
|
314
|
+
|
|
313
315
|
_Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
314
316
|
|
|
315
317
|
|
package/esm/index.es.js
CHANGED
|
@@ -20,7 +20,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
20
20
|
* @generated
|
|
21
21
|
* @see https://github.com/webgptorg/promptbook
|
|
22
22
|
*/
|
|
23
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-
|
|
23
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-3';
|
|
24
24
|
/**
|
|
25
25
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
26
26
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3212,7 +3212,8 @@ const modelCommandParser = {
|
|
|
3212
3212
|
if ($pipelineJson.defaultModelRequirements[command.key] !== undefined) {
|
|
3213
3213
|
if ($pipelineJson.defaultModelRequirements[command.key] === command.value) {
|
|
3214
3214
|
console.warn(`Multiple commands \`MODEL ${command.key} ${command.value}\` in the pipeline head`);
|
|
3215
|
-
// <- TODO: [
|
|
3215
|
+
// <- TODO: [🏮] Some better way how to get warnings from pipeline parsing / logic
|
|
3216
|
+
// <- TODO: [🏮] Some standard way how to transform errors into warnings and how to handle non-critical fails during the tasks
|
|
3216
3217
|
}
|
|
3217
3218
|
else {
|
|
3218
3219
|
throw new ParseError(spaceTrim$1(`
|
|
@@ -3244,6 +3245,7 @@ const modelCommandParser = {
|
|
|
3244
3245
|
modelVariant: 'VARIANT',
|
|
3245
3246
|
maxTokens: '???',
|
|
3246
3247
|
}[command.key]} ${command.value}\` in the task "${$taskJson.title || $taskJson.name}"`);
|
|
3248
|
+
// <- TODO: [🏮] Some standard way how to transform errors into warnings and how to handle non-critical fails during the tasks
|
|
3247
3249
|
}
|
|
3248
3250
|
else {
|
|
3249
3251
|
throw new ParseError(spaceTrim$1(`
|
|
@@ -3523,15 +3525,15 @@ function $applyToTaskJson(command, $taskJson, $pipelineJson) {
|
|
|
3523
3525
|
}
|
|
3524
3526
|
console.warn(spaceTrim$1(`
|
|
3525
3527
|
|
|
3526
|
-
|
|
3528
|
+
Persona "${personaName}" is defined multiple times with different description:
|
|
3527
3529
|
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
+
First definition:
|
|
3531
|
+
${persona.description}
|
|
3530
3532
|
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
+
Second definition:
|
|
3534
|
+
${personaDescription}
|
|
3533
3535
|
|
|
3534
|
-
|
|
3536
|
+
`));
|
|
3535
3537
|
persona.description += spaceTrim$1('\n\n' + personaDescription);
|
|
3536
3538
|
}
|
|
3537
3539
|
|
|
@@ -4895,7 +4897,7 @@ function extractParameterNamesFromTask(task) {
|
|
|
4895
4897
|
if (parameterNames.has(subparameterName)) {
|
|
4896
4898
|
parameterNames.delete(subparameterName);
|
|
4897
4899
|
parameterNames.add(foreach.parameterName);
|
|
4898
|
-
// <- TODO: [
|
|
4900
|
+
// <- TODO: [🏮] Warn/logic error when `subparameterName` not used
|
|
4899
4901
|
}
|
|
4900
4902
|
}
|
|
4901
4903
|
}
|