@promptbook/legacy-documents 0.94.0-0 → 0.94.0-1
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 +1 -6
- package/esm/index.es.js +8 -6
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/cli.index.d.ts +4 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/ollama.index.d.ts +8 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/_packages/wizzard.index.d.ts +4 -0
- package/esm/typings/src/execution/ExecutionTask.d.ts +3 -1
- package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +19 -0
- package/esm/typings/src/llm-providers/ollama/OllamaExecutionToolsOptions.d.ts +12 -0
- package/esm/typings/src/llm-providers/ollama/createOllamaExecutionTools.d.ts +11 -0
- package/esm/typings/src/llm-providers/ollama/playground/playground.d.ts +6 -0
- package/esm/typings/src/llm-providers/ollama/register-configuration.d.ts +14 -0
- package/esm/typings/src/llm-providers/ollama/register-constructor.d.ts +15 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +8 -6
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -62,8 +62,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
62
62
|
|
|
63
63
|
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**!
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
65
|
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!
|
|
68
66
|
|
|
69
67
|
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.
|
|
@@ -249,8 +247,6 @@ Personas can have access to different knowledge, tools and actions. They can als
|
|
|
249
247
|
|
|
250
248
|
- [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
|
|
251
249
|
|
|
252
|
-
|
|
253
|
-
|
|
254
250
|
### **3. How:** Knowledge, Instruments and Actions
|
|
255
251
|
|
|
256
252
|
The resources used by the personas are used to do the work.
|
|
@@ -311,6 +307,7 @@ Or you can install them separately:
|
|
|
311
307
|
- **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
|
|
312
308
|
- **[@promptbook/google](https://www.npmjs.com/package/@promptbook/google)** - Integration with Google's Gemini API
|
|
313
309
|
- **[@promptbook/deepseek](https://www.npmjs.com/package/@promptbook/deepseek)** - Integration with [DeepSeek API](https://www.deepseek.com/)
|
|
310
|
+
- **[@promptbook/ollama](https://www.npmjs.com/package/@promptbook/ollama)** - Integration with [Ollama](https://ollama.com/) API
|
|
314
311
|
- **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
|
|
315
312
|
|
|
316
313
|
- **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
|
|
@@ -349,8 +346,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
349
346
|
|
|
350
347
|
_Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
351
348
|
|
|
352
|
-
|
|
353
|
-
|
|
354
349
|
### 💯 Core concepts
|
|
355
350
|
|
|
356
351
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.94.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.94.0-1';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -5684,11 +5684,6 @@ async function executeTask(options) {
|
|
|
5684
5684
|
const jokerParameterNames = currentTask.jokerParameterNames || [];
|
|
5685
5685
|
const preparedContent = (currentTask.preparedContent || '{content}').split('{content}').join(currentTask.content);
|
|
5686
5686
|
// <- TODO: [🍵] Use here `templateParameters` to replace {websiteContent} with option to ignore missing parameters
|
|
5687
|
-
await onProgress({
|
|
5688
|
-
outputParameters: {
|
|
5689
|
-
[currentTask.resultingParameterName]: '',
|
|
5690
|
-
},
|
|
5691
|
-
});
|
|
5692
5687
|
const resultString = await executeFormatSubvalues({
|
|
5693
5688
|
jokerParameterNames,
|
|
5694
5689
|
priority,
|
|
@@ -5787,6 +5782,13 @@ async function executePipeline(options) {
|
|
|
5787
5782
|
* Note: This is a flag to prevent `onProgress` call after the pipeline execution is finished
|
|
5788
5783
|
*/
|
|
5789
5784
|
let isReturned = false;
|
|
5785
|
+
// Note: Report all output parameters upfront as empty strings
|
|
5786
|
+
if (onProgress) {
|
|
5787
|
+
const emptyOutputParameters = Object.fromEntries(preparedPipeline.parameters.filter((param) => !param.isInput).map((param) => [param.name, '']));
|
|
5788
|
+
onProgress({
|
|
5789
|
+
outputParameters: emptyOutputParameters,
|
|
5790
|
+
});
|
|
5791
|
+
}
|
|
5790
5792
|
// Note: Check that all input input parameters are defined
|
|
5791
5793
|
for (const parameter of preparedPipeline.parameters.filter(({ isInput }) => isInput)) {
|
|
5792
5794
|
if (inputParameters[parameter.name] === undefined) {
|