@promptbook/vercel 0.105.0-3 → 0.105.0-4
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 +36 -77
- package/esm/index.es.js +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
package/README.md
CHANGED
|
@@ -118,19 +118,20 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
118
118
|
|
|
119
119
|
## 📖 The Book Whitepaper
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as GPT-5.2 and Claude-4.5 are incredibly capable.
|
|
122
122
|
|
|
123
|
-
The main challenge
|
|
123
|
+
The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
|
|
124
124
|
|
|
125
|
-
Promptbook
|
|
125
|
+
In Promptbook, you can define your context **using simple Books** that are very explicit, easy to understand and write, reliable, and highly portable.
|
|
126
126
|
|
|
127
127
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
128
128
|
|
|
129
|
-
**<ins>Paul Smith
|
|
129
|
+
**<ins>Paul Smith</ins>**<br/>
|
|
130
130
|
<br/>
|
|
131
131
|
**PERSONA** You are a company lawyer.<br/>
|
|
132
132
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
133
|
-
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
133
|
+
**RULE** You are knowledgeable, professional, and detail-oriented.<br/>
|
|
134
|
+
TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
|
|
134
135
|
|
|
135
136
|
</td></tr></table>
|
|
136
137
|
|
|
@@ -140,7 +141,9 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
140
141
|
|
|
141
142
|
We have created a language called **Book**, which allows you to write AI agents in their native language and create your own AI persona. Book provides a guide to define all the traits and commitments.
|
|
142
143
|
|
|
143
|
-
You can look at it as prompting (or writing a system message), but decorated by **commitments**.
|
|
144
|
+
You can look at it as "prompting" _(or writing a system message)_, but decorated by **commitments**.
|
|
145
|
+
|
|
146
|
+
**Commitments** are special syntax elements that define contracts between you and the AI agent. They are transformed by Promptbook Engine into low-level parameters like which model to use, its temperature, system message, RAG index, MCP servers, and many other parameters. For some commitments _(for example `RULE` commitment)_ Promptbook Engine can even create adversary agents and extra checks to enforce the rules.
|
|
144
147
|
|
|
145
148
|
#### `Persona` commitment
|
|
146
149
|
|
|
@@ -151,8 +154,6 @@ Personas define the character of your AI persona, its role, and how it should in
|
|
|
151
154
|
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
152
155
|
<br/>
|
|
153
156
|
**PERSONA** You are a company lawyer.<br/>
|
|
154
|
-
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
155
|
-
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
156
157
|
|
|
157
158
|
</td></tr></table>
|
|
158
159
|
|
|
@@ -172,7 +173,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
172
173
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
173
174
|
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
174
175
|
<br/>
|
|
175
|
-
**KNOWLEDGE**
|
|
176
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
176
177
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
177
178
|
|
|
178
179
|
</td></tr></table>
|
|
@@ -194,14 +195,14 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
194
195
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
195
196
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
196
197
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
197
|
-
**KNOWLEDGE**
|
|
198
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
198
199
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
199
200
|
|
|
200
201
|
</td></tr></table>
|
|
201
202
|
|
|
202
|
-
#### `
|
|
203
|
+
#### `Team` commitment
|
|
203
204
|
|
|
204
|
-
|
|
205
|
+
Team commitment allows you to define the team structure and advisory fellow members the AI can consult with. This allows the AI to simulate collaboration and consultation with other experts, enhancing the quality of its responses.
|
|
205
206
|
|
|
206
207
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
207
208
|
|
|
@@ -214,81 +215,36 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
214
215
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
215
216
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
216
217
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
217
|
-
**KNOWLEDGE**
|
|
218
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
218
219
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
219
|
-
|
|
220
|
+
TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
|
|
220
221
|
|
|
221
222
|
</td></tr></table>
|
|
222
223
|
|
|
223
|
-
[Read more about the language](./BLUEPRINT.md)
|
|
224
|
-
|
|
225
|
-
<div style="page-break-after: always;"></div>
|
|
226
|
-
|
|
227
|
-
### Where to use your AI agent in book
|
|
228
|
-
|
|
229
|
-
Books can be useful in various applications and scenarios. Here are some examples:
|
|
230
|
-
|
|
231
|
-
#### Chat apps:
|
|
232
224
|
|
|
233
|
-
Create your own chat shopping assistant and place it in your eShop.
|
|
234
|
-
You will be able to answer customer questions, help them find products, and provide personalized recommendations. Everything is tightly controlled by the book you have written.
|
|
235
225
|
|
|
236
|
-
|
|
226
|
+
### Promptbook Ecosystem
|
|
237
227
|
|
|
238
|
-
|
|
228
|
+
!!!@@@
|
|
239
229
|
|
|
240
|
-
####
|
|
241
|
-
|
|
242
|
-
Do you love Vibecoding, but the AI code is not always aligned with your coding style and architecture, rules, security, etc.? Create your own coding agent to help enforce your specific coding standards and practices.
|
|
243
|
-
|
|
244
|
-
This can be integrated to almost any Vibecoding platform, like GitHub Copilot, Amazon CodeWhisperer, Cursor, Cline, Kilocode, Roocode,...
|
|
245
|
-
|
|
246
|
-
They will work the same as you are used to, but with your specific rules written in book.
|
|
247
|
-
|
|
248
|
-
#### Internal Expertise
|
|
249
|
-
|
|
250
|
-
Do you have an app written in TypeScript, Python, C#, Java, or any other language, and you are integrating the AI.
|
|
251
|
-
|
|
252
|
-
You can avoid struggle with choosing the best model, its settings like temperature, max tokens, etc., by writing a book agent and using it as your AI expertise.
|
|
253
|
-
|
|
254
|
-
Doesn't matter if you do automations, data analysis, customer support, sentiment analysis, classification, or any other task. Your AI agent will be tailored to your specific needs and requirements.
|
|
255
|
-
|
|
256
|
-
Even works in no-code platforms!
|
|
257
|
-
|
|
258
|
-
<div style="page-break-after: always;"></div>
|
|
230
|
+
#### Promptbook Server
|
|
259
231
|
|
|
260
|
-
|
|
232
|
+
!!!@@@
|
|
261
233
|
|
|
262
|
-
|
|
234
|
+
#### Promptbook Engine
|
|
263
235
|
|
|
264
|
-
|
|
236
|
+
!!!@@@
|
|
265
237
|
|
|
266
|
-
We have written ai asistant in book who can help you with writing your first book.
|
|
267
238
|
|
|
268
|
-
#### Your AI twin
|
|
269
239
|
|
|
270
|
-
Copy your own behavior, personality, and knowledge into book and create your AI twin. It can help you with your work, personal life, or any other task.
|
|
271
240
|
|
|
272
|
-
#### AI persona workpool
|
|
273
241
|
|
|
274
|
-
Or you can pick from our library of pre-written books for various roles and tasks. You can find books for customer support, coding, marketing, sales, HR, legal, and many other roles.
|
|
275
242
|
|
|
276
243
|
|
|
277
244
|
|
|
278
245
|
|
|
279
246
|
|
|
280
247
|
|
|
281
|
-
## 🚀 Get started
|
|
282
|
-
|
|
283
|
-
Take a look at the simple starter kit with books integrated into the **Hello World** sample applications:
|
|
284
|
-
|
|
285
|
-
- [Hello Book](https://github.com/webgptorg/hello-world)
|
|
286
|
-
- [Hello Book in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
|
287
|
-
- [Hello Book in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
248
|
|
|
293
249
|
|
|
294
250
|
## 💜 The Promptbook Project
|
|
@@ -304,33 +260,32 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
304
260
|
</thead>
|
|
305
261
|
<tbody>
|
|
306
262
|
<tr>
|
|
307
|
-
<td><a href="https://
|
|
263
|
+
<td><a href="https://gallery.ptbk.io/">Agents Server</a></td>
|
|
308
264
|
<td>
|
|
309
|
-
|
|
310
|
-
<hr>
|
|
311
|
-
There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
|
|
265
|
+
Place where you "AI agents live". It allows to create, manage, deploy, and interact with AI agents created in Book language.
|
|
312
266
|
</td>
|
|
313
267
|
</tr>
|
|
314
268
|
<tr>
|
|
315
|
-
<td><a href="https://github.com/webgptorg/
|
|
269
|
+
<td><a href="https://github.com/webgptorg/book">Book language</a></td>
|
|
316
270
|
<td>
|
|
317
|
-
|
|
271
|
+
Human-friendly, high-level language that abstracts away low-level details of AI. It allows to focus on personality, behavior, knowledge, and rules of AI agents rather than on models, parameters, and prompt engineering.
|
|
272
|
+
<hr>
|
|
273
|
+
There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
|
|
318
274
|
</td>
|
|
319
275
|
</tr>
|
|
320
276
|
<tr>
|
|
321
|
-
<td><a href="https://promptbook
|
|
277
|
+
<td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
|
|
322
278
|
<td>
|
|
323
|
-
Promptbook
|
|
279
|
+
Promptbook engine can run AI agents based on Book language.
|
|
280
|
+
It is released as <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">multiple NPM packages</a> and <a href="https://hub.docker.com/r/hejny/promptbook">Promptbook Agent Server as Docker Package</a>
|
|
281
|
+
Agent Server is based on Promptbook Engine.
|
|
324
282
|
</td>
|
|
325
283
|
</tr>
|
|
284
|
+
|
|
326
285
|
</tbody>
|
|
327
286
|
</table>
|
|
328
287
|
|
|
329
|
-
Hello world examples:
|
|
330
288
|
|
|
331
|
-
- [Hello world](https://github.com/webgptorg/hello-world)
|
|
332
|
-
- [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
|
333
|
-
- [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
|
334
289
|
|
|
335
290
|
### 🌐 Community & Social Media
|
|
336
291
|
|
|
@@ -388,6 +343,8 @@ Join our growing community of developers and users:
|
|
|
388
343
|
|
|
389
344
|
|
|
390
345
|
|
|
346
|
+
|
|
347
|
+
|
|
391
348
|
## 📚 Documentation
|
|
392
349
|
|
|
393
350
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -464,6 +421,8 @@ The following glossary is used to clarify certain concepts:
|
|
|
464
421
|
|
|
465
422
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
466
423
|
|
|
424
|
+
|
|
425
|
+
|
|
467
426
|
### 💯 Core concepts
|
|
468
427
|
|
|
469
428
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
16
16
|
* @generated
|
|
17
17
|
* @see https://github.com/webgptorg/promptbook
|
|
18
18
|
*/
|
|
19
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.105.0-
|
|
19
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.105.0-4';
|
|
20
20
|
/**
|
|
21
21
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
22
22
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.105.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.105.0-3`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/vercel",
|
|
3
|
-
"version": "0.105.0-
|
|
3
|
+
"version": "0.105.0-4",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"module": "./esm/index.es.js",
|
|
95
95
|
"typings": "./esm/typings/src/_packages/vercel.index.d.ts",
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@promptbook/core": "0.105.0-
|
|
97
|
+
"@promptbook/core": "0.105.0-4"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* @generated
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.105.0-
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.105.0-4';
|
|
27
27
|
/**
|
|
28
28
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
29
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|