@promptbook/openai 0.86.8 β†’ 0.86.22

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
@@ -340,9 +340,7 @@ And **Promptbook.city** branded socials:
340
340
  _/Sub-brand for images and graphics generated via Promptbook prompting/_
341
341
 
342
342
  - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
343
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
344
-
345
- ##
343
+ - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
346
344
 
347
345
 
348
346
 
@@ -353,7 +351,9 @@ _/Sub-brand for images and graphics generated via Promptbook prompting/_
353
351
 
354
352
 
355
353
 
356
- Following is the documentation and blueprint of the Book language.
354
+ Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
355
+
356
+ Book is a language that can be used to write AI applications, agents, workflows, automations, knowledgebases, translators, sheet processors, email automations and more. It allows you to harness the power of AI models in human-like terms, without the need to know the specifics and technicalities of the models.
357
357
 
358
358
  ### Example
359
359
 
@@ -361,35 +361,56 @@ Following is the documentation and blueprint of the Book language.
361
361
  # 🌟 My first Book
362
362
 
363
363
  - BOOK VERSION 1.0.0
364
- - URL https://promptbook.studio/my-first-book/
364
+ - URL https://promptbook.studio/hello.book
365
+ - INPUT PARAMETER {topic}
366
+ - OUTPUT PARAMETER {article}
365
367
 
366
368
  # Write an article
367
369
 
368
370
  - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
369
- - KNOWLEDGE https://ptbk.io
370
- - KNOWLEDGE ./promptbook.pdf
371
+ - KNOWLEDGE https://wikipedia.org/
372
+ - KNOWLEDGE ./journalist-ethics.pdf
371
373
  - EXPECT MIN 1 Sentence
372
- - EXPECT MAX 1 Paragraph
374
+ - EXPECT MAX 5 Pages
373
375
 
374
- > Write an article about the future of artificial intelligence in the next 10 years and how metalanguages will change the way AI is used in the world.
375
- > Look specifically at the impact of Promptbook on the AI industry.
376
+ > Write an article about {topic}
376
377
 
377
378
  -> {article}
378
379
  ```
379
380
 
381
+ Each part of the book defines one of 3 circles:
382
+
380
383
  ### **What:** Workflows, Tasks and Parameters
381
384
 
385
+ What work needs to be done. Each book defines a workflow, which is one or more tasks. Each workflow has a fixed input and output. For example, you have a book that generates an article from a topic. Once it generates an article about AI, once about marketing, once about cooking. The workflow (= your AI program) is the same, only the input and output change.
386
+
387
+ **Related commands:**
388
+
382
389
  - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
383
390
 
384
391
  ### **Who:** Personas
385
392
 
393
+ Who does the work. Each task is performed by a persona. A persona is a description of your virtual employee. It is a higher abstraction than the model, tokens, temperature, top-k, top-p and other model parameters.
394
+
395
+ You can describe what you want in human language like `Jane, creative writer with a sense of sharp humour` instead of `gpt-4-2024-13-31, temperature 1.2, top-k 40, STOP token ".\n",...`.
396
+
397
+ Personas can have access to different knowledge, tools and actions. They can also consult their work with other personas or user, if allowed.
398
+
399
+ **Related commands:**
400
+
386
401
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
387
402
 
403
+
404
+
388
405
  ### **How:** Knowledge, Instruments and Actions
389
406
 
390
- - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md)
391
- - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md)
392
- - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md)
407
+ The resources used by the personas are used to do the work.
408
+
409
+ **Related commands:**
410
+
411
+ - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md) of documents, websites, and other resources
412
+ - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md) for real-time data like time, location, weather, stock prices, searching the internet, calculations, etc.
413
+ - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
393
414
 
394
415
  ### General principles of book language
395
416
 
@@ -480,35 +501,7 @@ The following glossary is used to clarify certain concepts:
480
501
 
481
502
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
482
503
 
483
- #### Promptbook core
484
-
485
- - **Organization** _(legacy name collection)_ group jobs, workforce, knowledge, instruments, and actions into one package. Entities in one organization can share resources (= import resources from each other).
486
- - **Jobs**
487
- - **Task**
488
- - **Subtask**
489
- - **Workforce**
490
- - **Persona**
491
- - **Team**
492
- - **Role**
493
- - **Knowledge**
494
- - **Public**
495
- - **Private**
496
- - **Protected**
497
- - **Instruments**
498
- - **Actions**
499
-
500
- #### Book language
501
-
502
- - **Book file**
503
- - **Section**
504
- - **Heading**
505
- - **Description**
506
- - **Command**
507
- - **Block**
508
- - **Return statement**
509
- - **Comment**
510
- - **Import**
511
- - **Scope**
504
+
512
505
 
513
506
  #### πŸ’― Core concepts
514
507
 
@@ -605,7 +598,7 @@ See [CHANGELOG.md](./CHANGELOG.md)
605
598
 
606
599
  ## πŸ“œ License
607
600
 
608
- <p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/webgptorg/promptbook">Promptbook</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/hejny/">Pavol HejnΓ½</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY 4.0</a></p>
601
+ Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
609
602
 
610
603
  ## 🎯 Todos
611
604
 
@@ -613,7 +606,6 @@ See [TODO.md](./TODO.md)
613
606
 
614
607
 
615
608
 
616
-
617
609
  ## 🀝 Partners
618
610
 
619
611
  <div style="display: flex; align-items: center; gap: 20px;">
@@ -630,6 +622,6 @@ See [TODO.md](./TODO.md)
630
622
 
631
623
  ## πŸ–‹οΈ Contributing
632
624
 
633
- I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can [β˜• buy me a coffee](https://www.buymeacoffee.com/hejny) or [donate via cryptocurrencies](https://github.com/hejny/hejny/blob/main/documents/crypto.md).
625
+ We are open to pull requests, feedback, and suggestions.
634
626
 
635
- You can also ⭐ star the promptbook package, [follow me on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
627
+ You can also ⭐ star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).