@promptbook/color 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
|
@@ -248,19 +248,20 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
248
248
|
|
|
249
249
|
## 📖 The Book Whitepaper
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
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.
|
|
252
252
|
|
|
253
|
-
The main challenge
|
|
253
|
+
The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
|
|
254
254
|
|
|
255
|
-
Promptbook
|
|
255
|
+
In Promptbook, you can define your context **using simple Books** that are very explicit, easy to understand and write, reliable, and highly portable.
|
|
256
256
|
|
|
257
257
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
258
258
|
|
|
259
|
-
**<ins>Paul Smith
|
|
259
|
+
**<ins>Paul Smith</ins>**<br/>
|
|
260
260
|
<br/>
|
|
261
261
|
**PERSONA** You are a company lawyer.<br/>
|
|
262
262
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
263
|
-
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
263
|
+
**RULE** You are knowledgeable, professional, and detail-oriented.<br/>
|
|
264
|
+
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/>
|
|
264
265
|
|
|
265
266
|
</td></tr></table>
|
|
266
267
|
|
|
@@ -270,7 +271,9 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
270
271
|
|
|
271
272
|
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.
|
|
272
273
|
|
|
273
|
-
You can look at it as prompting (or writing a system message), but decorated by **commitments**.
|
|
274
|
+
You can look at it as "prompting" _(or writing a system message)_, but decorated by **commitments**.
|
|
275
|
+
|
|
276
|
+
**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.
|
|
274
277
|
|
|
275
278
|
#### `Persona` commitment
|
|
276
279
|
|
|
@@ -281,8 +284,6 @@ Personas define the character of your AI persona, its role, and how it should in
|
|
|
281
284
|
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
282
285
|
<br/>
|
|
283
286
|
**PERSONA** You are a company lawyer.<br/>
|
|
284
|
-
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
285
|
-
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
286
287
|
|
|
287
288
|
</td></tr></table>
|
|
288
289
|
|
|
@@ -302,7 +303,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
302
303
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
303
304
|
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
304
305
|
<br/>
|
|
305
|
-
**KNOWLEDGE**
|
|
306
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
306
307
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
307
308
|
|
|
308
309
|
</td></tr></table>
|
|
@@ -324,14 +325,14 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
324
325
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
325
326
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
326
327
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
327
|
-
**KNOWLEDGE**
|
|
328
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
328
329
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
329
330
|
|
|
330
331
|
</td></tr></table>
|
|
331
332
|
|
|
332
|
-
#### `
|
|
333
|
+
#### `Team` commitment
|
|
333
334
|
|
|
334
|
-
|
|
335
|
+
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.
|
|
335
336
|
|
|
336
337
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
337
338
|
|
|
@@ -344,81 +345,36 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
344
345
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
345
346
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
346
347
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
347
|
-
**KNOWLEDGE**
|
|
348
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
348
349
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
349
|
-
|
|
350
|
+
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/>
|
|
350
351
|
|
|
351
352
|
</td></tr></table>
|
|
352
353
|
|
|
353
|
-
[Read more about the language](./BLUEPRINT.md)
|
|
354
|
-
|
|
355
|
-
<div style="page-break-after: always;"></div>
|
|
356
|
-
|
|
357
|
-
### Where to use your AI agent in book
|
|
358
|
-
|
|
359
|
-
Books can be useful in various applications and scenarios. Here are some examples:
|
|
360
|
-
|
|
361
|
-
#### Chat apps:
|
|
362
354
|
|
|
363
|
-
Create your own chat shopping assistant and place it in your eShop.
|
|
364
|
-
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.
|
|
365
355
|
|
|
366
|
-
|
|
356
|
+
### Promptbook Ecosystem
|
|
367
357
|
|
|
368
|
-
|
|
358
|
+
!!!@@@
|
|
369
359
|
|
|
370
|
-
####
|
|
371
|
-
|
|
372
|
-
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.
|
|
373
|
-
|
|
374
|
-
This can be integrated to almost any Vibecoding platform, like GitHub Copilot, Amazon CodeWhisperer, Cursor, Cline, Kilocode, Roocode,...
|
|
375
|
-
|
|
376
|
-
They will work the same as you are used to, but with your specific rules written in book.
|
|
377
|
-
|
|
378
|
-
#### Internal Expertise
|
|
379
|
-
|
|
380
|
-
Do you have an app written in TypeScript, Python, C#, Java, or any other language, and you are integrating the AI.
|
|
381
|
-
|
|
382
|
-
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.
|
|
383
|
-
|
|
384
|
-
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.
|
|
385
|
-
|
|
386
|
-
Even works in no-code platforms!
|
|
387
|
-
|
|
388
|
-
<div style="page-break-after: always;"></div>
|
|
360
|
+
#### Promptbook Server
|
|
389
361
|
|
|
390
|
-
|
|
362
|
+
!!!@@@
|
|
391
363
|
|
|
392
|
-
|
|
364
|
+
#### Promptbook Engine
|
|
393
365
|
|
|
394
|
-
|
|
366
|
+
!!!@@@
|
|
395
367
|
|
|
396
|
-
We have written ai asistant in book who can help you with writing your first book.
|
|
397
368
|
|
|
398
|
-
#### Your AI twin
|
|
399
369
|
|
|
400
|
-
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.
|
|
401
370
|
|
|
402
|
-
#### AI persona workpool
|
|
403
371
|
|
|
404
|
-
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.
|
|
405
372
|
|
|
406
373
|
|
|
407
374
|
|
|
408
375
|
|
|
409
376
|
|
|
410
377
|
|
|
411
|
-
## 🚀 Get started
|
|
412
|
-
|
|
413
|
-
Take a look at the simple starter kit with books integrated into the **Hello World** sample applications:
|
|
414
|
-
|
|
415
|
-
- [Hello Book](https://github.com/webgptorg/hello-world)
|
|
416
|
-
- [Hello Book in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
|
417
|
-
- [Hello Book in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
378
|
|
|
423
379
|
|
|
424
380
|
## 💜 The Promptbook Project
|
|
@@ -434,33 +390,32 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
434
390
|
</thead>
|
|
435
391
|
<tbody>
|
|
436
392
|
<tr>
|
|
437
|
-
<td><a href="https://
|
|
393
|
+
<td><a href="https://gallery.ptbk.io/">Agents Server</a></td>
|
|
438
394
|
<td>
|
|
439
|
-
|
|
440
|
-
<hr>
|
|
441
|
-
There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
|
|
395
|
+
Place where you "AI agents live". It allows to create, manage, deploy, and interact with AI agents created in Book language.
|
|
442
396
|
</td>
|
|
443
397
|
</tr>
|
|
444
398
|
<tr>
|
|
445
|
-
<td><a href="https://github.com/webgptorg/
|
|
399
|
+
<td><a href="https://github.com/webgptorg/book">Book language</a></td>
|
|
446
400
|
<td>
|
|
447
|
-
|
|
401
|
+
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.
|
|
402
|
+
<hr>
|
|
403
|
+
There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
|
|
448
404
|
</td>
|
|
449
405
|
</tr>
|
|
450
406
|
<tr>
|
|
451
|
-
<td><a href="https://promptbook
|
|
407
|
+
<td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
|
|
452
408
|
<td>
|
|
453
|
-
Promptbook
|
|
409
|
+
Promptbook engine can run AI agents based on Book language.
|
|
410
|
+
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>
|
|
411
|
+
Agent Server is based on Promptbook Engine.
|
|
454
412
|
</td>
|
|
455
413
|
</tr>
|
|
414
|
+
|
|
456
415
|
</tbody>
|
|
457
416
|
</table>
|
|
458
417
|
|
|
459
|
-
Hello world examples:
|
|
460
418
|
|
|
461
|
-
- [Hello world](https://github.com/webgptorg/hello-world)
|
|
462
|
-
- [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
|
463
|
-
- [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
|
464
419
|
|
|
465
420
|
### 🌐 Community & Social Media
|
|
466
421
|
|
|
@@ -518,6 +473,8 @@ Join our growing community of developers and users:
|
|
|
518
473
|
|
|
519
474
|
|
|
520
475
|
|
|
476
|
+
|
|
477
|
+
|
|
521
478
|
## 📚 Documentation
|
|
522
479
|
|
|
523
480
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -594,6 +551,8 @@ The following glossary is used to clarify certain concepts:
|
|
|
594
551
|
|
|
595
552
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
596
553
|
|
|
554
|
+
|
|
555
|
+
|
|
597
556
|
### 💯 Core concepts
|
|
598
557
|
|
|
599
558
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -14,7 +14,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
14
14
|
* @generated
|
|
15
15
|
* @see https://github.com/webgptorg/promptbook
|
|
16
16
|
*/
|
|
17
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.105.0-
|
|
17
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.105.0-4';
|
|
18
18
|
/**
|
|
19
19
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
20
20
|
* 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/color",
|
|
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,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"module": "./esm/index.es.js",
|
|
92
92
|
"typings": "./esm/typings/src/_packages/color.index.d.ts",
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@promptbook/core": "0.105.0-
|
|
94
|
+
"@promptbook/core": "0.105.0-4"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"spacetrim": "0.11.60"
|
package/umd/index.umd.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* @generated
|
|
19
19
|
* @see https://github.com/webgptorg/promptbook
|
|
20
20
|
*/
|
|
21
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.105.0-
|
|
21
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.105.0-4';
|
|
22
22
|
/**
|
|
23
23
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
24
24
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|