@promptbook/markdown-utils 0.93.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
@@ -25,6 +25,10 @@ Write AI applications using plain human language across multiple models and plat
25
25
 
26
26
 
27
27
 
28
+ <blockquote style="color: #ff8811">
29
+ <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
30
+ </blockquote>
31
+
28
32
  ## 📦 Package `@promptbook/markdown-utils`
29
33
 
30
34
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -56,8 +60,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
56
60
 
57
61
  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**!
58
62
 
59
-
60
-
61
63
  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!
62
64
 
63
65
  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.
@@ -243,8 +245,6 @@ Personas can have access to different knowledge, tools and actions. They can als
243
245
 
244
246
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
245
247
 
246
-
247
-
248
248
  ### **3. How:** Knowledge, Instruments and Actions
249
249
 
250
250
  The resources used by the personas are used to do the work.
@@ -305,6 +305,7 @@ Or you can install them separately:
305
305
  - **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
306
306
  - **[@promptbook/google](https://www.npmjs.com/package/@promptbook/google)** - Integration with Google's Gemini API
307
307
  - **[@promptbook/deepseek](https://www.npmjs.com/package/@promptbook/deepseek)** - Integration with [DeepSeek API](https://www.deepseek.com/)
308
+ - **[@promptbook/ollama](https://www.npmjs.com/package/@promptbook/ollama)** - Integration with [Ollama](https://ollama.com/) API
308
309
  - **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
309
310
 
310
311
  - **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
@@ -343,8 +344,6 @@ The following glossary is used to clarify certain concepts:
343
344
 
344
345
  _Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
345
346
 
346
-
347
-
348
347
  ### 💯 Core concepts
349
348
 
350
349
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.93.0';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.94.0-1';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -5602,6 +5602,13 @@ async function executePipeline(options) {
5602
5602
  * Note: This is a flag to prevent `onProgress` call after the pipeline execution is finished
5603
5603
  */
5604
5604
  let isReturned = false;
5605
+ // Note: Report all output parameters upfront as empty strings
5606
+ if (onProgress) {
5607
+ const emptyOutputParameters = Object.fromEntries(preparedPipeline.parameters.filter((param) => !param.isInput).map((param) => [param.name, '']));
5608
+ onProgress({
5609
+ outputParameters: emptyOutputParameters,
5610
+ });
5611
+ }
5605
5612
  // Note: Check that all input input parameters are defined
5606
5613
  for (const parameter of preparedPipeline.parameters.filter(({ isInput }) => isInput)) {
5607
5614
  if (inputParameters[parameter.name] === undefined) {