{"openapi":"3.1.0","info":{"title":"Endor API","version":"1"},"paths":{"/v1/systemone":{"post":{"tags":["decisions"],"summary":"Systemone","description":"One forward pass per question with a probability for every option. `model`: \"<project>\" (a continuous model's\nproduction version, or its base before the first), \"<project>:preview\" (its newest version while that isn't in\nproduction), the name of a custom project's model in production, or a base model's id (\"mapika/decider-2b\",\n`<owner>/<model>` from GET /v1/base_models; services/references.py); the response's `model` is what answered\n(\"tickets:v4\", the model's name, or the base model's id), and \"tickets:v4\" can be called while v4 is the production\nversion or the preview.\nBilled per input token, an image's tokens included, at the base model's price (a continuous model's at its\ncontinuous learning price). 404 unknown_model, 404 version_not_callable for a \"<project>:v<n>\" that is neither\n(promote it instead), 409 model_not_in_production for an archived model, 409 no_base_model for a base model that\nis no longer served, 403 continuous_learning_not_enabled for a continuous model from an\norganization not invited to continuous models, 409 model_not_ready while a model's save runs, 422 invalid_options,\n422 invalid_input for a bad image, 422 unsupported_modality for images sent to a base that reads text only, 402\nwhen the org's balance is used up, 429 rate_limited, 529 overloaded, 503 warming_up when a rarely used model's\nservers didn't start in time (retry after Retry-After).\n`exclude_from_training`: keep the decision out of continuous learning (benchmarks, evaluations); it is answered,\nbilled and logged as usual. The response's `id` is the decision's id (its X-Request-Id), for correcting it (POST\n/v1/corrections).","operationId":"systemone_v1_systemone_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneResponse"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"529":{"$ref":"#/components/responses/529"}}}},"/v1/models":{"get":{"tags":["decisions"],"summary":"List Models","description":"TypeSafe's list of the names you can send as `model`: for each continuous model, `<project>` (its production\nversion, or its base before the first) and, while it has one, `<project>:preview` (its newest version, when that\nisn't in production); then each custom project's model in production, by its name. `endor.kind` is `project` or\n`custom`. Archived models aren't listed: they can't be called until promoted, nor are continuous models while the\norg's continuous learning flag is off (services/features.py).\nBase model ids can be sent as `model` too: GET /v1/base_models lists them, with prices and limits.","operationId":"list_models_v1_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelList"}}}},"401":{"$ref":"#/components/responses/401"},"422":{"$ref":"#/components/responses/422"}}}},"/v1/base_models":{"get":{"tags":["decisions"],"summary":"List Base Models","description":"The base models: their limits, contract, weights and prices (decisions in a custom project, decisions of a\ncontinuous model at the continuous-learning price, and training per GPU-hour), each base's entry on the Jev\nDecision Index (`decision_index`: rank, what it is meant for, a link to its scores) and Endor's measured throughput\nwhere there is one (`tokens_per_s`). Call one through a continuous model on it, or a model trained on it in a\ncustom project.","operationId":"list_base_models_v1_base_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseModelList"}}}},"401":{"$ref":"#/components/responses/401"},"422":{"$ref":"#/components/responses/422"}}}},"/v1/projects":{"post":{"tags":["projects"],"summary":"Create Project","description":"Create a continuous model on `base_model` (chosen here, never changed). `<project>` answers with its base until\nthe first version. 409 conflict if the org already has a continuous model of this name, 409 name_taken if a custom\nproject's model has it, 409 limit_reached at max_projects_per_org, 422 invalid_input for a base that isn't in GET\n/v1/base_models. Honors Idempotency-Key.","operationId":"create_project_v1_projects_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"409":{"$ref":"#/components/responses/409"}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string, at most 200 characters. A repeat with the same key and the same body within 24 hours returns the first response instead of running again.","schema":{"type":"string","maxLength":200}}]},"get":{"tags":["projects"],"summary":"List Projects","description":"The org's continuous models, newest first.","operationId":"list_projects_v1_projects_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Project_"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"}}}},"/v1/projects/{project}":{"get":{"tags":["projects"],"summary":"Get Project ","operationId":"get_project__v1_projects__project__get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}},"patch":{"tags":["projects"],"summary":"Update Project","description":"Change the description, or turn auto-promote on (the preview goes to production at once, and every new version\nafter it) or off (the production version stays until you promote one). 422 invalid_input for the base model,\nwhich never changes.","operationId":"update_project_v1_projects__project__patch","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}},"delete":{"tags":["projects"],"summary":"Delete Project","description":"Deletes the continuous model and its versions; its name is free at once. Endor keeps the files for 30 days, then\nremoves them.","operationId":"delete_project_v1_projects__project__delete","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"204":{"description":"Successful Response"},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/projects/{project}/learning":{"get":{"tags":["projects"],"summary":"Get Learning","description":"What the continuous model's learning is doing (it is always on): its status, the way to the next training run,\nwhat `<project>` answers with now, when training last ran and its training runs.","operationId":"get_learning_v1_projects__project__learning_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Learning"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}}},"/v1/projects/{project}/versions":{"get":{"tags":["projects"],"summary":"List Versions","description":"Every version, newest first, with which one is in production, which is the preview (the newest, while it isn't\nin production)\nand the check each passed when it was trained.","operationId":"list_versions_v1_projects__project__versions_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Version_"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}}},"/v1/projects/{project}/versions/{version}/promote":{"post":{"tags":["projects"],"summary":"Promote Version","description":"Promote `version` to production: `<project>` answers with it. Promoting a version older than the newest turns\nauto-promote off (an instant rollback: new versions then only reach `<project>:preview` until you promote again or\nturn auto-promote back on). Idempotent. 404 not_found for a version the continuous model doesn't\nhave.","operationId":"promote_version_v1_projects__project__versions__version__promote_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/projects/{project}/versions/{version}/download":{"get":{"tags":["projects"],"summary":"Download Version","description":"Links to the version's files (the LoRA adapter, PEFT format, on the continuous model's base), each a GET that\nexpires after 10 minutes. At most 30 calls per minute per org (429 rate_limited).","operationId":"download_version_v1_projects__project__versions__version__download_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}},{"name":"include_optimizer","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Optimizer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelDownload"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/custom_models":{"get":{"tags":["custom models"],"summary":"List Custom Models","description":"The models of the org's custom projects: production ones first (in the order they were promoted), then archived\nones, newest first; `production` keeps only one of the two.","operationId":"list_custom_models_v1_custom_models_get","parameters":[{"name":"production","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Production"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CustomModel_"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"}}}},"/v1/custom_models/{name}":{"get":{"tags":["custom models"],"summary":"Get Custom Model","description":"404 not_found. While its save runs, the model with `state` saving (every other call that names it answers 409\nmodel_not_ready until the save completes; if the save fails, the model is gone). After a promotion, `serving`\nsays when it is live.","operationId":"get_custom_model_v1_custom_models__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomModel"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}},"patch":{"tags":["custom models"],"summary":"Update Custom Model","description":"Changes only the fields sent. `ttl_seconds`: an archived model expires that long from now (null: kept); 409\nmodel_in_production on a production model (production models never expire).","operationId":"update_custom_model_v1_custom_models__name__patch","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomModelPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomModel"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}},"delete":{"tags":["custom models"],"summary":"Delete Custom Model","description":"Deletes an archived model; its name is free at once. Endor keeps the files for 30 days, then removes them. 409\nmodel_in_production for a production model (archive it first: demote), 409 run_active while a run is\nwarm-starting from it.","operationId":"delete_custom_model_v1_custom_models__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/custom_models/{name}/download":{"get":{"tags":["custom models"],"summary":"Download Custom Model","description":"Links to download the model's files straight from storage, for self-hosting the LoRA adapter (PEFT) on the\nsame base model: adapter_model.safetensors, adapter_config.json, endor_manifest.json, readout.safetensors if the\nmodel has one, and optimizer.pt only with `include_optimizer=true`. In production or archived. Each link is a GET\nof one file, served as an attachment, and expires after 10 minutes (`expires_at`). At most 30 calls per minute per\norg (429 rate_limited). 404 not_found when the model has no stored weights.","operationId":"download_custom_model_v1_custom_models__name__download_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"include_optimizer","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Optimizer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelDownload"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/custom_models/{name}/promote":{"post":{"tags":["custom models"],"summary":"Promote Custom Model","description":"Promote the model to production: decisions may call it by name. It is `serving` deploying until a decision\nserver has loaded it, then live (failed if none could: promote it again to retry). Idempotent. When every\nproduction slot is taken (max_production_models_per_org), 409 production_full naming the production models,\nunless `replace` names one: it is archived in the same step. 404 not_found for a `replace` that isn't in\nproduction.","operationId":"promote_custom_model_v1_custom_models__name__promote_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Promote"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomModel"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/custom_models/{name}/demote":{"post":{"tags":["custom models"],"summary":"Demote Custom Model","description":"Move the model to the archive (`state` archived): from the reply on, decisions refuse it (409\nmodel_not_in_production) and its production slot is free. It can still be downloaded, evaluated, trained from and\npromoted again. Idempotent.","operationId":"demote_custom_model_v1_custom_models__name__demote_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomModel"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/datasets":{"post":{"tags":["datasets"],"summary":"Create Dataset","description":"`{\"name\", \"rows\": [DecisionRow, ...]}`, up to 64 MB and 50,000 rows. Validates every row and label (422\ninvalid_row naming the row, `rows[i]`, and the field in the message; nothing stored), writes the rows to object\nstorage and records the dataset. 409 conflict if the name exists. Honors Idempotency-Key. The body is streamed to\na temporary file and validated one row at a time, so an upload never sits in memory.","operationId":"create_dataset_v1_datasets_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"401":{"$ref":"#/components/responses/401"},"409":{"$ref":"#/components/responses/409"},"422":{"$ref":"#/components/responses/422"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetCreate"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string, at most 200 characters. A repeat with the same key and the same body within 24 hours returns the first response instead of running again.","schema":{"type":"string","maxLength":200}}]},"get":{"tags":["datasets"],"summary":"List Datasets","description":"The org's datasets, newest first.","operationId":"list_datasets_v1_datasets_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Dataset_"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"}}}},"/v1/datasets/{name}":{"get":{"tags":["datasets"],"summary":"Get Dataset","operationId":"get_dataset_v1_datasets__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}},"delete":{"tags":["datasets"],"summary":"Delete Dataset","description":"Deletes the dataset; its name is free at once. Endor keeps the files for 30 days, then removes them.\nEvaluations keep their results; their `dataset` stays as a name.","operationId":"delete_dataset_v1_datasets__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/datasets/{name}/rows":{"get":{"tags":["datasets"],"summary":"Dataset Rows","description":"A page of rows as uploaded: {\"items\": [row, ...], \"total\": n_rows}.","operationId":"dataset_rows_v1_datasets__name__rows_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dataset Rows V1 Datasets  Name  Rows Get"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}}},"/v1/runs":{"post":{"tags":["runs"],"summary":"Create Run","description":"A new run for a custom project: on `base_model`, or warm-started from a custom project's model (`from_model`,\nwhich sets the base: another `base_model` is 422 invalid_input; with include_optimizer the step and Adam state\ncontinue). `model`: the model name a save without one uses (409 conflict when a model has it, 409 name_taken when\na continuous model does). Starts\n`provisioning`; `ready_future_id` resolves when the GPU is ready. 422 invalid_input for an unknown base, or none\nat all, 404 unknown_model for an unknown from_model, 409 limit_reached (open runs) or 429 rate_limited (20\ncreates a minute per org), 402 when the balance is used up. Honors Idempotency-Key.","operationId":"create_run_v1_runs_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"409":{"$ref":"#/components/responses/409"}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string, at most 200 characters. A repeat with the same key and the same body within 24 hours returns the first response instead of running again.","schema":{"type":"string","maxLength":200}}]},"get":{"tags":["runs"],"summary":"List Runs","description":"The runs of the org's custom projects, newest first, optionally only runs with `tag`.","operationId":"list_runs_v1_runs_get","parameters":[{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Run_"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"}}}},"/v1/runs/{run_id}":{"get":{"tags":["runs"],"summary":"Get Run ","description":"The run, with its progress: `step`, the planned `total_steps` (null when unknown) and `seconds_per_step`,\nthe median time per optimizer step over the last 20 steps (null before the second step).","operationId":"get_run__v1_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}},"patch":{"tags":["runs"],"summary":"Update Run","description":"Set the planned `total_steps` (null clears it), for the dashboard's progress bar and ETA. Allowed in any\nstatus. 409 wrong_project_kind for a continuous model's runs.","operationId":"update_run_v1_runs__run_id__patch","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/runs/{run_id}/forward":{"post":{"tags":["runs"],"summary":"Forward","description":"Every option's probability and each datum's loss with the run's current adapter; no gradients. Result:\n{outputs: [{probabilities, loss}], metrics: {loss:sum, weight:sum, loss:mean, accuracy, n}}. 409 invalid_state\nor seq_conflict, 422 invalid_datum naming `data[i]`, 429 queue_full.","operationId":"forward_v1_runs__run_id__forward_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FutureRef"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/runs/{run_id}/forward_backward":{"post":{"tags":["runs"],"summary":"Forward Backward","description":"As forward, plus gradients accumulated until the next optim_step (the update is the weighted mean over every\ndatum since the last step). Logs train/loss and train/accuracy.","operationId":"forward_backward_v1_runs__run_id__forward_backward_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FutureRef"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/runs/{run_id}/predict":{"post":{"tags":["runs"],"summary":"Predict","description":"Answer decision rows with the run's current adapter, before saving it: each row is {state, questions} as in\nPOST /v1/systemone (a dataset row's id, labels and weight are ignored). Result: {answers: [{name: answer}]}, one\nentry per row in order, in /v1/systemone's answer format, built as a decision's answers are; they match a\ndecision on the model saved now within the usual train/serve tolerance (bf16 rounding of the batch shape). No\ngradients; the run's training state doesn't change. Runs in seq_id order with the run's other calls and is\nbilled as training GPU time, like forward. At most 1,024 questions per call across rows (64 per row); text and\nJSON states only. 409 invalid_state or seq_conflict, 422 invalid_options naming `rows[i].questions.<name>`, 429\nqueue_full; the future fails with context_too_long for a question over the base's token limit.","operationId":"predict_v1_runs__run_id__predict_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FutureRef"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/runs/{run_id}/optim_step":{"post":{"tags":["runs"],"summary":"Optim Step","description":"AdamW on the accumulated gradients, then reset them. Result {step, grad_norm, learning_rate}; the future fails\nwith no_gradients when nothing was accumulated. Logs train/grad_norm and train/lr.","operationId":"optim_step_v1_runs__run_id__optim_step_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimStepRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FutureRef"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/runs/{run_id}/save_checkpoint":{"post":{"tags":["runs"],"summary":"Save Checkpoint","description":"Save the adapter (with Adam state if include_optimizer) as a custom model called `name` (else the run's\n`model`): reserved now (409 conflict if a model has the name, 409 name_taken if a continuous model does), saved\nonce the future resolves to {\"model\": name}.","operationId":"save_checkpoint_v1_runs__run_id__save_checkpoint_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveCheckpointRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FutureRef"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/runs/{run_id}/close":{"post":{"tags":["runs"],"summary":"Close Run","description":"Refuse further ops, let the ops already accepted finish, then release the GPU (status closed). Saved models\nstay; unsaved progress is lost. Idempotent.","operationId":"close_run_v1_runs__run_id__close_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/runs/{run_id}/heartbeat":{"post":{"tags":["runs"],"summary":"Heartbeat","description":"The client is still there: a parked run is closed after an hour without an op or a heartbeat (the SDK sends\none a minute while the run is open), so a client that waits longer keeps its run. 409 invalid_state once the run\nis closed or closing.","operationId":"heartbeat_v1_runs__run_id__heartbeat_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/runs/{run_id}/metrics":{"post":{"tags":["runs"],"summary":"Log Metrics","description":"Custom points (source \"client\") plotted next to the automatic ones, at `step` or else the run's current\nstep. At most 100 keys per call.","operationId":"log_metrics_v1_runs__run_id__metrics_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsLog"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}},"get":{"tags":["runs"],"summary":"Get Metrics","description":"Points ordered by (key, step); more than 5,000 points per key are thinned, keeping the first and last.","operationId":"get_metrics_v1_runs__run_id__metrics_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"keys","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keys"}},{"name":"since_step","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Since Step"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MetricPoint"},"title":"Response Get Metrics V1 Runs  Run Id  Metrics Get"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}}},"/v1/runs/{run_id}/events":{"get":{"tags":["runs"],"summary":"Run Events","description":"Server-Sent Events: a snapshot {type: \"snapshot\", status, step, total_steps, seconds_per_step, next_seq_id},\nthen one event per change (status, op, metric, model, and progress {step, total_steps, seconds_per_step} after\neach optimizer step or total_steps change) and a heartbeat comment every 15 s. Reconnect with Last-Event-ID to\nresume; a stream ends after an hour. At most 5 open streams per API key or session (429 rate_limited).","operationId":"run_events_v1_runs__run_id__events_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/evaluations":{"post":{"tags":["evaluations"],"summary":"Create Evaluation","description":"Score `model` (a custom project's model, live or not, or a base model id) on `dataset`, or on `rows` sent inline\n(decision rows as a dataset's, up to 32 MB and 50,000 rows; checked as an upload is, and that the model reads every\nquestion: 422 invalid_row naming `rows[i]`, or invalid_options `rows[i].questions`). A row with labels is scored\non its labeled questions; a row without labels is answered on every question and not scored, so rows without any\nlabels get predictions (empty metrics). The future\nresolves to {\"evaluation_id\"}, which the response already has: GET /v1/evaluations/{id} shows rows_done of\nrows_total while it runs. Results have accuracy, NLL, Brier, ECE, mean confidence and selective accuracy overall,\nby type and by question, plus a rows_url to every answer. Honors Idempotency-Key; 404 unknown_model for an unknown\nmodel; 429 rate_limited beyond the org's evaluations_per_minute (120 by default). The body is streamed to a\ntemporary file and its rows validated one at a time, so it never sits in memory.","operationId":"create_evaluation_v1_evaluations_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRef"}}}},"401":{"$ref":"#/components/responses/401"},"409":{"$ref":"#/components/responses/409"},"422":{"$ref":"#/components/responses/422"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationCreate"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string, at most 200 characters. A repeat with the same key and the same body within 24 hours returns the first response instead of running again.","schema":{"type":"string","maxLength":200}}]},"get":{"tags":["evaluations"],"summary":"List Evaluations","description":"The org's evaluations, newest first, optionally of one run or one model.","operationId":"list_evaluations_v1_evaluations_get","parameters":[{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Evaluation_"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"}}}},"/v1/runs/{run_id}/evaluations":{"post":{"tags":["evaluations"],"summary":"Record Client Evaluation","description":"Results computed in your own loop, shown on the run's page next to server-side ones. Free. Honors\nIdempotency-Key.","operationId":"record_client_evaluation_v1_runs__run_id__evaluations_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string, at most 200 characters. A repeat with the same key and the same body within 24 hours returns the first response instead of running again.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEvaluation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evaluation"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/evaluations/{evaluation_id}":{"get":{"tags":["evaluations"],"summary":"Get Evaluation","description":"`results.rows_url` is signed afresh on each read.","operationId":"get_evaluation_v1_evaluations__evaluation_id__get","parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evaluation"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}}},"/v1/futures/{future_id}":{"get":{"tags":["futures"],"summary":"Get Future","description":"With wait_s > 0, holds the request until the op leaves pending/running or wait_s (at most 30) runs out. A\nfailed op has error {code, message}: trainer_lost, oom, no_gradients, cancelled, invalid_datum,\ncontext_too_long (a datum renders to more than the base's max_question_tokens), internal.\nA waiting request holds no database connection and no worker thread.","operationId":"get_future_v1_futures__future_id__get","parameters":[{"name":"future_id","in":"path","required":true,"schema":{"type":"string","title":"Future Id"}},{"name":"wait_s","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0.0,"title":"Wait S"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Future"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}}},"/v1/futures/retrieve":{"post":{"tags":["futures"],"summary":"Retrieve Futures","description":"Several futures in request order, returned once all are settled or wait_s runs out. 404 if any is missing.","operationId":"retrieve_futures_v1_futures_retrieve_post","parameters":[{"name":"wait_s","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0.0,"title":"Wait S"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveFutures"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Future"},"title":"Response Retrieve Futures V1 Futures Retrieve Post"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}}},"/v1/futures/{future_id}/cancel":{"post":{"tags":["futures"],"summary":"Cancel Future","description":"A pending op becomes cancelled and is skipped in its run's sequence; a running or settled one is returned\nunchanged. Cancelling provision_run closes the run.","operationId":"cancel_future_v1_futures__future_id__cancel_post","parameters":[{"name":"future_id","in":"path","required":true,"schema":{"type":"string","title":"Future Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Future"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/whoami":{"get":{"tags":["account"],"summary":"Whoami","description":"The org and credential behind the request (user_id is null for an API key), the org's limits, whether it\nhas continuous models (only for invited organizations) and whether it has zero data retention. The dashboard reads\nit here.","operationId":"whoami_v1_whoami_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoAmI"}}}},"401":{"$ref":"#/components/responses/401"},"422":{"$ref":"#/components/responses/422"}}}},"/v1/balance":{"get":{"tags":["account"],"summary":"Get Balance","description":"The org's prepaid balance in USD: credits bought or granted, minus usage so far. At $0 or less paid calls\nanswer 402 insufficient_balance. Null on a server without billing. Not in whoami: the dashboard calls whoami\nbefore every page, and this asks Metronome. 429 rate_limited past billing_requests_per_minute (300) per org.","operationId":"get_balance_v1_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"401":{"$ref":"#/components/responses/401"},"422":{"$ref":"#/components/responses/422"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/usage":{"get":{"tags":["account"],"summary":"Get Usage","description":"Hourly usage (at most 14 days per call) per kind, continuous model (`project`), base, model and run: decide\ninput tokens and training GPU-seconds, with cost from the configured prices. Rows appear once the worker has rolled\nthem up. Without `ending_before` it is now; without `starting_on`, 14 days before `ending_before`.","operationId":"get_usage_v1_usage_get","parameters":[{"name":"starting_on","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starting On"}},{"name":"ending_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ending Before"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsageRow"},"title":"Response Get Usage V1 Usage Get"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"}}}},"/v1/user_reports":{"post":{"tags":["user reports"],"summary":"Create Report","description":"Tell the Endor team that something didn't work as expected (`bug`), was unclear (`confusing`), or that an\nintegration runs (`works`). Every report is read. 429 rate_limited after 20 reports an hour from one org.","operationId":"create_report_v1_user_reports_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserReportCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserReportCreated"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"}}}},"/v1/corrections":{"post":{"tags":["corrections"],"summary":"Create Correction","description":"Correct a decision, whichever model answered it: for some of its questions, whether the model answered right\nand, if not, the right answer. One correction per decision: sending again replaces it whole, and the same questions\nand comment again change nothing. Free. 403 zero_data_retention when the org has zero data retention (its\ndecisions aren't stored); 404 not_found for anything but an answered decision of the org; 422\ninvalid_input naming `questions.<name>` for a question the decision didn't ask, or `questions.<name>.answer` for an\nanswer that doesn't fit the question or contradicts `correct`. Honors Idempotency-Key.","operationId":"create_correction_v1_corrections_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Correction"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"409":{"$ref":"#/components/responses/409"}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string, at most 200 characters. A repeat with the same key and the same body within 24 hours returns the first response instead of running again.","schema":{"type":"string","maxLength":200}}]}},"/v1/corrections/batch":{"post":{"tags":["corrections"],"summary":"Create Corrections","description":"Many corrections at once (1 to 1,000 items), each as POST /v1/corrections; the active correction of each item,\nin order. All or nothing: every item is checked first, and one that fails stops the call with nothing kept. 404\nnot_found naming `items[i].request_id`, 422 invalid_input naming `items[i].questions.<name>`. Honors\nIdempotency-Key.","operationId":"create_corrections_v1_corrections_batch_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionBatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionList"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"409":{"$ref":"#/components/responses/409"}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string, at most 200 characters. A repeat with the same key and the same body within 24 hours returns the first response instead of running again.","schema":{"type":"string","maxLength":200}}]}},"/v1/corrections/{request_id}":{"get":{"tags":["corrections"],"summary":"Get Correction","description":"The decision's active correction. 404 not_found as for POST, and when the decision has none.","operationId":"get_correction_v1_corrections__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Correction"}}}},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"}}},"delete":{"tags":["corrections"],"summary":"Withdraw Correction","description":"Withdraw the decision's correction. 404 not_found as for GET.","operationId":"withdraw_correction_v1_corrections__request_id__delete","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"$ref":"#/components/responses/422"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"}}}},"/v1/training_data":{"delete":{"tags":["training data"],"summary":"Delete Training Data","description":"Deletes all of the org's training data at once: every dataset (its name is free again) and the stored rows of\nevery server-side evaluation (rows sent inline and per-row results; the evaluation keeps its summary, without\n`rows_url`). An evaluation still running fails with training_data_deleted. Trained models are kept. Can't be\nundone: the files are removed now, not after the 30 days a single delete waits. Returns how many datasets and\nevaluations it deleted; calling it again deletes nothing more.","operationId":"delete_training_data_v1_training_data_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingDataDeleted"}}}},"401":{"$ref":"#/components/responses/401"},"409":{"$ref":"#/components/responses/409"},"422":{"$ref":"#/components/responses/422"}}}}},"components":{"schemas":{"AdamParams":{"properties":{"learning_rate":{"type":"number","minimum":0.0,"title":"Learning Rate","default":0.0001},"beta1":{"type":"number","exclusiveMaximum":1.0,"minimum":0.0,"title":"Beta1","default":0.9},"beta2":{"type":"number","exclusiveMaximum":1.0,"minimum":0.0,"title":"Beta2","default":0.95},"eps":{"type":"number","exclusiveMinimum":0.0,"title":"Eps","default":1e-12},"weight_decay":{"type":"number","minimum":0.0,"title":"Weight Decay","default":0.0},"grad_clip_norm":{"type":"number","minimum":0.0,"title":"Grad Clip Norm","default":0.0}},"type":"object","title":"AdamParams"},"Balance":{"properties":{"balance_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Usd"}},"type":"object","required":["balance_usd"],"title":"Balance"},"BaseModelEntry":{"properties":{"id":{"type":"string","title":"Id"},"params":{"type":"string","title":"Params"},"provider":{"type":"string","title":"Provider"},"leaderboard_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Leaderboard Rank"},"decision_index":{"anyOf":[{"$ref":"#/components/schemas/DecisionIndexEntry"},{"type":"null"}]},"tokens_per_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens Per S"},"tokens_per_s_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tokens Per S Source"},"hf_repo":{"type":"string","title":"Hf Repo"},"hf_revision":{"type":"string","title":"Hf Revision"},"contract":{"type":"string","title":"Contract"},"contract_version":{"type":"integer","title":"Contract Version"},"max_options":{"type":"integer","title":"Max Options"},"trainable":{"type":"boolean","title":"Trainable"},"lora_targets":{"items":{"type":"string"},"type":"array","title":"Lora Targets"},"default_rank":{"type":"integer","title":"Default Rank"},"max_rank":{"type":"integer","title":"Max Rank"},"modalities":{"items":{"type":"string"},"type":"array","title":"Modalities"},"max_question_tokens":{"type":"integer","title":"Max Question Tokens"},"price_per_mtok_decide":{"type":"number","title":"Price Per Mtok Decide"},"price_per_mtok_decide_continuous_learning":{"type":"number","title":"Price Per Mtok Decide Continuous Learning"},"price_per_gpu_hour":{"type":"number","title":"Price Per Gpu Hour"}},"type":"object","required":["id","params","provider","hf_repo","hf_revision","contract","contract_version","max_options","trainable","lora_targets","default_rank","max_rank","modalities","max_question_tokens","price_per_mtok_decide","price_per_mtok_decide_continuous_learning","price_per_gpu_hour"],"title":"BaseModelEntry","description":"A base model of the catalog. Call it by its `id` (`<owner>/<model>`, as on Hugging Face), through a continuous\nmodel on it, or with a model trained on it in a custom project."},"BaseModelList":{"properties":{"base_models":{"items":{"$ref":"#/components/schemas/BaseModelEntry"},"type":"array","title":"Base Models"}},"type":"object","required":["base_models"],"title":"BaseModelList"},"ChoiceAnswer":{"properties":{"type":{"type":"string","const":"choice","title":"Type","default":"choice"},"choice":{"type":"string","title":"Choice"},"probabilities":{"additionalProperties":{"type":"number"},"type":"object","title":"Probabilities"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["type","choice","probabilities","confidence"],"title":"ChoiceAnswer"},"ChoiceQuestion":{"properties":{"type":{"type":"string","const":"choice","title":"Type"},"instructions":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Instructions"},"criteria":{"additionalProperties":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]},"type":"object","title":"Criteria"}},"additionalProperties":false,"type":"object","required":["type","criteria"],"title":"ChoiceQuestion"},"ClientEvaluation":{"properties":{"model":{"type":"string","title":"Model"},"step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Step"},"name":{"type":"string","title":"Name","default":"eval"},"results":{"additionalProperties":true,"type":"object","title":"Results"}},"type":"object","required":["model","results"],"title":"ClientEvaluation","description":"Results computed by the SDK, recorded for the dashboard."},"Correction":{"properties":{"request_id":{"type":"string","title":"Request Id"},"project":{"type":"string","title":"Project"},"questions":{"additionalProperties":{"$ref":"#/components/schemas/QuestionCorrectionView"},"type":"object","title":"Questions"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["request_id","project","questions","comment","created_at"],"title":"Correction","description":"The decision's active correction."},"CorrectionBatch":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CorrectionCreate"},"type":"array","maxItems":1000,"minItems":1,"title":"Items"}},"type":"object","required":["items"],"title":"CorrectionBatch"},"CorrectionCreate":{"properties":{"request_id":{"type":"string","title":"Request Id","description":"The decision's id: its response's `id` (or X-Request-Id), `req_...`."},"questions":{"additionalProperties":{"$ref":"#/components/schemas/QuestionCorrection"},"type":"object","maxProperties":64,"minProperties":1,"title":"Questions","description":"One or more of the decision's questions, by name."},"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment","description":"Anything that helps, such as what was misread (1,000 characters at most)."}},"type":"object","required":["request_id","questions"],"title":"CorrectionCreate"},"CorrectionList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Correction"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"CorrectionList"},"CustomEntryInfo":{"properties":{"kind":{"type":"string","const":"custom","title":"Kind","default":"custom"},"base_model":{"type":"string","title":"Base Model"},"training_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Run Id"},"step":{"type":"integer","title":"Step"},"parent_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Model"}},"type":"object","required":["base_model","training_run_id","step","parent_model"],"title":"CustomEntryInfo","description":"A custom project's model in production, called by its name."},"CustomModel":{"properties":{"name":{"type":"string","title":"Name"},"base_model":{"type":"string","title":"Base Model"},"production":{"type":"boolean","title":"Production"},"state":{"type":"string","enum":["production","archived","saving"],"title":"State"},"promoted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Promoted At"},"serving":{"anyOf":[{"type":"string","enum":["deploying","live","failed"]},{"type":"null"}],"title":"Serving"},"serving_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serving Error"},"contract":{"type":"string","title":"Contract"},"step":{"type":"integer","title":"Step"},"has_optimizer":{"type":"boolean","title":"Has Optimizer"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"training_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Run Id"},"parent_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Model"},"loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loss"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"user_metadata":{"additionalProperties":true,"type":"object","title":"User Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","base_model","production","state","promoted_at","contract","step","has_optimizer","size_bytes","training_run_id","expires_at","user_metadata","created_at"],"title":"CustomModel","description":"A custom project's model: trained with the SDK (a run's save), called by its name while in production. `state`\nproduction or archived, and `production` the same as a bool. Archived models (every save starts archived) are\nrefused by decisions (409 model_not_in_production) but can be downloaded, evaluated, trained from and promoted.\nProduction models never expire: promoting one removes its TTL, also for after it is archived again (PATCH\nttl_seconds gives it a new one). `promoted_at`: when it last went to production (null while archived); `serving`,\nin production: deploying until a decision server has loaded it (decisions are accepted, and the first ones may\nwait for the load), then live, or failed when it couldn't be loaded (`serving_error` says why; promoting it again\nretries); null while archived. `parent_model`: the model its run started from; `loss` and `accuracy`: the\nrun's train/loss and train/accuracy when it was saved. `state` saving: its save_checkpoint hasn't completed (only\nGET /v1/custom_models/{name} shows it; every other call that names it answers 409 model_not_ready)."},"CustomModelPatch":{"properties":{"ttl_seconds":{"anyOf":[{"type":"integer","maximum":315360000.0,"minimum":3600.0},{"type":"null"}],"title":"Ttl Seconds"}},"additionalProperties":false,"type":"object","title":"CustomModelPatch","description":"Only the fields sent change. `ttl_seconds`: an archived model expires that long from now (null: kept); 409\nmodel_in_production on a production model."},"Dataset":{"properties":{"name":{"type":"string","title":"Name"},"n_rows":{"type":"integer","title":"N Rows"},"n_labelled_questions":{"type":"integer","title":"N Labelled Questions"},"question_types":{"additionalProperties":{"type":"integer"},"type":"object","title":"Question Types"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","n_rows","n_labelled_questions","question_types","created_at"],"title":"Dataset"},"Datum":{"properties":{"state":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"title":"State"},"question":{"oneOf":[{"$ref":"#/components/schemas/NoulQuestion"},{"$ref":"#/components/schemas/ChoiceQuestion"},{"$ref":"#/components/schemas/ScoreQuestion"}],"title":"Question","discriminator":{"propertyName":"type","mapping":{"choice":"#/components/schemas/ChoiceQuestion","noul":"#/components/schemas/NoulQuestion","score":"#/components/schemas/ScoreQuestion"}}},"target":{"$ref":"#/components/schemas/Target"},"weight":{"type":"number","minimum":0.0,"title":"Weight","default":1.0}},"additionalProperties":false,"type":"object","required":["state","question","target"],"title":"Datum"},"DecisionIndexEntry":{"properties":{"engine":{"type":"string","title":"Engine"},"url":{"type":"string","title":"Url"},"name":{"type":"string","title":"Name"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"edition":{"type":"string","title":"Edition"},"updated":{"type":"string","title":"Updated"},"entrants":{"type":"integer","title":"Entrants"},"rank":{"type":"integer","title":"Rank"},"tied":{"type":"boolean","title":"Tied"},"meant_for":{"items":{"type":"string"},"type":"array","title":"Meant For"},"use_case_ranks":{"additionalProperties":{"type":"number"},"type":"object","title":"Use Case Ranks"},"task_ranks":{"additionalProperties":{"type":"integer"},"type":"object","title":"Task Ranks","default":{}},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["engine","url","name","edition","updated","entrants","rank","tied","meant_for","use_case_ranks"],"title":"DecisionIndexEntry","description":"A base's entry on the Jev Decision Index (multimodalart/jev-decision-index on Hugging Face), the community\nboard that runs every open Jev reproduction through the same public and private tests. Its scores are there."},"DecisionWarning":{"properties":{"code":{"type":"string","const":"state_truncated","title":"Code"},"question":{"type":"string","title":"Question"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","question","message"],"title":"DecisionWarning"},"Drift":{"properties":{"question":{"type":"string","title":"Question"},"changed":{"type":"boolean","title":"Changed"},"answer_shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Answer Shift"},"confidence_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Change"}},"type":"object","required":["question","changed","answer_shift","confidence_change"],"title":"Drift","description":"How the served version's recent answers to one question compare with its answers on the held-back decisions\nit was checked on: `answer_shift`, how far the mix of answers moved (0 to 1), and\n`confidence_change`, the change in how sure it is (the likeliest answer's mean probability). `changed`: the\ntraffic moved enough to matter (reported only; learning goes on as usual)."},"Evaluation":{"properties":{"id":{"type":"string","title":"Id"},"model":{"type":"string","title":"Model"},"dataset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset"},"training_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Run Id"},"source":{"type":"string","enum":["server","client"],"title":"Source"},"status":{"type":"string","enum":["pending","running","completed","failed"],"title":"Status"},"results":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Results"},"rows_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows Total"},"rows_done":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows Done"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","model","dataset","training_run_id","source","status","results","created_at"],"title":"Evaluation"},"EvaluationRef":{"properties":{"future_id":{"type":"string","title":"Future Id"},"evaluation_id":{"type":"string","title":"Evaluation Id"}},"type":"object","required":["future_id","evaluation_id"],"title":"EvaluationRef"},"ForwardRequest":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Datum"},"type":"array","maxItems":1024,"minItems":1,"title":"Data"},"loss_fn":{"type":"string","enum":["cross_entropy","brier"],"title":"Loss Fn","default":"cross_entropy"},"seq_id":{"type":"integer","minimum":0.0,"title":"Seq Id"}},"type":"object","required":["data","seq_id"],"title":"ForwardRequest"},"Future":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","enum":["pending","running","completed","failed","cancelled"],"title":"Status"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","kind","status","created_at"],"title":"Future"},"FutureRef":{"properties":{"future_id":{"type":"string","title":"Future Id"}},"type":"object","required":["future_id"],"title":"FutureRef"},"Learning":{"properties":{"status":{"type":"string","enum":["learning","training","waiting","up_to_date","out_of_credit","limit_reached"],"title":"Status"},"progress":{"type":"number","title":"Progress"},"serving":{"type":"string","title":"Serving"},"trained_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trained At"},"training_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Training Since"},"trainings":{"items":{"$ref":"#/components/schemas/Training"},"type":"array","title":"Trainings"},"drift":{"items":{"$ref":"#/components/schemas/Drift"},"type":"array","title":"Drift","default":[]}},"type":"object","required":["status","progress","serving","trained_at","trainings"],"title":"Learning","description":"A continuous model's learning, always on: `status` learning (it learns from new decisions), training (a\ntraining run is on now), waiting (nothing to learn from yet), up_to_date (it already answers as well as it can\nlearn to, so it waits for that to change), out_of_credit (the organization is out of credit; learning goes on\nonce it has credit) or limit_reached (the organization's daily learning limit; it goes on after midnight UTC);\n`progress`, the way to the next training run, 0 to 1, in distinct decisions it can learn from (a repeat doesn't\nmove it; about 2 minutes behind); `serving`, what `<project>` answers with now\n(`<project>:<version>`, or `<project>` while its base answers); `trained_at`, when training last ran (null:\nnever); `training_since`, when the training run on now started (null unless `status` is training); `trainings`,\nthe latest 50 runs, newest first; `drift`, per question, whether recent traffic has moved away from what the\nserved version was checked on (empty until a version has served enough decisions)."},"LoraConfig":{"properties":{"rank":{"anyOf":[{"type":"integer","maximum":256.0,"minimum":1.0},{"type":"null"}],"title":"Rank"},"alpha":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alpha"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"train_attn":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Train Attn"},"train_mlp":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Train Mlp"},"train_readout":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Train Readout"}},"type":"object","title":"LoraConfig","description":"Fields left out take the defaults below on a fresh run, and the saved model's values with `from_model` (where\nan explicit value that differs from the model's is 422 invalid_input)."},"MetricPoint":{"properties":{"step":{"type":"integer","title":"Step"},"key":{"type":"string","title":"Key"},"value":{"type":"number","title":"Value"},"source":{"type":"string","enum":["auto","client"],"title":"Source"},"time":{"type":"string","format":"date-time","title":"Time"}},"type":"object","required":["step","key","value","source","time"],"title":"MetricPoint"},"MetricsLog":{"properties":{"step":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Step"},"metrics":{"additionalProperties":{"type":"number"},"type":"object","maxProperties":100,"minProperties":1,"title":"Metrics"}},"type":"object","required":["metrics"],"title":"MetricsLog"},"ModelDownload":{"properties":{"files":{"items":{"$ref":"#/components/schemas/ModelFile"},"type":"array","title":"Files"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["files","expires_at"],"title":"ModelDownload"},"ModelEntry":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"release_date":{"type":"string","title":"Release Date"},"endor":{"oneOf":[{"$ref":"#/components/schemas/ProjectEntryInfo"},{"$ref":"#/components/schemas/CustomEntryInfo"}],"title":"Endor","discriminator":{"propertyName":"kind","mapping":{"custom":"#/components/schemas/CustomEntryInfo","project":"#/components/schemas/ProjectEntryInfo"}}}},"type":"object","required":["name","description","release_date","endor"],"title":"ModelEntry","description":"One name you can send as `model` in POST /v1/systemone, in TypeSafe's shape (`name`, `description`,\n`release_date`). `endor` is Endor's own detail; TypeSafe clients ignore it."},"ModelFile":{"properties":{"name":{"type":"string","title":"Name"},"size_bytes":{"type":"integer","title":"Size Bytes"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"url":{"type":"string","title":"Url"}},"type":"object","required":["name","size_bytes","url"],"title":"ModelFile"},"ModelList":{"properties":{"models":{"items":{"$ref":"#/components/schemas/ModelEntry"},"type":"array","title":"Models"}},"type":"object","required":["models"],"title":"ModelList"},"NoulAnswer":{"properties":{"type":{"type":"string","const":"noul","title":"Type","default":"noul"},"noul":{"type":"number","title":"Noul"}},"type":"object","required":["type","noul"],"title":"NoulAnswer"},"NoulCriteria":{"properties":{"true":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"True"},"false":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"False"}},"additionalProperties":false,"type":"object","title":"NoulCriteria"},"NoulQuestion":{"properties":{"type":{"type":"string","const":"noul","title":"Type"},"instructions":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Instructions"},"criteria":{"anyOf":[{"$ref":"#/components/schemas/NoulCriteria"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["type"],"title":"NoulQuestion"},"OptimStepRequest":{"properties":{"adam_params":{"$ref":"#/components/schemas/AdamParams","default":{"learning_rate":0.0001,"beta1":0.9,"beta2":0.95,"eps":1e-12,"weight_decay":0.0,"grad_clip_norm":0.0}},"seq_id":{"type":"integer","minimum":0.0,"title":"Seq Id"}},"type":"object","required":["seq_id"],"title":"OptimStepRequest"},"Page_CustomModel_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CustomModel"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"Page[CustomModel]"},"Page_Dataset_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Dataset"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"Page[Dataset]"},"Page_Evaluation_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Evaluation"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"Page[Evaluation]"},"Page_Project_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Project"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"Page[Project]"},"Page_Run_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Run"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"Page[Run]"},"Page_Version_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Version"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"Page[Version]"},"PredictRequest":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/PredictRow"},"type":"array","maxItems":1024,"minItems":1,"title":"Rows"},"seq_id":{"type":"integer","minimum":0.0,"title":"Seq Id"}},"type":"object","required":["rows","seq_id"],"title":"PredictRequest"},"PredictRow":{"properties":{"state":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"title":"State"},"questions":{"additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/NoulQuestion"},{"$ref":"#/components/schemas/ChoiceQuestion"},{"$ref":"#/components/schemas/ScoreQuestion"}],"discriminator":{"propertyName":"type","mapping":{"choice":"#/components/schemas/ChoiceQuestion","noul":"#/components/schemas/NoulQuestion","score":"#/components/schemas/ScoreQuestion"}}},"type":"object","title":"Questions"}},"type":"object","required":["state","questions"],"title":"PredictRow","description":"A decision to answer: one state and its named questions, as in POST /v1/systemone. A dataset row's other fields\n(id, labels, weight) are ignored. Text and JSON only: images in a state aren't supported here yet."},"Project":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"base_model":{"type":"string","title":"Base Model"},"production":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Production"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview"},"auto_promote":{"type":"boolean","title":"Auto Promote"},"promoted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Promoted At"},"versions":{"type":"integer","title":"Versions"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","description","base_model","production","preview","auto_promote","promoted_at","versions","created_at"],"title":"Project","description":"A continuous model. `production`: the version `<project>` answers with (null: the base, before a\nversion is promoted); `preview`: the newest version while it isn't in production, `<project>:preview` (null when\nthe newest is in production, as with auto-promote on unless a check held it, and before the first version);\n`auto_promote`: each new version goes to production at once (on for a new project, and turned off by promoting an\nolder one); `promoted_at`: when the production version last changed; `versions`: how many it has."},"ProjectCreate":{"properties":{"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,62}$","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"base_model":{"type":"string","title":"Base Model"}},"additionalProperties":false,"type":"object","required":["name","base_model"],"title":"ProjectCreate","description":"A continuous model: Endor trains new versions of it from its decisions, and its decisions are billed at the\nbase's continuous-learning price (GET /v1/base_models). `base_model` is chosen here and never changes. `<project>`\nanswers with the production version (the base until the first one) and `<project>:preview` with the newest while\nit isn't in production. 409 conflict if the org already has a continuous model of this name, 409 name_taken if a\ncustom project's model has it; 409 limit_reached at max_projects_per_org (GET /v1/whoami `limits`)."},"ProjectEntryInfo":{"properties":{"kind":{"type":"string","const":"project","title":"Kind","default":"project"},"project":{"type":"string","title":"Project"},"environment":{"type":"string","enum":["production","preview"],"title":"Environment"},"base_model":{"type":"string","title":"Base Model"},"model":{"type":"string","title":"Model"}},"type":"object","required":["project","environment","base_model","model"],"title":"ProjectEntryInfo","description":"`<project>` (environment \"production\": its production version, or its base before the first) or\n`<project>:preview` (environment \"preview\": its newest version, while that isn't in production)."},"ProjectPatch":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"auto_promote":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Promote"}},"additionalProperties":false,"type":"object","title":"ProjectPatch","description":"Fields left out stay as they are. `auto_promote`: true promotes the preview at once and every new version after\nit; false keeps the production version until you promote one (POST\n/v1/projects/{project}/versions/{version}/promote). The base model never changes (422 invalid_input for\n`base_model`)."},"Promote":{"properties":{"replace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replace"}},"additionalProperties":false,"type":"object","title":"Promote","description":"`replace`: a production model to archive in the same step, when every production slot is taken (409\nproduction_full without it). The dashboard confirms by having the user type that model's name."},"QuestionCorrection":{"properties":{"correct":{"type":"boolean","title":"Correct","description":"Whether the model answered the question right."},"answer":{"title":"Answer","description":"The right answer, in the question's form: a choice's option key, a noul's true or false, a score's level index (0 is the first level). Optional: with correct: false and no answer, Endor knows only that the model's answer was wrong (a noul's answer, and the answer of a choice or score with two options, follow from it)."}},"type":"object","required":["correct"],"title":"QuestionCorrection"},"QuestionCorrectionView":{"properties":{"correct":{"type":"boolean","title":"Correct"},"answer":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Answer"},"served":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"string"}],"title":"Served"}},"type":"object","required":["correct","answer","served"],"title":"QuestionCorrectionView","description":"`answer`: the right answer as learning uses it (what was served when it was correct; null when only known to\nbe wrong). `served`: what Endor answered, in the same form."},"RetrieveFutures":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":256,"minItems":1,"title":"Ids"}},"type":"object","required":["ids"],"title":"RetrieveFutures"},"Run":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"base_model":{"type":"string","title":"Base Model"},"contract":{"type":"string","title":"Contract"},"lora":{"$ref":"#/components/schemas/LoraConfig"},"status":{"type":"string","enum":["provisioning","ready","idle","closing","closed","failed"],"title":"Status"},"ready_future_id":{"type":"string","title":"Ready Future Id"},"step":{"type":"integer","title":"Step"},"total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Steps"},"seconds_per_step":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Seconds Per Step"},"ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ready At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"wandb":{"type":"boolean","title":"Wandb","default":false},"wandb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wandb Url"},"next_seq_id":{"type":"integer","title":"Next Seq Id"},"parent_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Model"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"code_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Hash"},"user_metadata":{"additionalProperties":true,"type":"object","title":"User Metadata"},"failure":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Failure"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","base_model","contract","lora","status","ready_future_id","step","next_seq_id","parent_model","tags","config","code_hash","user_metadata","created_at"],"title":"Run"},"RunCreate":{"properties":{"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"},"from_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Model"},"model":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,62}$"},{"type":"null"}],"title":"Model"},"include_optimizer":{"type":"boolean","title":"Include Optimizer","default":false},"lora":{"$ref":"#/components/schemas/LoraConfig","default":{}},"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"config":{"additionalProperties":true,"type":"object","title":"Config","default":{}},"code_hash":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Code Hash"},"user_metadata":{"additionalProperties":true,"type":"object","title":"User Metadata","default":{}},"total_steps":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":1.0},{"type":"null"}],"title":"Total Steps"},"wandb":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Wandb"}},"additionalProperties":false,"type":"object","title":"RunCreate","description":"A training run for a custom project (POST /v1/runs). `base_model` (a public id from GET /v1/base_models):\nrequired unless `from_model` (the name of a custom project's model: warm start from its weights, on its base).\n`model`: the model name save_checkpoint saves under when it gets none (409 conflict here when a model already has\nit, 409 name_taken when a continuous model does). `name`: the run's own label.\n`wandb`: log to Weights & Biases (null: when the org has a W&B connection)."},"RunPatch":{"properties":{"total_steps":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":1.0},{"type":"null"}],"title":"Total Steps"}},"additionalProperties":false,"type":"object","title":"RunPatch","description":"Fields left out stay as they are."},"SaveCheckpointRequest":{"properties":{"name":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,62}$"},{"type":"null"}],"title":"Name"},"include_optimizer":{"type":"boolean","title":"Include Optimizer","default":false},"ttl_seconds":{"anyOf":[{"type":"integer","maximum":315360000.0,"minimum":3600.0},{"type":"null"}],"title":"Ttl Seconds"},"user_metadata":{"additionalProperties":true,"type":"object","title":"User Metadata","default":{}},"seq_id":{"type":"integer","minimum":0.0,"title":"Seq Id"}},"type":"object","required":["seq_id"],"title":"SaveCheckpointRequest","description":"Saves the run's weights as a new model, inactive until promoted (POST\n/v1/custom_models/{name}/promote). Each save is a new model: `name` must be free (409 conflict; 409 name_taken\nwhen a continuous model has it)."},"ScoreAnswer":{"properties":{"type":{"type":"string","const":"score","title":"Type","default":"score"},"score":{"type":"number","title":"Score"},"legend":{"additionalProperties":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]},"type":"object","title":"Legend"},"probabilities":{"additionalProperties":{"type":"number"},"type":"object","title":"Probabilities"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["type","score","legend","probabilities","confidence"],"title":"ScoreAnswer"},"ScoreQuestion":{"properties":{"type":{"type":"string","const":"score","title":"Type"},"instructions":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Instructions"},"criteria":{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]},"type":"array","title":"Criteria","description":"The levels of one scale, lowest first (2 to 10): each item describes one level, e.g. [\"Clearly not Finnish\", \"Possibly Finnish\", \"Unmistakably Finnish\"]. Not a list of things to check."}},"additionalProperties":false,"type":"object","required":["type","criteria"],"title":"ScoreQuestion"},"SystemOneRequest":{"properties":{"model":{"type":"string","title":"Model"},"state":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"title":"State","description":"Text, a JSON object or a list: the data the decision is about. On a base that reads images, it may hold images: {\"type\": \"image\", \"media_type\": \"image/png\", \"data\": \"<base64>\"} as the state, a list item or an object value."},"questions":{"additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/NoulQuestion"},{"$ref":"#/components/schemas/ChoiceQuestion"},{"$ref":"#/components/schemas/ScoreQuestion"}],"discriminator":{"propertyName":"type","mapping":{"choice":"#/components/schemas/ChoiceQuestion","noul":"#/components/schemas/NoulQuestion","score":"#/components/schemas/ScoreQuestion"}}},"type":"object","title":"Questions"},"exclude_from_training":{"type":"boolean","title":"Exclude From Training","description":"Keep this decision out of continuous learning, for example a benchmark or an evaluation. It is still answered, billed and logged.","default":false}},"type":"object","required":["model","state","questions"],"title":"SystemOneRequest"},"SystemOneResponse":{"properties":{"id":{"type":"string","title":"Id","description":"The decision's id, the same as its X-Request-Id header: correct the decision with it as `request_id` (POST /v1/corrections). Endor's own field; TypeSafe clients ignore it."},"model":{"type":"string","title":"Model"},"answers":{"additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/NoulAnswer"},{"$ref":"#/components/schemas/ChoiceAnswer"},{"$ref":"#/components/schemas/ScoreAnswer"}],"discriminator":{"propertyName":"type","mapping":{"choice":"#/components/schemas/ChoiceAnswer","noul":"#/components/schemas/NoulAnswer","score":"#/components/schemas/ScoreAnswer"}}},"type":"object","title":"Answers"},"usage":{"$ref":"#/components/schemas/Usage"},"warnings":{"anyOf":[{"items":{"$ref":"#/components/schemas/DecisionWarning"},"type":"array"},{"type":"null"}],"title":"Warnings","description":"Only when there are some. `state_truncated`: the base read only the start of the state for this question, as much as fits its max_question_tokens (GET /v1/base_models), as its reference code does; the answer is about that part. Endor's own field; TypeSafe clients ignore it."}},"type":"object","required":["id","model","answers","usage"],"title":"SystemOneResponse"},"Target":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"probs":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Probs"}},"additionalProperties":false,"type":"object","title":"Target","description":"What the loss compares against: a hard `label` (an option id of the question) or soft `probs` over every\noption. Exactly one of the two."},"Training":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"decisions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decisions"},"labels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Labels"},"checked":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Checked"},"kept":{"type":"boolean","title":"Kept"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"low":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Low"},"high":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"High"},"loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loss"},"against":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Against"},"against_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Against Accuracy"},"against_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Against Loss"},"worse":{"items":{"type":"string"},"type":"array","title":"Worse"},"held":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Held"},"discarded":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discarded"}},"type":"object","required":["at","kept","version","accuracy","low","high","loss","against","against_accuracy","against_loss","worse"],"title":"Training","description":"One training run of continuous learning: `kept` (saved as `version`, which `<project>` then served) or discarded\n(worse than the version it was checked against); `accuracy`, the share of held-back decisions it answered right, in\npercent, with a 95% interval `low` to `high` (null: nothing to check on), and `loss`, its mean cross-entropy there\n(lower is better); `against`, the version it was checked against (null: the base), with `against_accuracy` and\n`against_loss`, that model's on the same decisions; `worse`, the questions it was clearly worse on; `decisions`, how\nmany decisions the continuous model had made when the run started (null on runs from before it was recorded);\n`labels`, how many labels it had learned from by then (null as for `decisions`); `checked`, how many held-back\nanswers `accuracy` was measured on (one per question a decision asked); `held`, why a kept version stayed the\npreview instead of going live with auto-promote (its agreement with the frontier model fell against the live\nversion's, it almost stopped giving an answer the held-back decisions often have, or a first version isn't yet\nclearly better than the base model; null: it wasn't held); `discarded`, why a run wasn't kept (worse than the\nversion it was checked against, too few held-back answers to check it on, or worse than the base on general\nquestions it wasn't trained on; null: it was kept). `accuracy` is agreement with the reference (a frontier model's\nanswers), or with the customer's held-back answers once there are enough."},"TrainingDataDeleted":{"properties":{"datasets":{"type":"integer","title":"Datasets"},"evaluations":{"type":"integer","title":"Evaluations"}},"type":"object","required":["datasets","evaluations"],"title":"TrainingDataDeleted"},"Usage":{"properties":{"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens","default":0}},"type":"object","required":["input_tokens"],"title":"Usage"},"UsageRow":{"properties":{"hour":{"type":"string","format":"date-time","title":"Hour"},"kind":{"type":"string","enum":["decide","train"],"title":"Kind"},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"},"project_deleted":{"type":"boolean","title":"Project Deleted","default":false},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"training_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Run Id"},"input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Tokens"},"gpu_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gpu Seconds"},"continuous_learning":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Continuous Learning"},"price_per_mtok":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Per Mtok"},"base_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Cost Usd"},"continuous_learning_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Continuous Learning Cost Usd"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["hour","kind","project","base_model","model","training_run_id","input_tokens","gpu_seconds","cost_usd"],"title":"UsageRow","description":"Every field is always present; null where it doesn't apply to the kind. A continuous model's decisions have\n`project` (and `model`, the version that answered); decisions of a custom project's model have `project` null and\n`model` its name; decisions of a base model called by its id have `project` and `model` null (`base_model` says\nwhich); training (custom projects) has `project` null and `training_run_id`."},"UserReportCreate":{"properties":{"kind":{"type":"string","enum":["bug","confusing","works"],"title":"Kind","description":"bug: Endor did something you didn't expect; confusing: the docs, an error or a step was unclear; works: the integration runs."},"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message","description":"What you did, what happened and what you expected. No API keys or customer data."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[A-Za-z0-9]{1,40}$"},{"type":"null"}],"title":"Request Id","description":"The request it is about: an error's `request_id` or `X-Request-Id`."},"context":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object","maxProperties":30,"title":"Context","description":"Anything else that helps, such as the SDK version or the error code (30 keys at most)."}},"type":"object","required":["kind","message"],"title":"UserReportCreate"},"UserReportCreated":{"properties":{"id":{"type":"string","title":"Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","message"],"title":"UserReportCreated"},"Version":{"properties":{"name":{"type":"string","title":"Name"},"base_model":{"type":"string","title":"Base Model"},"production":{"type":"boolean","title":"Production"},"preview":{"type":"boolean","title":"Preview"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loss"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","base_model","production","preview","accuracy","loss","size_bytes","created_at"],"title":"Version","description":"One version of a continuous model, newest first. `production`: `<project>` answers with it;\n`preview`: it is the newest and not in production, `<project>:preview` (never both). Only those can be called;\npromote another to put it in production. `accuracy` (percent) and `loss`: from the check it passed when it was\ntrained (null when it had nothing to check on)."},"WhoAmI":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"org_id":{"type":"string","title":"Org Id"},"key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Id"},"limits":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"number"}]},"type":"object","title":"Limits","default":{}},"continuous_learning":{"type":"boolean","title":"Continuous Learning","default":false},"zero_data_retention":{"type":"boolean","title":"Zero Data Retention","default":false}},"type":"object","required":["user_id","org_id","key_id"],"title":"WhoAmI"},"DatasetCreate":{"additionalProperties":false,"description":"Inline JSON upload of decision rows (docs: DATA_FORMAT).","properties":{"name":{"pattern":"^[a-z0-9][a-z0-9._-]{0,62}$","title":"Name","type":"string"},"rows":{"items":{"$ref":"#/components/schemas/DecisionRow"},"maxItems":50000,"minItems":1,"title":"Rows","type":"array"}},"required":["name","rows"],"title":"DatasetCreate","type":"object"},"DecisionRow":{"additionalProperties":false,"description":"One dataset row: a TypeSafe-style decision request plus its labels.\n\n{\"id\": \"t-1\", \"state\": {...}, \"questions\": {\"dept\": {\"type\": \"choice\", ...}, \"urgent\": {\"type\": \"noul\", ...}},\n \"labels\": {\"dept\": \"billing\", \"urgent\": true}, \"weight\": 1.0}\n\nEvery question is answered against the same state. Questions without a label are unlabelled (fine for evaluation\ninputs and for teacher distillation, skipped by supervised training).","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Id"},"state":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"title":"State"},"questions":{"additionalProperties":{"discriminator":{"mapping":{"choice":"#/components/schemas/ChoiceQuestion","noul":"#/components/schemas/NoulQuestion","score":"#/components/schemas/ScoreQuestion"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/NoulQuestion"},{"$ref":"#/components/schemas/ChoiceQuestion"},{"$ref":"#/components/schemas/ScoreQuestion"}]},"title":"Questions","type":"object"},"labels":{"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"string"},{"type":"number"},{"additionalProperties":{"type":"number"},"type":"object"},{"items":{"type":"number"},"type":"array"}]},"default":{},"title":"Labels","type":"object"},"weight":{"default":1.0,"minimum":0,"title":"Weight","type":"number"}},"required":["state","questions"],"title":"DecisionRow","type":"object"},"EvaluationCreate":{"additionalProperties":false,"description":"`dataset` or `rows`, one of the two. Up to 32 MB and 50,000 rows, as a dataset upload. `model`: the name of a\ncustom project's model (in production or archived) or a base model's public id.","properties":{"model":{"title":"Model","type":"string"},"dataset":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dataset"},"rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/DecisionRow"},"maxItems":50000,"minItems":1,"type":"array"},{"type":"null"}],"default":null,"title":"Rows"},"training_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Training Run Id"},"metrics":{"default":["accuracy","nll","brier","ece","selective_accuracy"],"items":{"type":"string"},"title":"Metrics","type":"array"}},"required":["model"],"title":"EvaluationCreate","type":"object"},"Error":{"title":"Error","type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"additionalProperties":true,"properties":{"code":{"type":"string","description":"Stable, for programs: `not_found`, `invalid_input` ..."},"message":{"type":"string","description":"For people; may change."},"param":{"type":"string","description":"The field at fault, when known (`model`, `rows[3]`)."}}}},"example":{"error":{"code":"unknown_model","message":"No model 'tickets/v9'.","param":"model"}}}},"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"edk_...","description":"An organization API key from the dashboard (`edk_...`): `Authorization: Bearer edk_...`."}},"responses":{"401":{"description":"`unauthorized`: the API key is missing or not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`insufficient_balance`: the organization's prepaid balance is used up. Add credits in the dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`not_found` (the continuous model, dataset, run, model, evaluation or future), or `unknown_model`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`conflict`, `name_taken`, `limit_reached`, `no_base_model`, `model_not_ready`, `invalid_state`, `seq_conflict` or `run_active`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`invalid_input` and the other validation codes; `param` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` or `queue_full`: wait for `Retry-After` (seconds).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"529":{"description":"`overloaded`: the decision servers are busy. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"servers":[{"url":"https://api.endor.thetokencompany.com"}],"security":[{"ApiKey":[]}]}