llmz 0.0.7 → 0.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 +26 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
## Intro
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
# The core library
|
|
7
|
+
npm install llmz
|
|
8
|
+
|
|
9
|
+
# Dependencies
|
|
10
|
+
npm install @botpress/client
|
|
11
|
+
```
|
|
4
12
|
|
|
5
13
|
## Getting Started
|
|
6
14
|
|
|
15
|
+
```js
|
|
16
|
+
import { execute } from 'llmz'
|
|
17
|
+
import { Client } from '@botpress/client'
|
|
18
|
+
|
|
19
|
+
const client = new Client({
|
|
20
|
+
botId: process.env.BOTPRESS_BOT_ID,
|
|
21
|
+
token: process.env.BOTPRESS_TOKEN,
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const result = await execute({
|
|
25
|
+
client,
|
|
26
|
+
instructions: 'Return the value of 2 + 4.',
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
console.log(result.output) // Will print "6"
|
|
30
|
+
```
|
|
31
|
+
|
|
7
32
|
## LLMz vs Tool Calling
|
|
8
33
|
|
|
9
34
|
## LLMz vs MCP
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "llmz",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "LLMz – An LLM-native Typescript VM built on top of Zui",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.9",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@babel/standalone": "^7.26.4",
|
|
33
33
|
"@babel/traverse": "^7.26.4",
|
|
34
34
|
"@babel/types": "^7.26.3",
|
|
35
|
-
"@botpress/client": "1.
|
|
35
|
+
"@botpress/client": "1.16.0",
|
|
36
36
|
"bytes": "^3.1.2",
|
|
37
37
|
"exponential-backoff": "^3.1.1",
|
|
38
38
|
"handlebars": "^4.7.8",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"tsx": "^4.19.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@botpress/cognitive": "0.1.
|
|
68
|
+
"@botpress/cognitive": "0.1.26",
|
|
69
69
|
"@bpinternal/thicktoken": "^1.0.5",
|
|
70
70
|
"@bpinternal/zui": "^1.0.0"
|
|
71
71
|
},
|