@promptbook/anthropic-claude 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 CHANGED
@@ -305,19 +305,20 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
305
305
 
306
306
  ## 📖 The Book Whitepaper
307
307
 
308
- For most business applications nowadays, the biggest challenge isn't about the raw capabilities of AI models. Large language models like GPT-5 or Claude-4.1 are extremely capable.
308
+ 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.
309
309
 
310
- The main challenge is to narrow it down, constrain it, set the proper **context, rules, knowledge, and personality**. There are a lot of tools which can do exactly this. On one side, there are no-code platforms which can launch your agent in seconds. On the other side, there are heavy frameworks like Langchain or Semantic Kernel, which can give you deep control.
310
+ The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
311
311
 
312
- Promptbook takes the best from both worlds. You are defining your AI behavior by simple **books**, which are very explicit. They are automatically enforced, but they are very easy to understand, very easy to write, and very reliable and portable.
312
+ In Promptbook, you can define your context **using simple Books** that are very explicit, easy to understand and write, reliable, and highly portable.
313
313
 
314
314
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
315
315
 
316
- **<ins>Paul Smith & Associés</ins>**<br/>
316
+ **<ins>Paul Smith</ins>**<br/>
317
317
  <br/>
318
318
  **PERSONA** You are a company lawyer.<br/>
319
319
  Your job is to provide legal advice and support to the company and its employees.<br/>
320
- You are knowledgeable, professional, and detail-oriented.<br/>
320
+ **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
321
+ 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/>
321
322
 
322
323
  </td></tr></table>
323
324
 
@@ -327,7 +328,9 @@ You are knowledgeable, professional, and detail-oriented.<br/>
327
328
 
328
329
  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.
329
330
 
330
- You can look at it as prompting (or writing a system message), but decorated by **commitments**.
331
+ You can look at it as "prompting" _(or writing a system message)_, but decorated by **commitments**.
332
+
333
+ **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.
331
334
 
332
335
  #### `Persona` commitment
333
336
 
@@ -338,8 +341,6 @@ Personas define the character of your AI persona, its role, and how it should in
338
341
  **<ins>Paul Smith & Associés</ins>**<br/>
339
342
  <br/>
340
343
  **PERSONA** You are a company lawyer.<br/>
341
- Your job is to provide legal advice and support to the company and its employees.<br/>
342
- You are knowledgeable, professional, and detail-oriented.<br/>
343
344
 
344
345
  </td></tr></table>
345
346
 
@@ -359,7 +360,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
359
360
  Your job is to provide legal advice and support to the company and its employees.<br/>
360
361
  You are knowledgeable, professional, and detail-oriented.<br/>
361
362
  <br/>
362
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
363
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
363
364
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
364
365
 
365
366
  </td></tr></table>
@@ -381,14 +382,14 @@ You are knowledgeable, professional, and detail-oriented.<br/>
381
382
  **RULE** Always ensure compliance with laws and regulations.<br/>
382
383
  **RULE** Never provide legal advice outside your area of expertise.<br/>
383
384
  **RULE** Never provide legal advice about criminal law.<br/>
384
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
385
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
385
386
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
386
387
 
387
388
  </td></tr></table>
388
389
 
389
- #### `Action` commitment
390
+ #### `Team` commitment
390
391
 
391
- Action Commitment allows you to define specific actions that the AI can take during interactions. This can include things like posting on a social media platform, sending emails, creating calendar events, or interacting with your internal systems.
392
+ 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.
392
393
 
393
394
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
394
395
 
@@ -401,81 +402,36 @@ You are knowledgeable, professional, and detail-oriented.<br/>
401
402
  **RULE** Always ensure compliance with laws and regulations.<br/>
402
403
  **RULE** Never provide legal advice outside your area of expertise.<br/>
403
404
  **RULE** Never provide legal advice about criminal law.<br/>
404
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
405
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
405
406
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
406
- **ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
407
+ 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/>
407
408
 
408
409
  </td></tr></table>
409
410
 
410
- [Read more about the language](./BLUEPRINT.md)
411
-
412
- <div style="page-break-after: always;"></div>
413
-
414
- ### Where to use your AI agent in book
415
-
416
- Books can be useful in various applications and scenarios. Here are some examples:
417
-
418
- #### Chat apps:
419
411
 
420
- Create your own chat shopping assistant and place it in your eShop.
421
- 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.
422
412
 
423
- #### Reply Agent:
413
+ ### Promptbook Ecosystem
424
414
 
425
- Create your own AI agent, which will look at your emails and reply to them. It can even create drafts for you to review before sending.
415
+ !!!@@@
426
416
 
