API → ML → Get a ML prompthidden
hidden
Parameters
Name
Type
Req.
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
thumbs_up
: Thumbs up.thumbs_down
: Thumbs down.accepted
: Accepted.rejected
: Rejected.
metadata
objectoptionalObject Properties
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
Possible values
text_to_cad
: Text to CAD.text_to_kcl
: Text to KCL.text_to_kcl_iteration
: Text to Kcl iteration,
get
/ml-prompts/{id}$ curl "https://api.zoo.dev/ml-prompts/{id}" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"completed_at": "2024-09-19T16:11:53.432Z",
"created_at": "2024-09-19T16:11:53.432Z",
"error": "5m",
"feedback": "thumbs_up",
"id": "4c32c161-6263-4880-9f76-ab2c48060966",
"metadata": {
"code": "LbxEYNfPkaAp7U7Fzhn3",
"original_source_code": "Je4LldVDRXqDBrrbt",
"source_ranges": [
{
"prompt": "QxXGM8pICunQqy4Y",
"range": {
"end": {
"column": 19,
"line": 15
},
"start": {
"column": 17,
"line": 18
}
}
}
]
},
"model_version": "yzCIHy",
"output_file": "R4epVuusNn",
"prompt": "6xkKCtER6XSPeZnRb",
"started_at": "2024-09-19T16:11:53.432Z",
"status": "uploaded",
"type": "text_to_kcl_iteration",
"updated_at": "2024-09-19T16:11:53.432Z",
"user_id": "59f9b41e-0ee6-418e-ad6f-95b6c7a5fbb7"
}