ptbk 0.46.0 → 0.47.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 +18 -8
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -5,9 +5,13 @@ Library to supercharge your use of large language models
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
[ Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
|
|
10
|
+
[ Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
|
|
9
11
|
[](https://snyk.io/test/github/webgptorg/promptbook)
|
|
10
12
|
[](https://github.com/webgptorg/promptbook/issues)
|
|
13
|
+
[](https://socket.dev/npm/package/promptbook)
|
|
14
|
+
|
|
11
15
|
[](https://socket.dev/npm/package/ptbk)
|
|
12
16
|
|
|
13
17
|
|
|
@@ -436,22 +440,24 @@ For example:
|
|
|
436
440
|
|
|
437
441
|
### Execution Tools
|
|
438
442
|
|
|
443
|
+
|
|
444
|
+
|
|
439
445
|
`ExecutionTools` is an interface which contains all the tools needed to execute prompts.
|
|
440
446
|
It contais 3 subtools:
|
|
441
447
|
|
|
442
|
-
- `
|
|
448
|
+
- `LlmExecutionTools`
|
|
443
449
|
- `ScriptExecutionTools`
|
|
444
450
|
- `UserInterfaceTools`
|
|
445
451
|
|
|
446
452
|
Which are described below:
|
|
447
453
|
|
|
448
|
-
####
|
|
454
|
+
#### LLM Execution Tools
|
|
449
455
|
|
|
450
|
-
`
|
|
456
|
+
`LlmExecutionTools` is a container for all the tools needed to execute prompts to large language models like GPT-4.
|
|
451
457
|
On its interface it exposes common methods for prompt execution.
|
|
452
458
|
Internally it calls OpenAI, Azure, GPU, proxy, cache, logging,...
|
|
453
459
|
|
|
454
|
-
`
|
|
460
|
+
`LlmExecutionTools` an abstract interface that is implemented by concrete execution tools:
|
|
455
461
|
|
|
456
462
|
- `OpenAiExecutionTools`
|
|
457
463
|
- _(Not implemented yet)_ `AnthropicClaudeExecutionTools`
|
|
@@ -459,9 +465,9 @@ Internally it calls OpenAI, Azure, GPU, proxy, cache, logging,...
|
|
|
459
465
|
- _(Not implemented yet)_ `BardExecutionTools`
|
|
460
466
|
- _(Not implemented yet)_ `LamaExecutionTools`
|
|
461
467
|
- _(Not implemented yet)_ `GpuExecutionTools`
|
|
462
|
-
- And a special case are `
|
|
463
|
-
- The second special case is `
|
|
464
|
-
- The third special case is `
|
|
468
|
+
- And a special case are `RemoteLlmExecutionTools` that connect to a remote server and run one of the above execution tools on that server.
|
|
469
|
+
- The second special case is `MockedEchoLlmExecutionTools` that is used for testing and mocking.
|
|
470
|
+
- The third special case is `LogLlmExecutionToolsWrapper` that is technically also an execution tools but it is more proxy wrapper around other execution tools that logs all calls to execution tools.
|
|
465
471
|
|
|
466
472
|
#### Script Execution Tools
|
|
467
473
|
|
|
@@ -658,6 +664,10 @@ See [CHANGELOG.md](./CHANGELOG.md)
|
|
|
658
664
|
|
|
659
665
|
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/webgptorg/promptbook">Promptbook</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/hejny/">Pavol Hejný</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY 4.0</a></p>
|
|
660
666
|
|
|
667
|
+
## 🎯 Todos
|
|
668
|
+
|
|
669
|
+
See [TODO.md](./TODO.md)
|
|
670
|
+
|
|
661
671
|
|
|
662
672
|
|
|
663
673
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ptbk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,7 +33,17 @@
|
|
|
33
33
|
"url": "https://github.com/webgptorg/promptbook/issues"
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://www.npmjs.com/package/@promptbook/core",
|
|
36
|
+
"funding": [
|
|
37
|
+
{
|
|
38
|
+
"type": "individual",
|
|
39
|
+
"url": "https://buymeacoffee.com/hejny"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "github",
|
|
43
|
+
"url": "https://github.com/webgptorg/promptbook/blob/main/README.md#%EF%B8%8F-contributing"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
36
46
|
"dependencies": {
|
|
37
|
-
"promptbook": "0.
|
|
47
|
+
"promptbook": "0.47.0"
|
|
38
48
|
}
|
|
39
49
|
}
|