@promptbook/core 0.52.0-2 → 0.52.0-25
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 +7 -6
- package/esm/index.es.js +1105 -179
- package/esm/index.es.js.map +1 -1
- package/esm/typings/_packages/core.index.d.ts +16 -6
- package/esm/typings/_packages/utils.index.d.ts +3 -8
- package/esm/typings/execution/ExecutionTools.d.ts +5 -3
- package/esm/typings/execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -0
- package/esm/typings/execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -0
- package/esm/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools.d.ts +35 -0
- package/esm/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionToolsOptions.d.ts +23 -0
- package/esm/typings/execution/plugins/llm-execution-tools/multiple/playground/playground.d.ts +2 -0
- package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +1 -1
- package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +4 -17
- package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +36 -4
- package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts +1 -0
- package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +2 -2
- package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.test.d.ts +1 -0
- package/esm/typings/library/constructors/createPromptbookLibraryFromSources.test.d.ts +1 -0
- package/esm/typings/library/constructors/createPromptbookLibraryFromUrl.d.ts +21 -5
- package/esm/typings/library/constructors/justTestFsImport.d.ts +7 -0
- package/esm/typings/types/Prompt.d.ts +1 -1
- package/esm/typings/types/typeAliases.d.ts +2 -2
- package/package.json +3 -2
- package/umd/index.umd.js +1117 -182
- package/umd/index.umd.js.map +1 -1
- package/umd/typings/_packages/core.index.d.ts +16 -6
- package/umd/typings/_packages/utils.index.d.ts +3 -8
- package/umd/typings/execution/ExecutionTools.d.ts +5 -3
- package/umd/typings/execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -0
- package/umd/typings/execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -0
- package/umd/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools.d.ts +35 -0
- package/umd/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionToolsOptions.d.ts +23 -0
- package/umd/typings/execution/plugins/llm-execution-tools/multiple/playground/playground.d.ts +2 -0
- package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +1 -1
- package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +4 -17
- package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +36 -4
- package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts +1 -0
- package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +2 -2
- package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.test.d.ts +1 -0
- package/umd/typings/library/constructors/createPromptbookLibraryFromSources.test.d.ts +1 -0
- package/umd/typings/library/constructors/createPromptbookLibraryFromUrl.d.ts +21 -5
- package/umd/typings/library/constructors/justTestFsImport.d.ts +7 -0
- package/umd/typings/types/Prompt.d.ts +1 -1
- package/umd/typings/types/typeAliases.d.ts +2 -2
- package/esm/typings/_packages/wizzard.index.d.ts +0 -5
- package/esm/typings/wizzard/Wizzard.d.ts +0 -4
- package/esm/typings/wizzard/sample.d.ts +0 -6
- package/umd/typings/_packages/wizzard.index.d.ts +0 -5
- package/umd/typings/wizzard/Wizzard.d.ts +0 -4
- package/umd/typings/wizzard/sample.d.ts +0 -6
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ File `write-website-content.ptbk.md`:
|
|
|
96
96
|
>
|
|
97
97
|
> Instructions for creating web page content.
|
|
98
98
|
>
|
|
99
|
-
> - PROMPTBOOK URL https://promptbook.webgpt.com/en/write-website-content.ptbk.md
|
|
99
|
+
> - PROMPTBOOK URL https://promptbook.webgpt.com/en/write-website-content.ptbk.md
|
|
100
100
|
> - PROMPTBOOK VERSION 0.0.1
|
|
101
101
|
> - INPUT PARAM `{rawTitle}` Automatically suggested a site name or empty text
|
|
102
102
|
> - INPUT PARAM `{rawAssigment}` Automatically generated site entry from image recognition
|
|
@@ -493,9 +493,10 @@ Internally it calls OpenAI, Azure, GPU, proxy, cache, logging,...
|
|
|
493
493
|
- _(Not implemented yet)_ `BardExecutionTools`
|
|
494
494
|
- _(Not implemented yet)_ `LamaExecutionTools`
|
|
495
495
|
- _(Not implemented yet)_ `GpuExecutionTools`
|
|
496
|
-
- And a special case are `
|
|
497
|
-
-
|
|
498
|
-
- The
|
|
496
|
+
- And a special case are `MultipleLlmExecutionTools` that combines multiple execution tools together and tries to execute the prompt on the best one.
|
|
497
|
+
- Another special case are `RemoteLlmExecutionTools` that connect to a remote server and run one of the above execution tools on that server.
|
|
498
|
+
- The another special case is `MockedEchoLlmExecutionTools` that is used for testing and mocking.
|
|
499
|
+
- The another special case is `LogLlmExecutionToolsWrapper` that is technically also an execution tools but it is more proxy wrapper around other execution tools that logs all calls to execution tools.
|
|
499
500
|
|
|
500
501
|
#### Script Execution Tools
|
|
501
502
|
|
|
@@ -554,8 +555,6 @@ _Note: LLMs work with tokens, not characters, but in Promptbooks we want to use
|
|
|
554
555
|
```markdown
|
|
555
556
|
# ✨ Sample: Expectations
|
|
556
557
|
|
|
557
|
-
- PROMPTBOOK URL https://promptbook.example.com/samples/postprocessing-2.ptbk.md@v1
|
|
558
|
-
- PROMPTBOOK VERSION 1.0.0
|
|
559
558
|
- INPUT PARAMETER {yourName} Name of the hero
|
|
560
559
|
|
|
561
560
|
## 💬 Question
|
|
@@ -594,6 +593,8 @@ Execution report is a simple object or markdown that contains information about
|
|
|
594
593
|
|
|
595
594
|
|
|
596
595
|
|
|
596
|
+
|
|
597
|
+
|
|
597
598
|
### Remote server
|
|
598
599
|
|
|
599
600
|
Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|