Decisions
Translate Jev requests
The native /v1/decide request for a Jev request, with notes on what changed.
No model runs, so it is free and needs no key.
POST
/
v1
/
systemone
/
translate
Translate Jev requests
curl --request POST \
--url https://console.sqwish.ai/v1/systemone/translate \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"state": "<string>",
"questions": {}
}
'import requests
url = "https://console.sqwish.ai/v1/systemone/translate"
payload = {
"model": "<string>",
"state": "<string>",
"questions": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>', state: '<string>', questions: {}})
};
fetch('https://console.sqwish.ai/v1/systemone/translate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request": {
"context": "<string>",
"decisions": [
{
"id": "<string>",
"question": "<string>",
"kind": "single",
"outcomes": "<unknown>",
"rubric": [
"<unknown>"
],
"weights": {},
"costs": {},
"abstain": {
"min_probability": 0.5,
"cost": 123
}
}
],
"model": "<string>",
"independent": false,
"store": true,
"metadata": {},
"fallback": "auto"
},
"notes": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Translate Jev requests
curl --request POST \
--url https://console.sqwish.ai/v1/systemone/translate \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"state": "<string>",
"questions": {}
}
'import requests
url = "https://console.sqwish.ai/v1/systemone/translate"
payload = {
"model": "<string>",
"state": "<string>",
"questions": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>', state: '<string>', questions: {}})
};
fetch('https://console.sqwish.ai/v1/systemone/translate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request": {
"context": "<string>",
"decisions": [
{
"id": "<string>",
"question": "<string>",
"kind": "single",
"outcomes": "<unknown>",
"rubric": [
"<unknown>"
],
"weights": {},
"costs": {},
"abstain": {
"min_probability": 0.5,
"cost": 123
}
}
],
"model": "<string>",
"independent": false,
"store": true,
"metadata": {},
"fallback": "auto"
},
"notes": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}