@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.
Files changed (50) hide show
  1. package/README.md +7 -6
  2. package/esm/index.es.js +1105 -179
  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 +3 -2
  24. package/umd/index.umd.js +1117 -182
  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
@@ -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@v0.1.0
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 `RemoteLlmExecutionTools` that connect to a remote server and run one of the above execution tools on that server.
497
- - The second special case is `MockedEchoLlmExecutionTools` that is used for testing and mocking.
498
- - 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.
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.