curl --request GET \
--url https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}"
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))
}HttpResponse<String> response = Unirest.get("https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"pagination": {
"hasMore": true,
"nextCursor": "<string>"
},
"use_reading": "own_tool",
"run": {
"origin": "managed",
"series": {
"key": "<string>",
"period": "2023-12-25",
"agent": "<string>",
"agent_version": "<string>",
"model": "<string>",
"stack": "<string>",
"lock_digest": "<string>",
"repository": "<string>",
"category": "<string>",
"intent": "<string>",
"job": "<string>",
"commit": "<string>"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_kind": "<string>",
"test_status": "queued",
"agent": "<string>",
"stage": "sandbox",
"model_calls": 123,
"model": "<string>",
"repetition": 123,
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "<string>",
"completed_at": "<string>",
"early_stopped": true,
"wall_ms": 123,
"has_error": true,
"cell_agreed": true
},
"context": {
"environment": {
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"framework": "<string>"
},
"request_withheld": true,
"job_withheld": true,
"request": "<string>",
"intent": "<string>",
"job": "<string>",
"classifier_version": "<string>",
"agent_timeout_sec": 123
},
"pick": {
"outcome": "<string>",
"tool_key": "<string>",
"tool_display_name": "<string>",
"tool_brand_domain": "<string>",
"confidence": 123,
"classifier_version": "<string>",
"classifier_accuracy": {
"classifier_version": "<string>",
"basis": "labelled_test_set",
"note": "<string>",
"labelled_cases": 1,
"decidable_cases": 1,
"precision": {
"installed": {
"rate": 0.5,
"count": 1,
"of": 2
},
"stated_pick": {
"rate": 0.5,
"count": 1,
"of": 2
},
"built_its_own": {
"rate": 0.5,
"count": 1,
"of": 2
},
"no_provider": {
"rate": 0.5,
"count": 1,
"of": 2
},
"other_tool": {
"rate": 0.5,
"count": 1,
"of": 2
},
"none": {
"rate": 0.5,
"count": 1,
"of": 2
}
},
"unclassified": {
"rate": 0.5,
"count": 1,
"of": 2
},
"stated_pick_recall": {
"rate": 0.5,
"count": 1,
"of": 2
}
},
"category_precision": {
"classifier_version": "<string>",
"category_slug": "<string>",
"basis": "labelled_published_runs",
"note": "<string>",
"sampled_runs": 1,
"undecidable_runs": 1,
"minimum_reported": 2,
"precision": {
"installed": {
"rate": 0.5,
"count": 1,
"of": 1
},
"built_its_own": {
"rate": 0.5,
"count": 1,
"of": 1
},
"no_provider": {
"rate": 0.5,
"count": 1,
"of": 1
},
"none": {
"rate": 0.5,
"count": 1,
"of": 1
}
}
},
"decided_by": "<string>",
"tool_packages_withheld": true,
"tool_packages": [
"<string>"
],
"other_tools_withheld": true,
"other_tools": [
"<string>"
],
"overlapping_tools": [
{
"tool_key": "<string>",
"display_name": "<string>"
}
],
"custom_job": true,
"diff_truncated": true,
"statement_index": 5000
},
"integration": {
"version": 2,
"tool_key": "<string>",
"coverage": {
"transcript": true,
"proxy": true
},
"packages": [
{
"registry": {
"captured_at": "2023-11-07T05:31:56Z",
"source": "registry.npmjs.org",
"latest_version": "<string>",
"comparison": "matches_registry_latest",
"comparison_reason": "available",
"deprecated": true,
"deprecation_reason": "available"
},
"name": "<string>",
"version": "<string>",
"source": "install_log"
}
],
"vendor_commands": [
{
"package": "<string>",
"count": 1,
"ecosystem": "npm",
"executable": "<string>",
"source": "catalogue"
}
],
"docs": [
{
"host": "<string>",
"requests": 1,
"failures": 1,
"repeated_requests": 1
}
],
"truncated": true,
"command_identity_version": 1
},
"evidence": {
"availability": "recorded",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123,
"kind": "search",
"url": "<string>",
"status_code": 123,
"recorded_at": "<string>",
"observed_at": 123,
"detail": {
"queries": [
"<string>"
],
"path": "<string>",
"packages": [
"<string>"
],
"source": "<string>",
"method": "<string>",
"exit_code": 123,
"failed": true,
"text_withheld": true,
"packages_withheld": true,
"command_withheld": true
}
}
],
"pagination": {
"has_more": true,
"next_cursor": "<string>",
"limit": 50
}
},
"check": {
"source": "default",
"status": "passed",
"failure_kind": "build",
"baseline_status": "passed",
"exit_code": 123,
"duration_ms": 123,
"time_limit_sec": 123,
"custom_status": "passed",
"custom_baseline_status": "passed",
"custom_time_limit_sec": 123,
"version": "<string>"
}
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}Get Agent Picks run evidence
Inspect a run owned by the account, project and test together. Includes queued, running, failed, cancelled and completed runs. Request and job text are withheld; request_withheld and job_withheld distinguish withheld snapshots from absent ones; pick is null without a classification. Events are recorded observations ordered by seq then id, not inferred causes or proof of a working integration. not_retained means there are no retained events, including before a running run records them. Raw commands, error text, provider prompts and artifacts are withheld. URLs show only their HTTP origin. Search terms, file paths and unknown runtime tool names are withheld with explicit indicators. Packages must match the configured tool catalog. check is the run’s success check (source, status, failure_kind, baseline_status, exit_code, duration_ms, time_limit_sec, custom_status, custom_baseline_status, custom_time_limit_sec and version; its output is withheld), null for a run with no check. Requires Agent Picks. limit defaults to 50, maximum 100. Pass the returned next_cursor verbatim as cursor with the same filters until has_more is false. Detail pagination is inside evidence; list pagination is at the top level. Invalid parameters or a cursor for another scope return 400. Reads cannot start, cancel or change a run. Requires the visibility.read scope.
curl --request GET \
--url https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}"
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))
}HttpResponse<String> response = Unirest.get("https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"pagination": {
"hasMore": true,
"nextCursor": "<string>"
},
"use_reading": "own_tool",
"run": {
"origin": "managed",
"series": {
"key": "<string>",
"period": "2023-12-25",
"agent": "<string>",
"agent_version": "<string>",
"model": "<string>",
"stack": "<string>",
"lock_digest": "<string>",
"repository": "<string>",
"category": "<string>",
"intent": "<string>",
"job": "<string>",
"commit": "<string>"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_kind": "<string>",
"test_status": "queued",
"agent": "<string>",
"stage": "sandbox",
"model_calls": 123,
"model": "<string>",
"repetition": 123,
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "<string>",
"completed_at": "<string>",
"early_stopped": true,
"wall_ms": 123,
"has_error": true,
"cell_agreed": true
},
"context": {
"environment": {
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"framework": "<string>"
},
"request_withheld": true,
"job_withheld": true,
"request": "<string>",
"intent": "<string>",
"job": "<string>",
"classifier_version": "<string>",
"agent_timeout_sec": 123
},
"pick": {
"outcome": "<string>",
"tool_key": "<string>",
"tool_display_name": "<string>",
"tool_brand_domain": "<string>",
"confidence": 123,
"classifier_version": "<string>",
"classifier_accuracy": {
"classifier_version": "<string>",
"basis": "labelled_test_set",
"note": "<string>",
"labelled_cases": 1,
"decidable_cases": 1,
"precision": {
"installed": {
"rate": 0.5,
"count": 1,
"of": 2
},
"stated_pick": {
"rate": 0.5,
"count": 1,
"of": 2
},
"built_its_own": {
"rate": 0.5,
"count": 1,
"of": 2
},
"no_provider": {
"rate": 0.5,
"count": 1,
"of": 2
},
"other_tool": {
"rate": 0.5,
"count": 1,
"of": 2
},
"none": {
"rate": 0.5,
"count": 1,
"of": 2
}
},
"unclassified": {
"rate": 0.5,
"count": 1,
"of": 2
},
"stated_pick_recall": {
"rate": 0.5,
"count": 1,
"of": 2
}
},
"category_precision": {
"classifier_version": "<string>",
"category_slug": "<string>",
"basis": "labelled_published_runs",
"note": "<string>",
"sampled_runs": 1,
"undecidable_runs": 1,
"minimum_reported": 2,
"precision": {
"installed": {
"rate": 0.5,
"count": 1,
"of": 1
},
"built_its_own": {
"rate": 0.5,
"count": 1,
"of": 1
},
"no_provider": {
"rate": 0.5,
"count": 1,
"of": 1
},
"none": {
"rate": 0.5,
"count": 1,
"of": 1
}
}
},
"decided_by": "<string>",
"tool_packages_withheld": true,
"tool_packages": [
"<string>"
],
"other_tools_withheld": true,
"other_tools": [
"<string>"
],
"overlapping_tools": [
{
"tool_key": "<string>",
"display_name": "<string>"
}
],
"custom_job": true,
"diff_truncated": true,
"statement_index": 5000
},
"integration": {
"version": 2,
"tool_key": "<string>",
"coverage": {
"transcript": true,
"proxy": true
},
"packages": [
{
"registry": {
"captured_at": "2023-11-07T05:31:56Z",
"source": "registry.npmjs.org",
"latest_version": "<string>",
"comparison": "matches_registry_latest",
"comparison_reason": "available",
"deprecated": true,
"deprecation_reason": "available"
},
"name": "<string>",
"version": "<string>",
"source": "install_log"
}
],
"vendor_commands": [
{
"package": "<string>",
"count": 1,
"ecosystem": "npm",
"executable": "<string>",
"source": "catalogue"
}
],
"docs": [
{
"host": "<string>",
"requests": 1,
"failures": 1,
"repeated_requests": 1
}
],
"truncated": true,
"command_identity_version": 1
},
"evidence": {
"availability": "recorded",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123,
"kind": "search",
"url": "<string>",
"status_code": 123,
"recorded_at": "<string>",
"observed_at": 123,
"detail": {
"queries": [
"<string>"
],
"path": "<string>",
"packages": [
"<string>"
],
"source": "<string>",
"method": "<string>",
"exit_code": 123,
"failed": true,
"text_withheld": true,
"packages_withheld": true,
"command_withheld": true
}
}
],
"pagination": {
"has_more": true,
"next_cursor": "<string>",
"limit": 50
}
},
"check": {
"source": "default",
"status": "passed",
"failure_kind": "build",
"baseline_status": "passed",
"exit_code": 123,
"duration_ms": 123,
"time_limit_sec": 123,
"custom_status": "passed",
"custom_baseline_status": "passed",
"custom_time_limit_sec": 123,
"version": "<string>"
}
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}