427
- #### Coding Agent:
428
-
429
- 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.
430
-
431
- This can be integrated to almost any Vibecoding platform, like GitHub Copilot, Amazon CodeWhisperer, Cursor, Cline, Kilocode, Roocode,...
432
-
433
- They will work the same as you are used to, but with your specific rules written in book.
434
-
435
- #### Internal Expertise
436
-
437
- Do you have an app written in TypeScript, Python, C#, Java, or any other language, and you are integrating the AI.
438
-
439
- 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.
440
-
441
- 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.
442
-
443
- Even works in no-code platforms!
444
-
445
- <div style="page-break-after: always;"></div>
417
+ #### Promptbook Server
446
418
 
447
- ### How to create your AI agent in book
419
+ !!!@@@
448
420
 
449
- Now you want to use it. There are several ways how to write your first book:
421
+ #### Promptbook Engine
450
422
 
451
- #### From scratch with help from Paul
423
+ !!!@@@
452
424
 
453
- We have written ai asistant in book who can help you with writing your first book.
454
425
 
455
- #### Your AI twin
456
426
 
457
- 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.
458
427
 
459
- #### AI persona workpool
460
428
 
461
- 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.
462
429
 
463
430
 
464
431
 
465
432
 
466
433
 
467
434
 
468
- ## 🚀 Get started
469
-
470
- Take a look at the simple starter kit with books integrated into the **Hello World** sample applications:
471
-
472
- - [Hello Book](https://github.com/webgptorg/hello-world)
473
- - [Hello Book in Node.js](https://github.com/webgptorg/hello-world-node-js)
474
- - [Hello Book in Next.js](https://github.com/webgptorg/hello-world-next-js)
475
-
476
-
477
-
478
-
479
435
 
480
436
 
481
437
  ## 💜 The Promptbook Project
@@ -491,33 +447,32 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
491
447
  </thead>
492
448
  <tbody>
493
449
  <tr>
494
- <td><a href="https://github.com/webgptorg/book">Book language</a></td>
450
+ <td><a href="https://gallery.ptbk.io/">Agents Server</a></td>
495
451
  <td>
496
- Book is a human-understandable markup language for writing AI applications such as chatbots, knowledge bases, agents, avarars, translators, automations and more.
497
- <hr>
498
- There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
452
+ Place where you "AI agents live". It allows to create, manage, deploy, and interact with AI agents created in Book language.
499
453
  </td>
500
454
  </tr>
501
455
  <tr>
502
- <td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
456
+ <td><a href="https://github.com/webgptorg/book">Book language</a></td>
503
457
  <td>
504
- Promptbook engine can run applications written in Book language. 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">Docker HUB</a>
458
+ 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.
459
+ <hr>
460
+ There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
505
461
  </td>
506
462
  </tr>
507
463
  <tr>
508
- <td><a href="https://promptbook.studio">Promptbook Studio</a></td>
464
+ <td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
509
465
  <td>
510
- Promptbook.studio is a web-based editor and runner for book applications. It is still in the experimental MVP stage.
466
+ Promptbook engine can run AI agents based on Book language.
467
+ 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>
468
+ Agent Server is based on Promptbook Engine.
511
469
  </td>
512
470
  </tr>
471
+
513
472
  </tbody>
514
473
  </table>
515
474
 
516
- Hello world examples:
517
475
 
518
- - [Hello world](https://github.com/webgptorg/hello-world)
519
- - [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
520
- - [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
521
476
 
522
477
  ### 🌐 Community & Social Media
523
478
 
@@ -575,6 +530,8 @@ Join our growing community of developers and users:
575
530
 
576
531
 
577
532
 
533
+
534
+
578
535
  ## 📚 Documentation
579
536
 
580
537
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -651,6 +608,8 @@ The following glossary is used to clarify certain concepts:
651
608
 
652
609
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
653
610
 
611
+
612
+
654
613
  ### 💯 Core concepts
655
614
 
656
615
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -19,7 +19,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
19
19
  * @generated
20
20
  * @see https://github.com/webgptorg/promptbook
21
21
  */
22
- const PROMPTBOOK_ENGINE_VERSION = '0.105.0-3';
22
+ const PROMPTBOOK_ENGINE_VERSION = '0.105.0-4';
23
23
  /**
24
24
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
25
25
  * 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-2`).
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/anthropic-claude",
3
- "version": "0.105.0-3",
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,
@@ -97,7 +97,7 @@
97
97
  "module": "./esm/index.es.js",
98
98
  "typings": "./esm/typings/src/_packages/anthropic-claude.index.d.ts",
99
99
  "peerDependencies": {
100
- "@promptbook/core": "0.105.0-3"
100
+ "@promptbook/core": "0.105.0-4"
101
101
  },
102
102
  "dependencies": {
103
103
  "@anthropic-ai/sdk": "0.68.0",
package/umd/index.umd.js CHANGED
@@ -25,7 +25,7 @@
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.105.0-3';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.105.0-4';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name