@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.
Files changed (50) hide show
  1. package/README.md +7 -6
  2. package/esm/index.es.js +464 -1614
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/_packages/core.index.d.ts +16 -6
  5. package/esm/typings/_packages/utils.index.d.ts +3 -8
  6. package/esm/typings/execution/ExecutionTools.d.ts +5 -3
  7. package/esm/typings/execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -0
  8. package/esm/typings/execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -0
  9. package/esm/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools.d.ts +35 -0
  10. package/esm/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionToolsOptions.d.ts +23 -0
  11. package/esm/typings/execution/plugins/llm-execution-tools/multiple/playground/playground.d.ts +2 -0
  12. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +1 -1
  13. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +4 -17
  14. package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +36 -4
  15. package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts +1 -0
  16. package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +2 -2
  17. package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.test.d.ts +1 -0
  18. package/esm/typings/library/constructors/createPromptbookLibraryFromSources.test.d.ts +1 -0
  19. package/esm/typings/library/constructors/createPromptbookLibraryFromUrl.d.ts +21 -5
  20. package/esm/typings/library/constructors/justTestFsImport.d.ts +7 -0
  21. package/esm/typings/types/Prompt.d.ts +1 -1
  22. package/esm/typings/types/typeAliases.d.ts +2 -2
  23. package/package.json +2 -4
  24. package/umd/index.umd.js +462 -1620
  25. package/umd/index.umd.js.map +1 -1
  26. package/umd/typings/_packages/core.index.d.ts +16 -6
  27. package/umd/typings/_packages/utils.index.d.ts +3 -8
  28. package/umd/typings/execution/ExecutionTools.d.ts +5 -3
  29. package/umd/typings/execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -0
  30. package/umd/typings/execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -0
  31. package/umd/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools.d.ts +35 -0
  32. package/umd/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionToolsOptions.d.ts +23 -0
  33. package/umd/typings/execution/plugins/llm-execution-tools/multiple/playground/playground.d.ts +2 -0
  34. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +1 -1
  35. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +4 -17
  36. package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +36 -4
  37. package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts +1 -0
  38. package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +2 -2
  39. package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.test.d.ts +1 -0
  40. package/umd/typings/library/constructors/createPromptbookLibraryFromSources.test.d.ts +1 -0
  41. package/umd/typings/library/constructors/createPromptbookLibraryFromUrl.d.ts +21 -5
  42. package/umd/typings/library/constructors/justTestFsImport.d.ts +7 -0
  43. package/umd/typings/types/Prompt.d.ts +1 -1
  44. package/umd/typings/types/typeAliases.d.ts +2 -2
  45. package/esm/typings/_packages/wizzard.index.d.ts +0 -5
  46. package/esm/typings/wizzard/Wizzard.d.ts +0 -4
  47. package/esm/typings/wizzard/sample.d.ts +0 -6
  48. package/umd/typings/_packages/wizzard.index.d.ts +0 -5
  49. package/umd/typings/wizzard/Wizzard.d.ts +0 -4
  50. 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@v0.1.0
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 `RemoteLlmExecutionTools` that connect to a remote server and run one of the above execution tools on that server.
614
- - The second special case is `MockedEchoLlmExecutionTools` that is used for testing and mocking.
615
- - The third 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.
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.