@turbojev/runtime-llamacpp-wasm 0.28.6 → 0.29.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.
Files changed (2) hide show
  1. package/README.md +8 -3
  2. package/package.json +15 -15
package/README.md CHANGED
@@ -23,9 +23,14 @@ const engine = await TurboJevWeb.load({
23
23
  },
24
24
  });
25
25
 
26
- const result = await engine.classify('My package arrived broken', [
27
- 'billing', 'shipping', 'technical', 'other',
28
- ]);
26
+ const result = await engine.evaluate({
27
+ state: { message: 'My package arrived broken' },
28
+ questions: { department: {
29
+ type: 'choice',
30
+ instructions: 'Which department should handle this message?',
31
+ criteria: { billing: 'Billing', shipping: 'Shipping', technical: 'Technical', other: 'Other' },
32
+ } },
33
+ });
29
34
  await engine.close();
30
35
  ```
31
36
 
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
- {
2
- "name": "@turbojev/runtime-llamacpp-wasm",
3
- "version": "0.28.6",
4
- "description": "Browser-side llama.cpp WASM decision runtime for TurboJev",
5
- "license": "Apache-2.0",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/DestroyerDarkNess/TurboJev.git",
9
- "directory": "bindings/web-runtimes/llamacpp-wasm"
10
- },
11
- "publishConfig": { "access": "public" },
12
- "type": "module",
13
- "exports": "./src/index.js",
14
- "files": ["src", "README.md"]
15
- }
1
+ {
2
+ "name": "@turbojev/runtime-llamacpp-wasm",
3
+ "version": "0.29.0",
4
+ "description": "Browser-side llama.cpp WASM decision runtime for TurboJev",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/DestroyerDarkNess/TurboJev.git",
9
+ "directory": "bindings/web-runtimes/llamacpp-wasm"
10
+ },
11
+ "publishConfig": { "access": "public" },
12
+ "type": "module",
13
+ "exports": "./src/index.js",
14
+ "files": ["src", "README.md"]
15
+ }