@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 +38 -46
- package/esm/index.es.js +725 -860
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/conversion/archive/loadArchive.d.ts +16 -0
- package/esm/typings/src/conversion/archive/saveArchive.d.ts +18 -0
- package/esm/typings/src/conversion/utils/extractVariablesFromScript.d.ts +5 -5
- package/esm/typings/src/conversion/validation/_importPipeline.d.ts +3 -10
- package/esm/typings/src/execution/AbstractTaskResult.d.ts +3 -3
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +1 -1
- package/esm/typings/src/execution/utils/usageToHuman.d.ts +11 -1
- package/esm/typings/src/execution/utils/usageToWorktime.d.ts +9 -1
- package/esm/typings/src/formats/_common/FormatDefinition.d.ts +1 -1
- package/esm/typings/src/formats/text/TextFormatDefinition.d.ts +1 -1
- package/esm/typings/src/llm-providers/multiple/MultipleLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/types/typeAliases.d.ts +6 -0
- package/package.json +2 -2
- package/umd/index.umd.js +725 -860
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/utils/editable/utils/stringifyPipelineJson.test.d.ts +0 -1
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/
|
|
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://
|
|
370
|
-
- KNOWLEDGE ./
|
|
371
|
+
- KNOWLEDGE https://wikipedia.org/
|
|
372
|
+
- KNOWLEDGE ./journalist-ethics.pdf
|
|
371
373
|
- EXPECT MIN 1 Sentence
|
|
372
|
-
- EXPECT MAX
|
|
374
|
+
- EXPECT MAX 5 Pages
|
|
373
375
|
|
|
374
|
-
> Write an article about
|
|
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
|
-
|
|
391
|
-
|
|
392
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
625
|
+
We are open to pull requests, feedback, and suggestions.
|
|
634
626
|
|
|
635
|
-
You can also β star the
|
|
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/).
|