@promptbook/utils 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 +464 -1614
- 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 +2 -4
- package/umd/index.umd.js +462 -1620
- 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
|
@@ -213,7 +213,7 @@ File `write-website-content.ptbk.md`:
|
|
|
213
213
|
>
|
|
214
214
|
> Instructions for creating web page content.
|
|
215
215
|
>
|
|
216
|
-
> - PROMPTBOOK URL https://promptbook.webgpt.com/en/write-website-content.ptbk.md
|
|
216
|
+
> - PROMPTBOOK URL https://promptbook.webgpt.com/en/write-website-content.ptbk.md
|
|
217
217
|
> - PROMPTBOOK VERSION 0.0.1
|
|
218
218
|
> - INPUT PARAM `{rawTitle}` Automatically suggested a site name or empty text
|
|
219
219
|
> - INPUT PARAM `{rawAssigment}` Automatically generated site entry from image recognition
|
|
@@ -610,9 +610,10 @@ Internally it calls OpenAI, Azure, GPU, proxy, cache, logging,...
|
|
|
610
610
|
- _(Not implemented yet)_ `BardExecutionTools`
|
|
611
611
|
- _(Not implemented yet)_ `LamaExecutionTools`
|
|
612
612
|
- _(Not implemented yet)_ `GpuExecutionTools`
|
|
613
|
-
- And a special case are `
|
|
614
|
-
-
|
|
615
|
-
- The
|
|
613
|
+
- And a special case are `MultipleLlmExecutionTools` that combines multiple execution tools together and tries to execute the prompt on the best one.
|
|
614
|
+
- Another special case are `RemoteLlmExecutionTools` that connect to a remote server and run one of the above execution tools on that server.
|
|
615
|
+
- The another special case is `MockedEchoLlmExecutionTools` that is used for testing and mocking.
|
|
616
|
+
- 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.
|
|
616
617
|
|
|
617
618
|
#### Script Execution Tools
|
|
618
619
|
|
|
@@ -671,8 +672,6 @@ _Note: LLMs work with tokens, not characters, but in Promptbooks we want to use
|
|
|
671
672
|
```markdown
|
|
672
673
|
# ✨ Sample: Expectations
|
|
673
674
|
|
|
674
|
-
- PROMPTBOOK URL https://promptbook.example.com/samples/postprocessing-2.ptbk.md@v1
|
|
675
|
-
- PROMPTBOOK VERSION 1.0.0
|
|
676
675
|
- INPUT PARAMETER {yourName} Name of the hero
|
|
677
676
|
|
|
678
677
|
## 💬 Question
|
|
@@ -711,6 +710,8 @@ Execution report is a simple object or markdown that contains information about
|
|
|
711
710
|
|
|
712
711
|
|
|
713
712
|
|
|
713
|
+
|
|
714
|
+
|
|
714
715
|
### Remote server
|
|
715
716
|
|
|
716
717
|
Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|