@promptbook/markdown-utils 0.86.10 → 0.86.30
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 +35 -42
- package/esm/index.es.js +2691 -3586
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/_packages/utils.index.d.ts +0 -2
- 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 +1 -1
- package/umd/index.umd.js +2704 -3599
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/conversion/utils/extractVariablesFromScript.d.ts +0 -14
- package/esm/typings/src/conversion/utils/extractVariablesFromScript.test.d.ts +0 -1
- package/esm/typings/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +0 -4
package/README.md
CHANGED
|
@@ -141,9 +141,7 @@ And **Promptbook.city** branded socials:
|
|
|
141
141
|
_/Sub-brand for images and graphics generated via Promptbook prompting/_
|
|
142
142
|
|
|
143
143
|
- [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
|
|
144
|
-
- [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
|
|
145
|
-
|
|
146
|
-
##
|
|
144
|
+
- [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
|
|
147
145
|
|
|
148
146
|
|
|
149
147
|
|
|
@@ -154,7 +152,9 @@ _/Sub-brand for images and graphics generated via Promptbook prompting/_
|
|
|
154
152
|
|
|
155
153
|
|
|
156
154
|
|
|
157
|
-
Following is the documentation and blueprint of the Book language.
|
|
155
|
+
Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
|
|
156
|
+
|
|
157
|
+
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.
|
|
158
158
|
|
|
159
159
|
### Example
|
|
160
160
|
|
|
@@ -162,35 +162,56 @@ Following is the documentation and blueprint of the Book language.
|
|
|
162
162
|
# 🌟 My first Book
|
|
163
163
|
|
|
164
164
|
- BOOK VERSION 1.0.0
|
|
165
|
-
- URL https://promptbook.studio/
|
|
165
|
+
- URL https://promptbook.studio/hello.book
|
|
166
|
+
- INPUT PARAMETER {topic}
|
|
167
|
+
- OUTPUT PARAMETER {article}
|
|
166
168
|
|
|
167
169
|
# Write an article
|
|
168
170
|
|
|
169
171
|
- PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
|
|
170
|
-
- KNOWLEDGE https://
|
|
171
|
-
- KNOWLEDGE ./
|
|
172
|
+
- KNOWLEDGE https://wikipedia.org/
|
|
173
|
+
- KNOWLEDGE ./journalist-ethics.pdf
|
|
172
174
|
- EXPECT MIN 1 Sentence
|
|
173
|
-
- EXPECT MAX
|
|
175
|
+
- EXPECT MAX 5 Pages
|
|
174
176
|
|
|
175
|
-
> Write an article about
|
|
176
|
-
> Look specifically at the impact of Promptbook on the AI industry.
|
|
177
|
+
> Write an article about {topic}
|
|
177
178
|
|
|
178
179
|
-> {article}
|
|
179
180
|
```
|
|
180
181
|
|
|
182
|
+
Each part of the book defines one of 3 circles:
|
|
183
|
+
|
|
181
184
|
### **What:** Workflows, Tasks and Parameters
|
|
182
185
|
|
|
186
|
+
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.
|
|
187
|
+
|
|
188
|
+
**Related commands:**
|
|
189
|
+
|
|
183
190
|
- [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
|
|
184
191
|
|
|
185
192
|
### **Who:** Personas
|
|
186
193
|
|
|
194
|
+
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.
|
|
195
|
+
|
|
196
|
+
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",...`.
|
|
197
|
+
|
|
198
|
+
Personas can have access to different knowledge, tools and actions. They can also consult their work with other personas or user, if allowed.
|
|
199
|
+
|
|
200
|
+
**Related commands:**
|
|
201
|
+
|
|
187
202
|
- [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
|
|
188
203
|
|
|
204
|
+
|
|
205
|
+
|
|
189
206
|
### **How:** Knowledge, Instruments and Actions
|
|
190
207
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
208
|
+
The resources used by the personas are used to do the work.
|
|
209
|
+
|
|
210
|
+
**Related commands:**
|
|
211
|
+
|
|
212
|
+
- [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md) of documents, websites, and other resources
|
|
213
|
+
- [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.
|
|
214
|
+
- [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
|
|
194
215
|
|
|
195
216
|
### General principles of book language
|
|
196
217
|
|
|
@@ -281,35 +302,7 @@ The following glossary is used to clarify certain concepts:
|
|
|
281
302
|
|
|
282
303
|
_Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
283
304
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
- **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).
|
|
287
|
-
- **Jobs**
|
|
288
|
-
- **Task**
|
|
289
|
-
- **Subtask**
|
|
290
|
-
- **Workforce**
|
|
291
|
-
- **Persona**
|
|
292
|
-
- **Team**
|
|
293
|
-
- **Role**
|
|
294
|
-
- **Knowledge**
|
|
295
|
-
- **Public**
|
|
296
|
-
- **Private**
|
|
297
|
-
- **Protected**
|
|
298
|
-
- **Instruments**
|
|
299
|
-
- **Actions**
|
|
300
|
-
|
|
301
|
-
#### Book language
|
|
302
|
-
|
|
303
|
-
- **Book file**
|
|
304
|
-
- **Section**
|
|
305
|
-
- **Heading**
|
|
306
|
-
- **Description**
|
|
307
|
-
- **Command**
|
|
308
|
-
- **Block**
|
|
309
|
-
- **Return statement**
|
|
310
|
-
- **Comment**
|
|
311
|
-
- **Import**
|
|
312
|
-
- **Scope**
|
|
305
|
+
|
|
313
306
|
|
|
314
307
|
#### 💯 Core concepts
|
|
315
308
|
|