1. RAW STATE + BOUNDED QUESTION INJSON Payload
curl -X POST https://api.typesafe.ai/v1/systemone \
-H "Authorization: Bearer $TYPESAFE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "jev-latest",
"state": "DOM: <button id=\"book-ticket\">Book Now</button> | User: \"reserve 2 seats\"",
"questions": {
"next_action": {
"type": "choice",
"instructions": "Which browser action fulfills the user intent?",
"options": ["CLICK_BOOK", "SCROLL_DOWN", "ASK_CLARIFICATION"]
}
}
}'
2. CALIBRATED TYPE-SAFE PROBABILITIES OUTSub-100ms
{
"answers": {
"next_action": {
"selected": "CLICK_BOOK",
"probabilities": {
"CLICK_BOOK": 0.942,
"SCROLL_DOWN": 0.041,
"ASK_CLARIFICATION": 0.017
},
"confidence": 0.942
}
},
"latency_ms": 84,
"type_error": false
}