@promptbook/deepseek 0.88.0-8 → 0.88.0-9

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
@@ -57,8 +57,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
57
57
 
58
58
  During the computer revolution, we have seen [multiple generations of computer languages](https://github.com/webgptorg/promptbook/discussions/180), from the physical rewiring of the vacuum tubes through low-level machine code to the high-level languages like Python or JavaScript. And now, we're on the edge of the **next revolution**!
59
59
 
60
-
61
-
62
60
  It's a revolution of writing software in **plain human language** that is understandable and executable by both humans and machines – and it's going to change everything!
63
61
 
64
62
  The incredible growth in power of microprocessors and the Moore's Law have been the driving force behind the ever-more powerful languages, and it's been an amazing journey! Similarly, the large language models (like GPT or Claude) are the next big thing in language technology, and they're set to transform the way we interact with computers.
@@ -121,21 +119,16 @@ We also have a community of developers and users of **Promptbook**:
121
119
  - [Landing page `ptbk.io`](https://ptbk.io)
122
120
  - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
123
121
  - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
124
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
122
+ - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
125
123
 
126
124
  And **Promptbook.studio** branded socials:
127
125
 
128
-
129
-
130
126
  - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
131
127
 
132
128
  And **Promptujeme** sub-brand:
133
129
 
134
130
  _/Subbrand for Czech clients/_
135
131
 
136
-
137
-
138
-
139
132
  - [Promptujeme.cz](https://www.promptujeme.cz/)
140
133
  - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
141
134
 
@@ -153,8 +146,6 @@ _/Sub-brand for images and graphics generated via Promptbook prompting/_
153
146
 
154
147
  ## 💙 The Book language
155
148
 
156
-
157
-
158
149
  Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
159
150
 
160
151
  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.
@@ -204,8 +195,6 @@ Personas can have access to different knowledge, tools and actions. They can als
204
195
 
205
196
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
206
197
 
207
-
208
-
209
198
  ### **How:** Knowledge, Instruments and Actions
210
199
 
211
200
  The resources used by the personas are used to do the work.
@@ -281,11 +270,6 @@ Or you can install them separately:
281
270
 
282
271
  ## 📚 Dictionary
283
272
 
284
-
285
-
286
-
287
-
288
-
289
273
  ### 📚 Dictionary
290
274
 
291
275
  The following glossary is used to clarify certain concepts:
@@ -301,12 +285,8 @@ The following glossary is used to clarify certain concepts:
301
285
  - **Retrieval-augmented generation** is a machine learning paradigm where a model generates text by retrieving relevant information from a large database of text. This approach combines the benefits of generative models and retrieval models.
302
286
  - **Longtail** refers to non-common or rare events, items, or entities that are not well-represented in the training data of machine learning models. Longtail items are often challenging for models to predict accurately.
303
287
 
304
-
305
-
306
288
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
307
289
 
308
-
309
-
310
290
  #### 💯 Core concepts
311
291
 
312
292
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
@@ -335,8 +315,6 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
335
315
  - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
336
316
  - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
337
317
 
338
-
339
-
340
318
  ### Terms specific to Promptbook TypeScript implementation
341
319
 
342
320
  - Anonymous mode
@@ -344,10 +322,9 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
344
322
 
345
323
 
346
324
 
347
- ## 🔌 Usage in Typescript / Javascript
325
+ ## 🚂 Promptbook Engine
348
326
 
349
- - [Simple usage](./examples/usage/simple-script)
350
- - [Usage with client and remote server](./examples/usage/remote)
327
+ ![Schema of Promptbook Engine](./documents/promptbook-engine.svg)
351
328
 
352
329
  ## ➕➖ When to use Promptbook?
353
330
 
package/esm/index.es.js CHANGED
@@ -15,7 +15,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
15
15
  * @generated
16
16
  * @see https://github.com/webgptorg/promptbook
17
17
  */
18
- const PROMPTBOOK_ENGINE_VERSION = '0.88.0-8';
18
+ const PROMPTBOOK_ENGINE_VERSION = '0.88.0-9';
19
19
  /**
20
20
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
21
21
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -62,6 +62,7 @@ import { clonePipeline } from '../utils/serialization/clonePipeline';
62
62
  import { deepClone } from '../utils/serialization/deepClone';
63
63
  import { exportJson } from '../utils/serialization/exportJson';
64
64
  import { isSerializableAsJson } from '../utils/serialization/isSerializableAsJson';
65
+ import { jsonStringsToJsons } from '../utils/serialization/jsonStringsToJsons';
65
66
  import { difference } from '../utils/sets/difference';
66
67
  import { intersection } from '../utils/sets/intersection';
67
68
  import { union } from '../utils/sets/union';
@@ -143,6 +144,7 @@ export { clonePipeline };
143
144
  export { deepClone };
144
145
  export { exportJson };
145
146
  export { isSerializableAsJson };
147
+ export { jsonStringsToJsons };
146
148
  export { difference };
147
149
  export { intersection };
148
150
  export { union };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Recursively converts JSON strings to JSON objects
3
+
4
+ * @public exported from `@promptbook/utils`
5
+ */
6
+ export declare function jsonStringsToJsons<T>(object: T): T;
7
+ /**
8
+ * TODO: Type the return type correctly
9
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/deepseek",
3
- "version": "0.88.0-8",
3
+ "version": "0.88.0-9",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -47,7 +47,7 @@
47
47
  "module": "./esm/index.es.js",
48
48
  "typings": "./esm/typings/src/_packages/deepseek.index.d.ts",
49
49
  "peerDependencies": {
50
- "@promptbook/core": "0.88.0-8"
50
+ "@promptbook/core": "0.88.0-9"
51
51
  },
52
52
  "dependencies": {
53
53
  "@ai-sdk/deepseek": "^0.1.6",
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.88.0-8';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.88.0-9';
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