Decisions
List recipes
List ready-made decisions for the playground, excluding labelled examples. No sign-in is required.
GET
/
v1
/
recipes
List recipes
curl --request GET \
--url https://console.sqwish.ai/v1/recipesimport requests
url = "https://console.sqwish.ai/v1/recipes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://console.sqwish.ai/v1/recipes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"order": 123,
"task": "<string>",
"name": "<string>",
"description": "<string>",
"use_when": "<string>",
"watch": "<string>",
"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"
},
"results": {},
"examples": [
{
"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",
"targets": {},
"rewards": {}
}
]
}
],
"object": "list"
}{
"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>"
}
]
}
}List recipes
curl --request GET \
--url https://console.sqwish.ai/v1/recipesimport requests
url = "https://console.sqwish.ai/v1/recipes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://console.sqwish.ai/v1/recipes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"order": 123,
"task": "<string>",
"name": "<string>",
"description": "<string>",
"use_when": "<string>",
"watch": "<string>",
"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"
},
"results": {},
"examples": [
{
"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",
"targets": {},
"rewards": {}
}
]
}
],
"object": "list"
}{
"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>"
}
]
}
}