Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
{
"name": "criterion_shapes",
"state": "The request mentions a security vulnerability in the login flow.",
"serialized_state": "The request mentions a security vulnerability in the login flow.",
"questions": {
"route": {
"type": "choice",
"instructions": "Route this report.",
"criteria": {
"security": {
"desc": "vulnerabilities",
"sla_hours": 4,
"escalate": true
},
"eng": [
"bugs",
"regressions",
3
],
"zero": 0,
"falsey": false,
"blank": "",
"nothing": null,
"plain": "anything else"
}
},
"severity": {
"type": "score",
"instructions": "Severity of the report.",
"criteria": [
{
"label": "info",
"cvss": 0.0
},
{
"label": "high",
"cvss": 7.5
},
"critical"
]
}
},
"per_question": [
{
"id": "route",
"type": "choice",
"qtype": 0,
"instructions": "Route this report.",
"head_text": "choice question: Route this report.",
"options": [
"security: {\"desc\": \"vulnerabilities\", \"sla_hours\": 4, \"escalate\": true}",
"eng: [\"bugs\", \"regressions\", 3]",
"zero: 0",
"falsey: false",
"blank",
"nothing",
"plain: anything else"
],
"input_ids": [
50281,
22122,
1953,
27,
22720,
436,
1304,
15,
50282,
50284,
3988,
27,
17579,
12898,
1381,
346,
87,
335,
1216,
6720,
995,
346,
3433,
66,
64,
22724,
1381,
577,
13,
346,
265,
1179,
366,
1381,
2032,
94,
50284,
2209,
27,
15640,
25941,
995,
346,
1747,
37761,
995,
495,
62,
50284,
5058,
27,
470,
50284,
3221,
90,
27,
3221,
50284,
9912,
50284,
2717,
50284,
8342,
27,
2712,
2010,
50282,
510,
2748,
25957,
247,
3988,
24189,
275,
253,
16164,
2685,
15,
50282
],
"markers": [
9,
36,
48,
52,
57,
59,
61
]
},
{
"id": "severity",
"type": "score",
"qtype": 1,
"instructions": "Severity of the report.",
"head_text": "score question: Severity of the report.",
"options": [
"level 0: {\"label\": \"info\", \"cvss\": 0.0}",
"level 1: {\"label\": \"high\", \"cvss\": 7.5}",
"level 2: critical"
],
"input_ids": [
50281,
18891,
1953,
27,
35395,
414,
273,
253,
1304,
15,
50282,
50284,
1268,
470,
27,
17579,
1968,
1381,
346,
5374,
995,
346,
17312,
859,
1381,
470,
15,
17,
94,
50284,
1268,
337,
27,
17579,
1968,
1381,
346,
8656,
995,
346,
17312,
859,
1381,
818,
15,
22,
94,
50284,
1268,
374,
27,
4619,
50282,
510,
2748,
25957,
247,
3988,
24189,
275,
253,
16164,
2685,
15,
50282
],
"markers": [
11,
29,
47
]
}
],
"batch": {
"input_ids": [
[
50281,
22122,
1953,
27,
22720,
436,
1304,
15,
50282,
50284,
3988,
27,
17579,
12898,
1381,
346,
87,
335,
1216,
6720,
995,
346,
3433,
66,
64,
22724,
1381,
577,
13,
346,
265,
1179,
366,
1381,
2032,
94,
50284,
2209,
27,
15640,
25941,
995,
346,
1747,
37761,
995,
495,
62,
50284,
5058,
27,
470,
50284,
3221,
90,
27,
3221,
50284,
9912,
50284,
2717,
50284,
8342,
27,
2712,
2010,
50282,
510,
2748,
25957,
247,
3988,
24189,
275,
253,
16164,
2685,
15,
50282
],
[
50281,
18891,
1953,
27,
35395,
414,
273,
253,
1304,
15,
50282,
50284,
1268,
470,
27,
17579,
1968,
1381,
346,
5374,
995,
346,
17312,
859,
1381,
470,
15,
17,
94,
50284,
1268,
337,
27,
17579,
1968,
1381,
346,
8656,
995,
346,
17312,
859,
1381,
818,
15,
22,
94,
50284,
1268,
374,
27,
4619,
50282,
510,
2748,
25957,
247,
3988,
24189,
275,
253,
16164,
2685,
15,
50282,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283,
50283
]
],
"attention_mask": [
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
],
"marker_pos": [
[
9,
36,
48,
52,
57,
59,
61
],
[
11,
29,
47,
0,
0,
0,
0
]
],
"marker_mask": [
[
true,
true,
true,
true,
true,
true,
true
],
[
true,
true,
true,
false,
false,
false,
false
]
],
"qtype": [
0,
1
]
},
"marker_axis_padded": false,
"logits": [
[
4.096677780151367,
-0.23009303212165833,
-2.4581172466278076,
-2.5262258052825928,
-1.8533432483673096,
-1.0468206405639648,
-1.4776298999786377
],
[
0.10751175880432129,
2.0651803016662598,
-0.057982414960861206,
-10000.0,
-10000.0,
-10000.0,
-10000.0
]
],
"act_logits": [
[
4621.18994140625,
-3779.8759765625
],
[
4256.39208984375,
-3493.3828125
]
],
"result": {
"model": "laya-rl-agent",
"answers": {
"route": {
"type": "choice",
"choice": "security",
"probabilities": {
"security": 0.9726,
"eng": 0.0128,
"zero": 0.0014,
"falsey": 0.0013,
"blank": 0.0025,
"nothing": 0.0057,
"plain": 0.0037
},
"confidence": 0.9147,
"answer_confidence": 0.9726,
"action": {
"act_probability": 1.0
}
},
"severity": {
"type": "score",
"score": 0.9814,
"legend": {
"0": "{\"label\": \"info\", \"cvss\": 0.0}",
"1": "{\"label\": \"high\", \"cvss\": 7.5}",
"2": "critical"
},
"probabilities": {
"0": 0.1502,
"1": 0.7181,
"2": 0.1316
},
"confidence": 0.2814,
"answer_confidence": 0.7181,
"action": {
"act_probability": 1.0
}
}
},
"usage": {
"input_tokens": 144,
"output_tokens": 0,
"state_tokens": 11,
"state_tokens_dropped": 0,
"truncated": false,
"truncated_questions": []
}
}
}