@promptbook/node 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 +4665 -5684
- 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 +3 -2
- package/umd/index.umd.js +4710 -5729
- 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
|
@@ -145,9 +145,7 @@ And **Promptbook.city** branded socials:
|
|
|
145
145
|
_/Sub-brand for images and graphics generated via Promptbook prompting/_
|
|
146
146
|
|
|
147
147
|
- [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
|
|
148
|
-
- [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
|
|
149
|
-
|
|
150
|
-
##
|
|
148
|
+
- [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
|
|
151
149
|
|
|
152
150
|
|
|
153
151
|
|
|
@@ -158,7 +156,9 @@ _/Sub-brand for images and graphics generated via Promptbook prompting/_
|
|
|
158
156
|
|
|
159
157
|
|
|
160
158
|
|
|
161
|
-
Following is the documentation and blueprint of the Book language.
|
|
159
|
+
Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
|
|
160
|
+
|
|
161
|
+
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.
|
|
162
162
|
|
|
163
163
|
### Example
|
|
164
164
|
|
|
@@ -166,35 +166,56 @@ Following is the documentation and blueprint of the Book language.
|
|
|
166
166
|
# π My first Book
|
|
167
167
|
|
|
168
168
|
- BOOK VERSION 1.0.0
|
|
169
|
-
- URL https://promptbook.studio/
|
|
169
|
+
- URL https://promptbook.studio/hello.book
|
|
170
|
+
- INPUT PARAMETER {topic}
|
|
171
|
+
- OUTPUT PARAMETER {article}
|
|
170
172
|
|
|
171
173
|
# Write an article
|
|
172
174
|
|
|
173
175
|
- PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
|
|
174
|
-
- KNOWLEDGE https://
|
|
175
|
-
- KNOWLEDGE ./
|
|
176
|
+
- KNOWLEDGE https://wikipedia.org/
|
|
177
|
+
- KNOWLEDGE ./journalist-ethics.pdf
|
|
176
178
|
- EXPECT MIN 1 Sentence
|
|
177
|
-
- EXPECT MAX
|
|
179
|
+
- EXPECT MAX 5 Pages
|
|
178
180
|
|
|
179
|
-
> Write an article about
|
|
180
|
-
> Look specifically at the impact of Promptbook on the AI industry.
|
|
181
|
+
> Write an article about {topic}
|
|
181
182
|
|
|
182
183
|
-> {article}
|
|
183
184
|
```
|
|
184
185
|
|
|
186
|
+
Each part of the book defines one of 3 circles:
|
|
187
|
+
|
|
185
188
|
### **What:** Workflows, Tasks and Parameters
|
|
186
189
|
|
|
190
|
+
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.
|
|
191
|
+
|
|
192
|
+
**Related commands:**
|
|
193
|
+
|
|
187
194
|
- [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
|
|
188
195
|
|
|
189
196
|
### **Who:** Personas
|
|
190
197
|
|
|
198
|
+
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.
|
|
199
|
+
|
|
200
|
+
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",...`.
|
|
201
|
+
|
|
202
|
+
Personas can have access to different knowledge, tools and actions. They can also consult their work with other personas or user, if allowed.
|
|
203
|
+
|
|
204
|
+
**Related commands:**
|
|
205
|
+
|
|
191
206
|
- [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
|
|
192
207
|
|
|
208
|
+
|
|
209
|
+
|
|
193
210
|
### **How:** Knowledge, Instruments and Actions
|
|
194
211
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
212
|
+
The resources used by the personas are used to do the work.
|
|
213
|
+
|
|
214
|
+
**Related commands:**
|
|
215
|
+
|
|
216
|
+
- [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md) of documents, websites, and other resources
|
|
217
|
+
- [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.
|
|
218
|
+
- [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
|
|
198
219
|
|
|
199
220
|
### General principles of book language
|
|
200
221
|
|
|
@@ -285,35 +306,7 @@ The following glossary is used to clarify certain concepts:
|
|
|
285
306
|
|
|
286
307
|
_Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
287
308
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
- **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).
|
|
291
|
-
- **Jobs**
|
|
292
|
-
- **Task**
|
|
293
|
-
- **Subtask**
|
|
294
|
-
- **Workforce**
|
|
295
|
-
- **Persona**
|
|
296
|
-
- **Team**
|
|
297
|
-
- **Role**
|
|
298
|
-
- **Knowledge**
|
|
299
|
-
- **Public**
|
|
300
|
-
- **Private**
|
|
301
|
-
- **Protected**
|
|
302
|
-
- **Instruments**
|
|
303
|
-
- **Actions**
|
|
304
|
-
|
|
305
|
-
#### Book language
|
|
306
|
-
|
|
307
|
-
- **Book file**
|
|
308
|
-
- **Section**
|
|
309
|
-
- **Heading**
|
|
310
|
-
- **Description**
|
|
311
|
-
- **Command**
|
|
312
|
-
- **Block**
|
|
313
|
-
- **Return statement**
|
|
314
|
-
- **Comment**
|
|
315
|
-
- **Import**
|
|
316
|
-
- **Scope**
|
|
309
|
+
|
|
317
310
|
|
|
318
311
|
#### π― Core concepts
|
|
319
312
|
|
|
@@ -410,7 +403,7 @@ See [CHANGELOG.md](./CHANGELOG.md)
|
|
|
410
403
|
|
|
411
404
|
## π License
|
|
412
405
|
|
|
413
|
-
|
|
406
|
+
Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
|
|
414
407
|
|
|
415
408
|
## π― Todos
|
|
416
409
|
|
|
@@ -418,7 +411,6 @@ See [TODO.md](./TODO.md)
|
|
|
418
411
|
|
|
419
412
|
|
|
420
413
|
|
|
421
|
-
|
|
422
414
|
## π€ Partners
|
|
423
415
|
|
|
424
416
|
<div style="display: flex; align-items: center; gap: 20px;">
|
|
@@ -435,6 +427,6 @@ See [TODO.md](./TODO.md)
|
|
|
435
427
|
|
|
436
428
|
## ποΈ Contributing
|
|
437
429
|
|
|
438
|
-
|
|
430
|
+
We are open to pull requests, feedback, and suggestions.
|
|
439
431
|
|
|
440
|
-
You can also β star the
|
|
432
|
+
You can also β star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
|