@formio/uag-jev 2.0.0-rc.1 → 2.0.0-rc.10
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 +4 -4
- package/index.js +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @formio/uag-jev
|
|
2
2
|
|
|
3
|
-
<sub>[Form.io UAG](https://github.com/formio/uag/blob/
|
|
3
|
+
<sub>[Form.io UAG](https://github.com/formio/uag/blob/v2.0.0-rc.8/README.md) › [Engines](https://github.com/formio/uag/blob/v2.0.0-rc.8/README.md#engines-and-routing) › this page</sub>
|
|
4
4
|
|
|
5
|
-
The TypeSafe **Jev** decision engine for the [UAG Agent API](https://github.com/formio/uag/blob/
|
|
5
|
+
The TypeSafe **Jev** decision engine for the [UAG Agent API](https://github.com/formio/uag/blob/v2.0.0-rc.8/README.md#agent-api). It answers a task's closed-set fields (radio, select, checkbox, select boxes, survey and small resource selects) in one request, typically in 70–500 ms, with a confidence for each answer.
|
|
6
6
|
|
|
7
7
|
It is included in the `formio/uag` Docker image. Enable it by naming it, and set its key:
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ UAG_ENGINES=jev
|
|
|
11
11
|
TYPESAFE_API_KEY=...
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Decisions are Agentic Formflow, so the UAG also needs a `LICENSE_KEY` that includes the UAG (see [License](https://github.com/formio/uag/blob/
|
|
14
|
+
Decisions are Agentic Formflow, so on a self-hosted project the UAG also needs a `LICENSE_KEY` that includes the UAG (see [License](https://github.com/formio/uag/blob/v2.0.0-rc.8/README.md#license)); a project on Form.io's hosted service needs none.
|
|
15
15
|
|
|
16
16
|
## Settings
|
|
17
17
|
|
|
@@ -42,7 +42,7 @@ Routing lists name the instances: `routing.decision: ["next", "jev"]`.
|
|
|
42
42
|
Behavior differs between Jev versions. Keep `model` at a dated version, and run `uag-eval` on your own labeled examples before changing it or any threshold. `uag-eval --engine jev` works from a checkout of the UAG repository or inside the `formio/uag` image:
|
|
43
43
|
|
|
44
44
|
```
|
|
45
|
-
docker run --rm --entrypoint node -v "$PWD:/data" -e TYPESAFE_API_KEY -e LICENSE_KEY formio/uag \
|
|
45
|
+
docker run --rm --entrypoint node -v "$PWD:/data" -e TYPESAFE_API_KEY -e LICENSE_KEY formio/uag:rc \
|
|
46
46
|
--no-node-snapshot bin/uag-eval.js --form /data/claim.json --examples /data/claim-examples.json \
|
|
47
47
|
--engine jev --project <your project URL>
|
|
48
48
|
```
|
package/index.js
CHANGED
|
@@ -78,7 +78,9 @@ function providerError(err) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
module.exports = defineEngine({
|
|
81
|
-
type: '
|
|
81
|
+
type: 'engine',
|
|
82
|
+
name: 'jev',
|
|
83
|
+
title: 'JEV',
|
|
82
84
|
kinds: ['decision'],
|
|
83
85
|
apiVersion: ENGINE_API_VERSION,
|
|
84
86
|
description: 'TypeSafe Jev: confidence-scored Choice, Score and yes/no decisions.',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/uag-jev",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.10",
|
|
4
4
|
"description": "TypeSafe Jev decision engine for the Form.io Universal Agent Gateway (UAG): fast, confidence-scored Choice, Score and yes/no decisions for the Agent API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"formio",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@formio/uag-sdk": "^2.0.0-rc.
|
|
37
|
+
"@formio/uag-sdk": "^2.0.0-rc.10",
|
|
38
38
|
"@typesafe-ai/sdk": "0.7.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|