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-11-22T17:02:54.329Z",
"created_at": "2024-11-22T17:02:54.329Z",
"error": "yoMCrFuJv9n3VQsZ5n",
"feedback": "thumbs_up",
"id": "72d76198-689d-4828-bf28-d01928ad7ffb",
"metadata": {
"code": "ZR75B9Z1FJ",
"original_source_code": "SQMTyXvjUqGUaPiP",
"source_ranges": [
{
"prompt": "xiPyoABXT0X38x8zqOd1A7n",
"range": {
"end": {
"column": 26,
"line": 30
},
"start": {
"column": 2,
"line": 13
}
}
}
]
},
"model_version": "AvUKNehglAsc",
"output_file": "MEfanlSLtVIwuM",
"prompt": "qcDCElsTtOi9wn4NYzoEMzu",
"started_at": "2024-11-22T17:02:54.329Z",
"status": "uploaded",
"type": "text_to_kcl",
"updated_at": "2024-11-22T17:02:54.329Z",
"user_id": "2710c7ba-d88b-42cd-95cf-99ae375e7100"
}