@promptbook/deepseek 0.112.0-16 → 0.112.0-17

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ✨ Promptbook: AI Agents
4
4
 
5
- Turn your company's scattered knowledge into AI ready Books
5
+ Create persistent AI agents that turn your company's scattered knowledge into action powered by the [Agents Server](https://gallery.ptbk.io/)
6
6
 
7
7
 
8
8
 
@@ -57,11 +57,13 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
57
57
 
58
58
  ## 📖 The Book Whitepaper
59
59
 
60
+ Promptbook lets you create **persistent AI agents** that work on real goals for your company. The [**Agents Server**](https://gallery.ptbk.io/) is the heart of the project — a place where your AI agents live, remember context, collaborate in teams, and get things done.
61
+
60
62
  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.
61
63
 
62
64
  The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
63
65
 
64
- In Promptbook, you can define your context **using simple Books** that are very explicit, easy to understand and write, reliable, and highly portable.
66
+ In Promptbook, you define your agents **using simple Books** — a human-readable language that is explicit, easy to understand and write, reliable, and highly portable. You then deploy them to the **Agents Server**, where they run persistently and work toward their goals.
65
67
 
66
68
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
67
69
 
@@ -69,8 +71,13 @@ In Promptbook, you can define your context **using simple Books** that are very
69
71
  <br/>
70
72
  **PERSONA** You are a company lawyer.<br/>
71
73
  Your job is to provide legal advice and support to the company and its employees.<br/>
74
+ **GOAL** Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
72
75
  **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
73
- 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/>
76
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
77
+ **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
78
+ **USE EMAIL**<br/>
79
+ **USE BROWSER**<br/>
80
+ **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/>
74
81
 
75
82
  </td></tr></table>
76
83
 
@@ -93,6 +100,22 @@ Personas define the character of your AI persona, its role, and how it should in
93
100
  **<ins>Paul Smith & Associés</ins>**<br/>
94
101
  <br/>
95
102
  **PERSONA** You are a company lawyer.<br/>
103
+ Your job is to provide legal advice and support to the company and its employees.<br/>
104
+
105
+ </td></tr></table>
106
+
107
+ #### `Goal` commitment
108
+
109
+ Goals define what the agent should actively work toward. Unlike a chatbot that only responds when asked, an agent with goals takes initiative and works on tasks persistently on the Agents Server.
110
+
111
+ <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
112
+
113
+ **<ins>Paul Smith & Associés</ins>**<br/>
114
+ <br/>
115
+ **PERSONA** You are a company lawyer.<br/>
116
+ Your job is to provide legal advice and support to the company and its employees.<br/>
117
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
118
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
96
119
 
97
120
  </td></tr></table>
98
121
 
@@ -110,9 +133,9 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
110
133
  <br/>
111
134
  **PERSONA** You are a company lawyer.<br/>
112
135
  Your job is to provide legal advice and support to the company and its employees.<br/>
113
- You are knowledgeable, professional, and detail-oriented.<br/>
114
- <br/>
115
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
136
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
137
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
138
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
116
139
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
117
140
 
118
141
  </td></tr></table>
@@ -129,13 +152,38 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
129
152
  <br/>
130
153
  **PERSONA** You are a company lawyer.<br/>
131
154
  Your job is to provide legal advice and support to the company and its employees.<br/>
132
- You are knowledgeable, professional, and detail-oriented.<br/>
155
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
156
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
157
+ **RULE** Always ensure compliance with local laws and regulations.<br/>
158
+ **RULE** Never provide legal advice outside your area of expertise.<br/>
159
+ **RULE** Never provide legal advice about criminal law.<br/>
160
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
161
+ **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
162
+
163
+ </td></tr></table>
164
+
165
+ #### `Use` commitments
166
+
167
+ Use commitments grant the agent real capabilities — tools it can use to interact with the outside world. `USE EMAIL` lets the agent send emails, `USE BROWSER` lets it access and read web content, `USE SEARCH ENGINE` lets it search the web, and many more.
168
+
169
+ These are what turn a chatbot into a persistent agent that actually does work.
170
+
171
+ <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
172
+
173
+ **<ins>Paul Smith & Associés</ins>**<br/>
133
174
  <br/>
134
- **RULE** Always ensure compliance with laws and regulations.<br/>
175
+ **PERSONA** You are a company lawyer.<br/>
176
+ Your job is to provide legal advice and support to the company and its employees.<br/>
177
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
178
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
179
+ **RULE** Always ensure compliance with local laws and regulations.<br/>
135
180
  **RULE** Never provide legal advice outside your area of expertise.<br/>
136
181
  **RULE** Never provide legal advice about criminal law.<br/>
137
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
182
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
138
183
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
184
+ **USE EMAIL**<br/>
185
+ **USE BROWSER**<br/>
186
+ **USE SEARCH ENGINE**<br/>
139
187
 
140
188
  </td></tr></table>
141
189
 
@@ -149,32 +197,31 @@ Team commitment allows you to define the team structure and advisory fellow memb
149
197
  <br/>
150
198
  **PERSONA** You are a company lawyer.<br/>
151
199
  Your job is to provide legal advice and support to the company and its employees.<br/>
152
- You are knowledgeable, professional, and detail-oriented.<br/>
153
- <br/>
154
- **RULE** Always ensure compliance with laws and regulations.<br/>
200
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
201
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
202
+ **RULE** Always ensure compliance with local laws and regulations.<br/>
155
203
  **RULE** Never provide legal advice outside your area of expertise.<br/>
156
204
  **RULE** Never provide legal advice about criminal law.<br/>
157
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
205
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
158
206
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
159
- 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/>
207
+ **USE EMAIL**<br/>
208
+ **USE BROWSER**<br/>
209
+ **USE SEARCH ENGINE**<br/>
210
+ **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/>
160
211
 
161
212
  </td></tr></table>
162
213
 
163
-
164
-
165
214
  ### Promptbook Ecosystem
166
215
 
167
- !!!@@@
216
+ Promptbook is an ecosystem of tools centered around the **Agents Server** — a production-ready platform for running persistent AI agents.
168
217
 
169
- #### Promptbook Server
218
+ #### Agents Server
170
219
 
171
- !!!@@@
220
+ The [**Agents Server**](https://gallery.ptbk.io/) is the primary way to use Promptbook. It is a web application where your AI agents live and work. You can create agents, give them knowledge and rules using the Book language, organize them into teams, and let them work on goals persistently. The Agents Server provides a UI for managing agents, an API for integrating them into your applications, and can be self-hosted via [Docker](https://hub.docker.com/r/hejny/promptbook/) or deployed on Vercel.
172
221
 
173
222
  #### Promptbook Engine
174
223
 
175
- !!!@@@
176
-
177
-
224
+ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-source core that powers everything. It parses the Book language, applies commitments, manages LLM provider integrations, and executes agents. The Agents Server is built on top of the Engine. If you need to embed agent capabilities directly into your own application, you can use the Engine as a standalone TypeScript/JavaScript library via [NPM packages](https://www.npmjs.com/package/@promptbook/core).
178
225
 
179
226
 
180
227
 
@@ -188,7 +235,7 @@ TEAM You are part of the legal team of Paul Smith & Associés, you discuss with
188
235
 
189
236
  ## 💜 The Promptbook Project
190
237
 
191
- Promptbook project is ecosystem of multiple projects and tools, following is a list of most important pieces of the project:
238
+ Promptbook project is an ecosystem centered around the **Agents Server** — a platform for creating, deploying, and running persistent AI agents. Following is a list of the most important pieces of the project:
192
239
 
193
240
  <table>
194
241
  <thead>
@@ -199,9 +246,9 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
199
246
  </thead>
200
247
  <tbody>
201
248
  <tr>
202
- <td><a href="https://gallery.ptbk.io/">Agents Server</a></td>
249
+ <td><a href="https://gallery.ptbk.io/"><strong>⭐ Agents Server</strong></a></td>
203
250
  <td>
204
- Place where you "AI agents live". It allows to create, manage, deploy, and interact with AI agents created in Book language.
251
+ The primary way to use Promptbook. A production-ready platform where your AI agents live create, manage, deploy, and interact with persistent agents that work on goals. Available as a hosted service or <a href="https://hub.docker.com/r/hejny/promptbook/">self-hosted via Docker</a>.
205
252
  </td>
206
253
  </tr>
207
254
  <tr>
@@ -215,17 +262,14 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
215
262
  <tr>
216
263
  <td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
217
264
  <td>
218
- Promptbook engine can run AI agents based on Book language.
219
- 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>
220
- Agent Server is based on Promptbook Engine.
265
+ The open-source core that powers the Agents Server. Can also be used as a standalone TypeScript/JavaScript library to embed agent capabilities into your own applications.
266
+ Released as <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">multiple NPM packages</a>.
221
267
  </td>
222
268
  </tr>
223
269
 
224
270
  </tbody>
225
271
  </table>
226
272
 
227
-
228
-
229
273
  ### 🌐 Community & Social Media
230
274
 
231
275
  Join our growing community of developers and users:
@@ -282,8 +326,6 @@ Join our growing community of developers and users:
282
326
 
283
327
 
284
328
 
285
-
286
-
287
329
  ## 📚 Documentation
288
330
 
289
331
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -292,9 +334,16 @@ See detailed guides and API reference in the [docs](https://github.com/webgptorg
292
334
 
293
335
  For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
294
336
 
295
- ## 📦 Packages _(for developers)_
337
+ ## 📦 Deployment & Packages
338
+
339
+ The fastest way to get started is with the **Agents Server**:
296
340
 
297
- This library is divided into several packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
341
+ - 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** — Self-host the Agents Server with full control over your data
342
+ - ☁️ **[Hosted Agents Server](https://gallery.ptbk.io/)** — Start creating agents immediately, no setup required
343
+
344
+ ### NPM Packages _(for developers embedding the Engine)_
345
+
346
+ If you want to embed the Promptbook Engine directly into your application, the library is divided into several packages published from a [single monorepo](https://github.com/webgptorg/promptbook).
298
347
  You can install all of them at once:
299
348
 
300
349
  ```bash
@@ -313,7 +362,6 @@ Or you can install them separately:
313
362
  - **[@promptbook/browser](https://www.npmjs.com/package/@promptbook/browser)** - Core of the library for browser environment
314
363
  - ⭐ **[@promptbook/utils](https://www.npmjs.com/package/@promptbook/utils)** - Utility functions used in the library but also useful for individual use in preprocessing and postprocessing LLM inputs and outputs
315
364
  - **[@promptbook/markdown-utils](https://www.npmjs.com/package/@promptbook/markdown-utils)** - Utility functions used for processing markdown
316
- - _(Not finished)_ **[@promptbook/wizard](https://www.npmjs.com/package/@promptbook/wizard)** - Wizard for creating+running promptbooks in single line
317
365
  - **[@promptbook/javascript](https://www.npmjs.com/package/@promptbook/javascript)** - Execution tools for javascript inside promptbooks
318
366
  - **[@promptbook/openai](https://www.npmjs.com/package/@promptbook/openai)** - Execution tools for OpenAI API, wrapper around OpenAI SDK
319
367
  - **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
@@ -335,8 +383,7 @@ Or you can install them separately:
335
383
  - **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Useful templates and examples of books which can be used as a starting point
336
384
  - **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library
337
385
  - **[@promptbook/color](https://www.npmjs.com/package/@promptbook/color)** - Color manipulation library
338
- - **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
339
- - 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** - Promptbook server
386
+ - **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
340
387
 
341
388
 
342
389
 
@@ -360,8 +407,6 @@ The following glossary is used to clarify certain concepts:
360
407
 
361
408
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
362
409
 
363
-
364
-
365
410
  ### 💯 Core concepts
366
411
 
367
412
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
@@ -423,31 +468,42 @@ _Note: This section is not a complete dictionary, more list of general AI / LLM
423
468
 
424
469
 
425
470
 
471
+ ## � Agents Server
472
+
473
+ The **[Agents Server](https://gallery.ptbk.io/)** is the primary way to use Promptbook. It is a production-ready platform where you create, deploy, and manage persistent AI agents that work toward goals. Agents remember context across conversations, collaborate in teams, and follow the rules and knowledge you define in the Book language.
474
+
475
+ - **Hosted** at [gallery.ptbk.io](https://gallery.ptbk.io/) — start creating agents immediately
476
+ - **Self-hosted** via [Docker](https://hub.docker.com/r/hejny/promptbook/) — full control over your data and infrastructure
477
+ - **API** for integrating agents into your own applications
478
+
426
479
  ## 🚂 Promptbook Engine
427
480
 
481
+ The Engine is the open-source core that powers the Agents Server. If you need to embed agent capabilities directly into your TypeScript/JavaScript application, you can use it as a standalone library.
482
+
428
483
  ![Schema of Promptbook Engine](./documents/promptbook-engine.svg)
429
484
 
430
485
  ## ➕➖ When to use Promptbook?
431
486
 
432
487
  ### ➕ When to use
433
488
 
434
- - When you are writing app that generates complex things via LLM - like **websites, articles, presentations, code, stories, songs**,...
435
- - When you want to **separate code from text prompts**
436
- - When you want to describe **complex prompt pipelines** and don't want to do it in the code
437
- - When you want to **orchestrate multiple prompts** together
438
- - When you want to **reuse** parts of prompts in multiple places
439
- - When you want to **version** your prompts and **test multiple versions**
440
- - When you want to **log** the execution of prompts and backtrace the issues
489
+ - When you want to **deploy persistent AI agents** that work on goals for your company
490
+ - When you need agents with **specific personalities, knowledge, and rules** tailored to your business
491
+ - When you want agents that **collaborate in teams** and consult each other
492
+ - When you need to **integrate AI agents into your existing applications** via API
493
+ - When you want to **self-host** your AI agents with full control over data and infrastructure
494
+ - When you are writing an app that generates complex things via LLM — like **websites, articles, presentations, code, stories, songs**,...
495
+ - When you want to **version** your agent definitions and **test multiple versions**
496
+ - When you want to **log** agent execution and backtrace issues
441
497
 
442
498
  [See more](https://github.com/webgptorg/promptbook/discussions/111)
443
499
 
444
500
  ### ➖ When not to use
445
501
 
446
- - When you have already implemented single simple prompt and it works fine for your job
502
+ - When a single simple prompt already works fine for your job
447
503
  - When [OpenAI Assistant (GPTs)](https://help.openai.com/en/articles/8673914-gpts-vs-assistants) is enough for you
448
- - When you need streaming _(this may be implemented in the future, [see discussion](https://github.com/webgptorg/promptbook/discussions/102))_.
504
+ - When you need streaming _(this may be implemented in the future, [see discussion](https://github.com/webgptorg/promptbook/discussions/102))_
449
505
  - When you need to use something other than JavaScript or TypeScript _(other languages are on the way, [see the discussion](https://github.com/webgptorg/promptbook/discussions/101))_
450
- - When your main focus is on something other than text - like images, audio, video, spreadsheets _(other media types may be added in the future, [see discussion](https://github.com/webgptorg/promptbook/discussions/103))_
506
+ - When your main focus is on something other than text like images, audio, video, spreadsheets _(other media types may be added in the future, [see discussion](https://github.com/webgptorg/promptbook/discussions/103))_
451
507
  - When you need to use recursion _([see the discussion](https://github.com/webgptorg/promptbook/discussions/38))_
452
508
 
453
509
  [See more](https://github.com/webgptorg/promptbook/discussions/112)
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.112.0-16';
19
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-17';
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.112.0-15`).
18
+ * It follows semantic versioning (e.g., `0.112.0-16`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/deepseek",
3
- "version": "0.112.0-16",
3
+ "version": "0.112.0-17",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -95,7 +95,7 @@
95
95
  "module": "./esm/index.es.js",
96
96
  "typings": "./esm/typings/src/_packages/deepseek.index.d.ts",
97
97
  "peerDependencies": {
98
- "@promptbook/core": "0.112.0-16"
98
+ "@promptbook/core": "0.112.0-17"
99
99
  },
100
100
  "dependencies": {
101
101
  "@ai-sdk/deepseek": "0.1.17",
package/umd/index.umd.js CHANGED
@@ -22,7 +22,7 @@
22
22
  * @generated
23
23
  * @see https://github.com/webgptorg/promptbook
24
24
  */
25
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-16';
25
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-17';
26
26
  /**
27
27
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
28
28
  * 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.112.0-15`).
18
+ * It follows semantic versioning (e.g., `0.112.0-16`).
19
19
  *
20
20
  * @generated
21
21
  */