GET /v1/agents/{id}/test-runs/latest
const url = 'https://seu-endereco-da-api/v1/agents/example/test-runs/latest';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://seu-endereco-da-api/v1/agents/example/test-runs/latest \ --header 'Authorization: Bearer <token>'Permissão que a Chave de acesso precisa: Ler agentes de IA (agents:read).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”Responses
Seção intitulada “Responses”object
The most recent run of the set; null before the first one
object
Most the run can cost, in cents of real; the run only starts when the AI credit covers it
Turns the agent now hands off to a person and did not in the run compared
Turns the agent no longer hands off to a person and did in the run compared
Cases answered in this run that the run compared did not have
The last finished run before this one; interrupted runs are never compared against
object
object
object
The customer message of the original conversation this turn answers
What the customer wrote; null when the message was deleted or sits in a department the viewer cannot see
The same turn in the run compared against; null when there is none
object
The agent handed off to a person in one run and not in the other; a reply in other words alone never counts
Answered in this run but absent from the run compared, so there is nothing to compare it with
Example
{ "latest": { "status": "running", "cases": [ { "status": "pending" } ] }}