File size: 1,643 Bytes
ce235ae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | """Small public request for native and Core ML parity checks."""
def fixture() -> dict:
return {
"states": [
{
"id": "example",
"state": "The target is left of the aim.",
"questions": {
"action": {
"type": "choice",
"instructions": "Choose the next action.",
"criteria": {
"left": "Move the aim left.",
"right": "Move the aim right.",
"shoot": "Fire.",
"noop": "Wait.",
},
}
},
}
]
}
def requests() -> list[dict]:
boolean = {
"states": [
{
"id": "boolean",
"state": "The invoice says paid and shows a zero balance.",
"questions": {
"paid": {"type": "boolean", "instructions": "Has the invoice been paid?"}
},
}
]
}
score = {
"states": [
{
"id": "score",
"state": "The order arrived two weeks late and the box was damaged.",
"questions": {
"severity": {
"type": "score",
"instructions": "Rate customer impact.",
"criteria": ["Low impact", "Moderate impact", "High impact"],
}
},
}
]
}
return [fixture(), boolean, score]
|