@promptbook/pdf 0.94.0-0 → 0.94.0-1

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 CHANGED
@@ -62,8 +62,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
62
62
 
63
63
  During the computer revolution, we have seen [multiple generations of computer languages](https://github.com/webgptorg/promptbook/discussions/180), from the physical rewiring of the vacuum tubes through low-level machine code to the high-level languages like Python or JavaScript. And now, we're on the edge of the **next revolution**!
64
64
 
65
-
66
-
67
65
  It's a revolution of writing software in **plain human language** that is understandable and executable by both humans and machines – and it's going to change everything!
68
66
 
69
67
  The incredible growth in power of microprocessors and the Moore's Law have been the driving force behind the ever-more powerful languages, and it's been an amazing journey! Similarly, the large language models (like GPT or Claude) are the next big thing in language technology, and they're set to transform the way we interact with computers.
@@ -249,8 +247,6 @@ Personas can have access to different knowledge, tools and actions. They can als
249
247
 
250
248
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
251
249
 
252
-
253
-
254
250
  ### **3. How:** Knowledge, Instruments and Actions
255
251
 
256
252
  The resources used by the personas are used to do the work.
@@ -311,6 +307,7 @@ Or you can install them separately:
311
307
  - **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
312
308
  - **[@promptbook/google](https://www.npmjs.com/package/@promptbook/google)** - Integration with Google's Gemini API
313
309
  - **[@promptbook/deepseek](https://www.npmjs.com/package/@promptbook/deepseek)** - Integration with [DeepSeek API](https://www.deepseek.com/)
310
+ - **[@promptbook/ollama](https://www.npmjs.com/package/@promptbook/ollama)** - Integration with [Ollama](https://ollama.com/) API
314
311
  - **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
315
312
 
316
313
  - **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
@@ -349,8 +346,6 @@ The following glossary is used to clarify certain concepts:
349
346
 
350
347
  _Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
351
348
 
352
-
353
-
354
349
  ### 💯 Core concepts
355
350
 
356
351
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -26,7 +26,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
26
26
  * @generated
27
27
  * @see https://github.com/webgptorg/promptbook
28
28
  */
29
- const PROMPTBOOK_ENGINE_VERSION = '0.94.0-0';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.94.0-1';
30
30
  /**
31
31
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
32
32
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -5533,11 +5533,6 @@ async function executeTask(options) {
5533
5533
  const jokerParameterNames = currentTask.jokerParameterNames || [];
5534
5534
  const preparedContent = (currentTask.preparedContent || '{content}').split('{content}').join(currentTask.content);
5535
5535
  // <- TODO: [🍵] Use here `templateParameters` to replace {websiteContent} with option to ignore missing parameters
5536
- await onProgress({
5537
- outputParameters: {
5538
- [currentTask.resultingParameterName]: '',
5539
- },
5540
- });
5541
5536
  const resultString = await executeFormatSubvalues({
5542
5537
  jokerParameterNames,
5543
5538
  priority,
@@ -5636,6 +5631,13 @@ async function executePipeline(options) {
5636
5631
  * Note: This is a flag to prevent `onProgress` call after the pipeline execution is finished
5637
5632
  */
5638
5633
  let isReturned = false;
5634
+ // Note: Report all output parameters upfront as empty strings
5635
+ if (onProgress) {
5636
+ const emptyOutputParameters = Object.fromEntries(preparedPipeline.parameters.filter((param) => !param.isInput).map((param) => [param.name, '']));
5637
+ onProgress({
5638
+ outputParameters: emptyOutputParameters,
5639
+ });
5640
+ }
5639
5641
  // Note: Check that all input input parameters are defined
5640
5642
  for (const parameter of preparedPipeline.parameters.filter(({ isInput }) => isInput)) {
5641
5643
  if (inputParameters[parameter.name] === undefined) {