Ir al contenido

Eventos de un nodo del grafo de ejecución

GET/api/public/v1/agents/{agent_id}/execution-graph/node-events beta

Scoped evidence + timeline for one GraphNode.id, ordered by dim. node_id=agent and node_id=overflow:* are 422 (neither has an event set of its own), as is dim=value (the availability matrix does not capture it, and nothing ships a source — F8). dim=cost requires a session subject and returns model_calls with an EMPTY events; every other dimension is the inverse. dim=time orders by the per-call duration_ms (F7, slowest first); it was a 422 alongside value until that column shipped. A node with no events is an empty list, never a 404: the graph and this endpoint can legitimately disagree by one window snap.

Ventana de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/agents/<agent_id>/execution-graph/node-events?node_id=<node_id>' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorPermitido
viewerPermitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: agents:read

ParámetroTipoDescripción
agent_idstringObligatorio.
ParámetroTipoDescripción
node_idstringObligatorio.
windowstring — one of 24h, 7d, 30dDeprecated: send from (and optionally to) instead. A rolling window ending now — 24h, 7d or 30d. Ignored when from is sent.
fromstring (date-time) or nullStart of an explicit range (ISO 8601), any distance in the past. Wins over window. Snapped down to 10 seconds; the response's window.key is then custom.
tostring (date-time) or nullEnd of the explicit range (ISO 8601), exclusive. Requires from, must not be before it (equal bounds are an empty window); defaults to now and is clamped to it. Snapped down to 10 seconds like from.
dimstring — one of cost, time, security, value, frequency or null
pageinteger
page_sizeinteger or null
CampoTipoDescripción
eventsarray of objectObligatorio.
events[].artifact_idstring or nullObligatorio.
events[].artifact_labelstring or nullObligatorio.
events[].duration_msinteger or nullObligatorio.
events[].event_idstringObligatorio.
events[].session_idstring or nullObligatorio.
events[].surfacestring — one of local, shell, web, mcp or nullObligatorio.
events[].timestring (date-time)Obligatorio.
events[].tool_namestring or nullObligatorio.
events[].verdictstring or nullObligatorio.
model_callsarray of objectObligatorio.
model_calls[].cost_tokensintegerObligatorio.
model_calls[].cost_usdstring or nullObligatorio.
model_calls[].modelstringObligatorio.
model_calls[].providerstringObligatorio.
model_calls[].timestring (date-time)Obligatorio.
pageintegerObligatorio.
page_sizeintegerObligatorio.
totalintegerObligatorio.
{
"events": [
{
"artifact_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"artifact_label": "string",
"duration_ms": 3,
"event_id": "evt_01jbwa2k1vfrn9y42xhgxhmzj2",
"session_id": "ses_01jbwa2k1vfrn9y42xhgxhmzj2",
"surface": "local",
"time": "2026-01-15T14:32:05Z",
"tool_name": "release-bot",
"verdict": "string"
}
],
"model_calls": [
{
"cost_tokens": 3,
"cost_usd": "string",
"model": "string",
"provider": "string",
"time": "2026-01-15T14:32:05Z"
}
],
"page": 1,
"page_size": 3,
"total": 3
}