Observability
Get a model call
One model call: its request row, and its request and response bodies when one is stored. body_state says why there is none. The row answers even when the trace store does not: the body is then null with body_state unavailable.
GET
/
v1
/
requests
/
{request_id}
Get a model call
curl --request GET \
--url https://api.veri.studio/v1/requests/{request_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/requests/{request_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/requests/{request_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"deployment_id": "<string>",
"deployment_name": "<string>",
"model": "<string>",
"status_code": 123,
"streamed": true,
"latency_ms": 123,
"prompt_tokens": 123,
"cached_prompt_tokens": 123,
"completion_tokens": 123,
"created_at": "2023-11-07T05:31:56Z",
"body_state": "<string>",
"scores": [
{
"object": "<string>",
"id": "<string>",
"evaluator_id": "<string>",
"evaluator_version": 123,
"name": "<string>",
"target_type": "<string>",
"value": "<unknown>",
"source": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"request_id": "<string>",
"deployment_id": "<string>",
"thread_id": "<string>",
"target_revision": "<string>",
"experiment_id": "<string>",
"item_id": "<string>",
"passed": true,
"reasoning": "<string>",
"error": "<string>",
"author": "<string>",
"model_version_id": "<string>",
"monitor_id": "<string>",
"confidence": 123,
"probabilities": {}
}
],
"replica_id": "<string>",
"api": "<string>",
"agent": {
"key": "<string>",
"name": "<string>",
"kind": "<string>"
},
"thread_id": "<string>",
"session_id": "<string>",
"turn_index": 123,
"error_category": "<string>",
"error_message": "<string>",
"finish_reason": "<string>",
"ttft_ms": 123,
"completed_at": "2023-11-07T05:31:56Z",
"body_expires_at": "2023-11-07T05:31:56Z",
"input": {},
"output": "<unknown>"
}Authorizations
Response
One model call: the request row, and its body when one is stored.
stored | off | expired | dropped_cap | dropped_other | too_large |
not_covered | unavailable | unknown. unavailable means the body could
not be read just now: retry. A failed call with capture on reads stored:
status_code and the error fields tell the rest, and output holds whatever
came back. Failed calls are stored free.
Get a model call
curl --request GET \
--url https://api.veri.studio/v1/requests/{request_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/requests/{request_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/requests/{request_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"deployment_id": "<string>",
"deployment_name": "<string>",
"model": "<string>",
"status_code": 123,
"streamed": true,
"latency_ms": 123,
"prompt_tokens": 123,
"cached_prompt_tokens": 123,
"completion_tokens": 123,
"created_at": "2023-11-07T05:31:56Z",
"body_state": "<string>",
"scores": [
{
"object": "<string>",
"id": "<string>",
"evaluator_id": "<string>",
"evaluator_version": 123,
"name": "<string>",
"target_type": "<string>",
"value": "<unknown>",
"source": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"request_id": "<string>",
"deployment_id": "<string>",
"thread_id": "<string>",
"target_revision": "<string>",
"experiment_id": "<string>",
"item_id": "<string>",
"passed": true,
"reasoning": "<string>",
"error": "<string>",
"author": "<string>",
"model_version_id": "<string>",
"monitor_id": "<string>",
"confidence": 123,
"probabilities": {}
}
],
"replica_id": "<string>",
"api": "<string>",
"agent": {
"key": "<string>",
"name": "<string>",
"kind": "<string>"
},
"thread_id": "<string>",
"session_id": "<string>",
"turn_index": 123,
"error_category": "<string>",
"error_message": "<string>",
"finish_reason": "<string>",
"ttft_ms": 123,
"completed_at": "2023-11-07T05:31:56Z",
"body_expires_at": "2023-11-07T05:31:56Z",
"input": {},
"output": "<unknown>"
}
