@promptbook/core 0.75.9 → 0.76.0
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 +10 -11
- package/esm/index.es.js +4 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/gemini.index.d.ts +2 -0
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/_packages/vercel.index.d.ts +2 -0
- package/esm/typings/src/formfactors/index.d.ts +1 -0
- package/esm/typings/src/formfactors/sheets/SheetsFormfactorDefinition.d.ts +1 -0
- package/esm/typings/src/types/typeAliases.d.ts +10 -0
- package/package.json +1 -1
- package/umd/index.umd.js +4 -1
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
95
95
|
<tr>
|
|
96
96
|
<td>Core</td>
|
|
97
97
|
<td>Promptbook Core is a description and documentation of the basic concepts, ideas and inner workings of how Promptbook should be implemented, and defines what features must be describable by book language.</td>
|
|
98
|
-
<td rowspan=2>https://
|
|
98
|
+
<td rowspan=2>https://github.com/webgptorg/book</td>
|
|
99
99
|
</tr>
|
|
100
100
|
<tr>
|
|
101
101
|
<td>Book language</td>
|
|
@@ -106,7 +106,7 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
106
106
|
<tr>
|
|
107
107
|
<td>Promptbook typescript project</td>
|
|
108
108
|
<td>Promptbook implementation in TypeScript released as multiple NPM packages</td>
|
|
109
|
-
<td>https://github.com/webgptorg/promptbook + Multiple packages on NPM</td>
|
|
109
|
+
<td>https://github.com/webgptorg/promptbook + <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">Multiple packages published on NPM</a></td>
|
|
110
110
|
</tr>
|
|
111
111
|
<tr>
|
|
112
112
|
<td>Promptbook studio</td>
|
|
@@ -126,6 +126,12 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
126
126
|
</tbody>
|
|
127
127
|
</table>
|
|
128
128
|
|
|
129
|
+
Also we have a community of developers and users:
|
|
130
|
+
|
|
131
|
+
- [Discord](https://discord.gg/x3QWNaa89N)
|
|
132
|
+
- [Landing page](https://ptbk.io)
|
|
133
|
+
- [Github discussions](https://github.com/webgptorg/promptbook/discussions)
|
|
134
|
+
|
|
129
135
|
|
|
130
136
|
|
|
131
137
|
## 💙 Book language _(for prompt-engineer)_
|
|
@@ -234,6 +240,8 @@ Or you can install them separately:
|
|
|
234
240
|
- **[@promptbook/execute-javascript](https://www.npmjs.com/package/@promptbook/execute-javascript)** - Execution tools for javascript inside promptbooks
|
|
235
241
|
- **[@promptbook/openai](https://www.npmjs.com/package/@promptbook/openai)** - Execution tools for OpenAI API, wrapper around OpenAI SDK
|
|
236
242
|
- **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
|
|
243
|
+
- **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
|
|
244
|
+
- **[@promptbook/gemini](https://www.npmjs.com/package/@promptbook/gemini)** - Integration with Google's Gemini API
|
|
237
245
|
- **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
|
|
238
246
|
- **[@promptbook/langtail](https://www.npmjs.com/package/@promptbook/langtail)** - Execution tools for Langtail API, wrapper around Langtail SDK
|
|
239
247
|
- **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
|
|
@@ -253,11 +261,6 @@ Or you can install them separately:
|
|
|
253
261
|
|
|
254
262
|
## 📚 Dictionary
|
|
255
263
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
264
|
### 📚 Dictionary
|
|
262
265
|
|
|
263
266
|
The following glossary is used to clarify certain concepts:
|
|
@@ -273,8 +276,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
273
276
|
- **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.
|
|
274
277
|
- **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.
|
|
275
278
|
|
|
276
|
-
|
|
277
|
-
|
|
278
279
|
_Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
279
280
|
|
|
280
281
|
#### Promptbook core
|
|
@@ -335,8 +336,6 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
|
|
|
335
336
|
- [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
|
|
336
337
|
- [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
|
|
337
338
|
|
|
338
|
-
|
|
339
|
-
|
|
340
339
|
### Terms specific to Promptbook TypeScript implementation
|
|
341
340
|
|
|
342
341
|
- Anonymous mode
|
package/esm/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
22
22
|
*
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.75.
|
|
25
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.75.10';
|
|
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
|
|
@@ -7092,6 +7092,7 @@ var MatcherFormfactorDefinition = {
|
|
|
7092
7092
|
*/
|
|
7093
7093
|
var SheetsFormfactorDefinition = {
|
|
7094
7094
|
name: 'SHEETS',
|
|
7095
|
+
aliasNames: ['SHEETS', 'SHEET'],
|
|
7095
7096
|
description: "@@@",
|
|
7096
7097
|
documentationUrl: "https://github.com/webgptorg/promptbook/discussions/176",
|
|
7097
7098
|
pipelineInterface: {
|
|
@@ -8236,6 +8237,7 @@ function parseCommandVariant(input) {
|
|
|
8236
8237
|
* @private internal base for `ScriptLanguage`
|
|
8237
8238
|
*/
|
|
8238
8239
|
var SUPPORTED_SCRIPT_LANGUAGES = ['javascript', 'typescript', 'python'];
|
|
8240
|
+
// <- TODO: [🏥] DRY
|
|
8239
8241
|
|
|
8240
8242
|
/**
|
|
8241
8243
|
* Utility function to extract all list items from markdown
|
|
@@ -8964,6 +8966,7 @@ function renderPromptbookMermaid(pipelineJson, options) {
|
|
|
8964
8966
|
var parameter = pipelineJson.parameters.find(function (parameter) { return parameter.name === parameterName; });
|
|
8965
8967
|
if (!parameter) {
|
|
8966
8968
|
throw new UnexpectedError("Could not find {".concat(parameterName, "}"));
|
|
8969
|
+
// <- TODO: !!!!!! This causes problems when {knowledge} and other reserved parameters are used
|
|
8967
8970
|
}
|
|
8968
8971
|
if (parameter.isInput) {
|
|
8969
8972
|
return 'input';
|