@promptbook/components 0.100.0-49 → 0.100.0-64
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 +6 -11
- package/esm/index.es.js +160 -458
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +7 -7
- package/esm/typings/src/_packages/types.index.d.ts +5 -17
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -6
- package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/_misc/createAgentModelRequirements.d.ts +2 -1
- package/esm/typings/src/book-2.0/commitments/_misc/createAgentModelRequirementsWithCommitments.d.ts +3 -2
- package/esm/typings/src/book-2.0/commitments/index.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +3 -113
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +110 -0
- package/esm/typings/src/book-components/Chat/LlmChat/LlmChat.d.ts +4 -98
- package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +24 -0
- package/esm/typings/src/book-components/Chat/utils/ChatPersistence.d.ts +25 -0
- package/esm/typings/src/book-components/Chat/utils/exportChatHistory.d.ts +2 -2
- package/esm/typings/src/book-components/Chat/utils/generatePdfContent.d.ts +2 -2
- package/esm/typings/src/book-components/Chat/utils/messagesToHtml.d.ts +2 -2
- package/esm/typings/src/book-components/Chat/utils/messagesToJson.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/utils/messagesToMarkdown.d.ts +2 -2
- package/esm/typings/src/book-components/Chat/utils/messagesToText.d.ts +2 -2
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +8 -0
- package/esm/typings/src/llm-providers/_common/filterModels.d.ts +0 -3
- package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +81 -0
- package/esm/typings/src/llm-providers/_common/profiles/test/llmProviderProfiles.test.d.ts +1 -0
- package/esm/typings/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +5 -0
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +5 -0
- package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +5 -0
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +5 -0
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +5 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +160 -458
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/FrontendRAGService.d.ts +0 -48
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/RAGService.d.ts +0 -54
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/processors/BaseKnowledgeProcessor.d.ts +0 -45
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/processors/PdfProcessor.d.ts +0 -31
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/processors/ProcessorFactory.d.ts +0 -23
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/processors/TextProcessor.d.ts +0 -18
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/types.d.ts +0 -56
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/utils/ragHelper.d.ts +0 -34
- /package/esm/typings/src/book-components/Chat/{interfaces → types}/ChatMessage.d.ts +0 -0
- /package/esm/typings/src/book-components/Chat/{interfaces → types}/ChatParticipant.d.ts +0 -0
package/README.md
CHANGED
|
@@ -10,8 +10,11 @@ Write AI applications using plain human language across multiple models and plat
|
|
|
10
10
|
[ Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
|
|
11
11
|
[ Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
|
|
12
12
|
[](https://snyk.io/test/github/webgptorg/promptbook)
|
|
13
|
-
[](https://github.com/webgptorg/promptbook/actions/workflows/test-books.yml)
|
|
14
|
+
[](https://github.com/webgptorg/promptbook/actions/workflows/test-build.yml)
|
|
15
|
+
[](https://github.com/webgptorg/promptbook/actions/workflows/test-lint.yml)
|
|
16
|
+
[](https://github.com/webgptorg/promptbook/actions/workflows/test-spell-check.yml)
|
|
17
|
+
[](https://github.com/webgptorg/promptbook/actions/workflows/test-types.yml)
|
|
15
18
|
[](https://github.com/webgptorg/promptbook/issues)
|
|
16
19
|
|
|
17
20
|
|
|
@@ -151,8 +154,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
151
154
|
|
|
152
155
|
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**!
|
|
153
156
|
|
|
154
|
-
|
|
155
|
-
|
|
156
157
|
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!
|
|
157
158
|
|
|
158
159
|
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.
|
|
@@ -278,8 +279,6 @@ Join our growing community of developers and users:
|
|
|
278
279
|
|
|
279
280
|
_A concise, Markdown-based DSL for crafting AI workflows and automations._
|
|
280
281
|
|
|
281
|
-
|
|
282
|
-
|
|
283
282
|
### Introduction
|
|
284
283
|
|
|
285
284
|
Book is a Markdown-based language that simplifies the creation of AI applications, workflows, and automations. With human-readable commands, you can define inputs, outputs, personas, knowledge sources, and actions—without needing model-specific details.
|
|
@@ -329,8 +328,6 @@ Personas can have access to different knowledge, tools and actions. They can als
|
|
|
329
328
|
|
|
330
329
|
- [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
|
|
331
330
|
|
|
332
|
-
|
|
333
|
-
|
|
334
331
|
### **3. How:** Knowledge, Instruments and Actions
|
|
335
332
|
|
|
336
333
|
The resources used by the personas are used to do the work.
|
|
@@ -405,7 +402,7 @@ Or you can install them separately:
|
|
|
405
402
|
- **[@promptbook/editable](https://www.npmjs.com/package/@promptbook/editable)** - Editable book as native javascript object with imperative object API
|
|
406
403
|
- **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Useful templates and examples of books which can be used as a starting point
|
|
407
404
|
- **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library
|
|
408
|
-
- **[@promptbook/color](https://www.npmjs.com/package/@promptbook/color)** -
|
|
405
|
+
- **[@promptbook/color](https://www.npmjs.com/package/@promptbook/color)** - Color manipulation library
|
|
409
406
|
- ⭐ **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
|
|
410
407
|
- 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** - Promptbook server
|
|
411
408
|
|
|
@@ -431,8 +428,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
431
428
|
|
|
432
429
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
433
430
|
|
|
434
|
-
|
|
435
|
-
|
|
436
431
|
### 💯 Core concepts
|
|
437
432
|
|
|
438
433
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|