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://api.sqwish.ai/v1/recipesimport requests
url = "https://api.sqwish.ai/v1/recipes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.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": {
"decisions": [
{
"id": "<string>",
"question": "<string>",
"kind": "single",
"outcomes": "<unknown>",
"rubric": [
"<unknown>"
],
"policy": {
"action_costs": {},
"abstain_below": 0.5
}
}
],
"model": "<string>",
"context": "",
"images": [
{
"id": 32,
"media_type": "image/jpeg",
"data": "<string>"
}
],
"fallback": "auto",
"temperature": 2.6
},
"results": {},
"examples": [
{
"decisions": [
{
"id": "<string>",
"question": "<string>",
"kind": "single",
"outcomes": "<unknown>",
"rubric": [
"<unknown>"
],
"policy": {
"action_costs": {},
"abstain_below": 0.5
}
}
],
"model": "<string>",
"context": "",
"images": [
{
"id": 32,
"media_type": "image/jpeg",
"data": "<string>"
}
],
"fallback": "auto",
"temperature": 2.6,
"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://api.sqwish.ai/v1/recipesimport requests
url = "https://api.sqwish.ai/v1/recipes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.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": {
"decisions": [
{
"id": "<string>",
"question": "<string>",
"kind": "single",
"outcomes": "<unknown>",
"rubric": [
"<unknown>"
],
"policy": {
"action_costs": {},
"abstain_below": 0.5
}
}
],
"model": "<string>",
"context": "",
"images": [
{
"id": 32,
"media_type": "image/jpeg",
"data": "<string>"
}
],
"fallback": "auto",
"temperature": 2.6
},
"results": {},
"examples": [
{
"decisions": [
{
"id": "<string>",
"question": "<string>",
"kind": "single",
"outcomes": "<unknown>",
"rubric": [
"<unknown>"
],
"policy": {
"action_costs": {},
"abstain_below": 0.5
}
}
],
"model": "<string>",
"context": "",
"images": [
{
"id": 32,
"media_type": "image/jpeg",
"data": "<string>"
}
],
"fallback": "auto",
"temperature": 2.6,
"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>"
}
]
}
}