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