Inspect one candidate run: state, phase, and content-free result
GET
/
api
/
v1
/
agents
/
{id}
/
candidate-runs
/
{run}
Inspect one candidate run: state, phase, and content-free result
curl --request GET \
--url http://127.0.0.1:18000/api/v1/agents/{id}/candidate-runs/{run} \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:18000/api/v1/agents/{id}/candidate-runs/{run}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:18000/api/v1/agents/{id}/candidate-runs/{run}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:18000/api/v1/agents/{id}/candidate-runs/{run}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"candidate_run": {
"agent": "<string>",
"agent_id": "<string>",
"control": {},
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"result": {
"candidate": {},
"cleaned_up": true,
"control": {},
"control_after": {},
"image_digest": "<string>",
"noise": 123,
"quality": {},
"ready_seconds": 123
},
"spec": {
"accelerator": "<string>",
"endpoint": "<string>",
"gpu_count": 8,
"label": "<string>",
"load": {
"concurrency": 128,
"input_tokens": 16384,
"output_tokens": 16384,
"requests": 2500,
"streaming": true,
"tokenizer": "<string>"
},
"model": "<string>",
"workload": {
"cancellation": "http-disconnect",
"command": [
"<string>"
],
"drain": "connection",
"image": "<string>",
"metrics_path": "/metrics",
"models_path": "/v1/models",
"port": 32768,
"protocol": "openai",
"readiness_path": "/health",
"shutdown_grace_seconds": 1800
},
"model_revision": "<string>",
"quality": {
"eval_set": "<string>",
"skip": true
},
"runtime_args": [
"<string>"
],
"timeout_seconds": 10830
},
"state": "queued",
"attempts": 123,
"created_by": "<string>",
"deadline_at": "2023-11-07T05:31:56Z",
"failure_code": "<string>",
"failure_detail": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"phase": "<string>",
"runs_in": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"category": "<string>",
"remediation": "<string>",
"request_id": "<string>",
"retryable": true
}
}⌘I
Inspect one candidate run: state, phase, and content-free result
curl --request GET \
--url http://127.0.0.1:18000/api/v1/agents/{id}/candidate-runs/{run} \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:18000/api/v1/agents/{id}/candidate-runs/{run}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:18000/api/v1/agents/{id}/candidate-runs/{run}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:18000/api/v1/agents/{id}/candidate-runs/{run}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"candidate_run": {
"agent": "<string>",
"agent_id": "<string>",
"control": {},
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"result": {
"candidate": {},
"cleaned_up": true,
"control": {},
"control_after": {},
"image_digest": "<string>",
"noise": 123,
"quality": {},
"ready_seconds": 123
},
"spec": {
"accelerator": "<string>",
"endpoint": "<string>",
"gpu_count": 8,
"label": "<string>",
"load": {
"concurrency": 128,
"input_tokens": 16384,
"output_tokens": 16384,
"requests": 2500,
"streaming": true,
"tokenizer": "<string>"
},
"model": "<string>",
"workload": {
"cancellation": "http-disconnect",
"command": [
"<string>"
],
"drain": "connection",
"image": "<string>",
"metrics_path": "/metrics",
"models_path": "/v1/models",
"port": 32768,
"protocol": "openai",
"readiness_path": "/health",
"shutdown_grace_seconds": 1800
},
"model_revision": "<string>",
"quality": {
"eval_set": "<string>",
"skip": true
},
"runtime_args": [
"<string>"
],
"timeout_seconds": 10830
},
"state": "queued",
"attempts": 123,
"created_by": "<string>",
"deadline_at": "2023-11-07T05:31:56Z",
"failure_code": "<string>",
"failure_detail": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"phase": "<string>",
"runs_in": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"category": "<string>",
"remediation": "<string>",
"request_id": "<string>",
"retryable": true
}
}