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