Decisions
Lint decisions
Warnings about how the decisions are asked. No model runs; it is free.
POST
/
v1
/
lint
Lint decisions
curl --request POST \
--url https://console.sqwish.ai/v1/lint \
--header 'Content-Type: application/json' \
--data '
{
"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": {}
}
'import requests
url = "https://console.sqwish.ai/v1/lint"
payload = {
"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": {}
}
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({
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: {}
})
};
fetch('https://console.sqwish.ai/v1/lint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"warnings": [
{
"decision": "<string>",
"rule": "<string>",
"severity": "<string>",
"message": "<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>"
}
]
}
}Body
application/json
Required array length:
1 - 64 elementsShow child attributes
Show child attributes
Required string length:
1 - 128Show child attributes
Show child attributes
Available options:
auto, none Response
Successful Response
Show child attributes
Show child attributes
Lint decisions
curl --request POST \
--url https://console.sqwish.ai/v1/lint \
--header 'Content-Type: application/json' \
--data '
{
"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": {}
}
'import requests
url = "https://console.sqwish.ai/v1/lint"
payload = {
"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": {}
}
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({
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: {}
})
};
fetch('https://console.sqwish.ai/v1/lint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"warnings": [
{
"decision": "<string>",
"rule": "<string>",
"severity": "<string>",
"message": "<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>"
}
]
}
}