postjevsql.git / tests / fixtures / label_tree.json
1{
2  "model": "jev-1.13.0",
3  "exchanges": [
4    {
5      "request": "{\"model\":\"jev-1.13.0\",\"questions\":{\"q\":{\"type\":\"choice\",\"instructions\":\"Could this person work from home?\",\"criteria\":{\"Office\":\"Contains: Engineering, Finance. For example: Backend, Frontend, Accounting, Audit\",\"Care\":\"Contains: Hospital, Community. For example: Nursing, Surgery, Home care, Social work\",\"Transport\":\"Contains: Road, Rail. For example: Bus, Freight, Driver, Signalling\"}},\"q1\":{\"type\":\"choice\",\"instructions\":\"Could this person work from home?\\n\\nWithin: Office\",\"criteria\":{\"Engineering\":\"Contains: Backend, Frontend\",\"Finance\":\"Contains: Accounting, Audit\"}},\"q2\":{\"type\":\"choice\",\"instructions\":\"Could this person work from home?\\n\\nWithin: Care\",\"criteria\":{\"Hospital\":\"Contains: Nursing, Surgery\",\"Community\":\"Contains: Home care, Social work\"}},\"q3\":{\"type\":\"noul\",\"instructions\":\"Could this person work from home?\\n\\nDoes any of these labels fit? Contains: Office, Care, Transport. For example: Backend, Frontend, Accounting, Audit, Nursing\",\"criteria\":{\"true\":\"At least one of the labels fits\",\"false\":\"None of the labels fits\"}}},\"state\":{\"country\":\"PT\",\"name\":\"Ana\",\"role\":\"backend engineer\"}}",
6      "responses": [
7        {
8          "status": 200,
9          "headers": [
10            [
11              "content-type",
12              "application/json"
13            ],
14            [
15              "x-typesafe-request-id",
16              "req_01a0e0b3f4d17f8e9cc08b5d547eb04a"
17            ]
18          ],
19          "body": "{\"model\":\"jev-1.13.0\",\"answers\":{\"q\":{\"type\":\"choice\",\"choice\":\"Office\",\"confidence\":1.0,\"probabilities\":{\"Care\":0.0,\"Transport\":0.0,\"Office\":1.0}},\"q1\":{\"type\":\"choice\",\"choice\":\"Engineering\",\"confidence\":1.0,\"probabilities\":{\"Engineering\":1.0,\"Finance\":0.0}},\"q2\":{\"type\":\"choice\",\"choice\":\"Community\",\"confidence\":0.7,\"probabilities\":{\"Hospital\":0.15,\"Community\":0.85}},\"q3\":{\"type\":\"noul\",\"noul\":0.77}},\"usage\":{\"input_tokens\":590,\"output_tokens\":114}}"
20        }
21      ]
22    },
23    {
24      "request": "{\"model\":\"jev-1.13.0\",\"questions\":{\"q\":{\"type\":\"choice\",\"instructions\":\"Could this person work from home?\\n\\nWithin: Office > Engineering\",\"criteria\":{\"Backend\":null,\"Frontend\":null}},\"q1\":{\"type\":\"choice\",\"instructions\":\"Could this person work from home?\\n\\nWithin: Office > Finance\",\"criteria\":{\"Accounting\":null,\"Audit\":null}},\"q2\":{\"type\":\"choice\",\"instructions\":\"Could this person work from home?\\n\\nWithin: Transport\",\"criteria\":{\"Road\":\"Contains: Bus, Freight\",\"Rail\":\"Contains: Driver, Signalling\"}},\"q3\":{\"type\":\"choice\",\"instructions\":\"Could this person work from home?\\n\\nWithin: Transport > Road\",\"criteria\":{\"Bus\":null,\"Freight\":null}},\"q4\":{\"type\":\"choice\",\"instructions\":\"Could this person work from home?\\n\\nWithin: Transport > Rail\",\"criteria\":{\"Driver\":null,\"Signalling\":null}}},\"state\":{\"country\":\"PT\",\"name\":\"Ana\",\"role\":\"backend engineer\"}}",
25      "responses": [
26        {
27          "status": 200,
28          "headers": [
29            [
30              "content-type",
31              "application/json"
32            ],
33            [
34              "x-typesafe-request-id",
35              "req_01a0e0b3f5ad73d68c27e06015e9c7a9"
36            ]
37          ],
38          "body": "{\"model\":\"jev-1.13.0\",\"answers\":{\"q\":{\"type\":\"choice\",\"choice\":\"Backend\",\"confidence\":1.0,\"probabilities\":{\"Backend\":1.0,\"Frontend\":0.0}},\"q1\":{\"type\":\"choice\",\"choice\":\"Accounting\",\"confidence\":0.66,\"probabilities\":{\"Accounting\":0.83,\"Audit\":0.17}},\"q2\":{\"type\":\"choice\",\"choice\":\"Rail\",\"confidence\":0.09,\"probabilities\":{\"Road\":0.45,\"Rail\":0.55}},\"q3\":{\"type\":\"choice\",\"choice\":\"Freight\",\"confidence\":0.17,\"probabilities\":{\"Freight\":0.58,\"Bus\":0.42}},\"q4\":{\"type\":\"choice\",\"choice\":\"Signalling\",\"confidence\":0.95,\"probabilities\":{\"Signalling\":0.98,\"Driver\":0.02}}},\"usage\":{\"input_tokens\":496,\"output_tokens\":159}}"
39        }
40      ]
41    }
42  ]
43}