Ir al contenido

Grafo de ejecución de un agente

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

The agent's window as a set-membership graph: runs, surfaces, tools, artifacts. The window is an explicit from/to range of any span (window.key is then custom) or the deprecated rolling window key; with neither, the last 7 days. from wins over window; to without from or from after to is a 422.

Ventana de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/agents/<agent_id>/execution-graph' \
-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
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.
expandarray of string — one of session, tool, artifact or null
session_pageinteger or null
session_page_sizeinteger or null
tool_pageinteger or null
tool_page_sizeinteger or null
artifact_pageinteger or null
artifact_page_sizeinteger or null
CampoTipoDescripción
action_tables_availablebooleanObligatorio.
agentobjectObligatorio. The agent the graph belongs to — the existing `AgentRead` subset.
agent.agent_idstringObligatorio.
agent.display_namestring or nullObligatorio.
agent.first_seen_atstring (date-time)Obligatorio.
agent.latest_archstring or nullObligatorio.
agent.latest_osstring or nullObligatorio.
agent.platformstringObligatorio.
baseline_suppressedbooleanObligatorio.
edgesarray of objectObligatorio.
edges[].idstringObligatorio.
edges[].session_idsarray of stringObligatorio.
edges[].sourcestringObligatorio.
edges[].targetstringObligatorio.
edges[].weightnumberObligatorio.
layer_pageobjectObligatorio.
nodesarray of objectObligatorio.
nodes[].baseline_coveragenumberObligatorio.
nodes[].baseline_observationsintegerObligatorio.
nodes[].confidencestring — one of high, medium, lowObligatorio.
nodes[].coveragenumberObligatorio.
nodes[].entityobjectObligatorio.
nodes[].idstringObligatorio.
nodes[].labelstringObligatorio.
nodes[].layerstring — one of agent, session, surface, tool, artifactObligatorio.
nodes[].metricsobject or nullObligatorio.
nodes[].observationsintegerObligatorio.
nodes[].session_idsarray of stringObligatorio.
nodes[].tierstring — one of hot, warm, rare, novel, fadingObligatorio.
totalsobjectObligatorio. Window-wide figures. Never page-scoped (D50).
totals.baseline_eventsintegerObligatorio.
totals.baseline_sessionsintegerObligatorio.
totals.eventsintegerObligatorio.
totals.mean_run_cost_tokensnumber or nullObligatorio.
totals.sessionsintegerObligatorio.
totals.toolless_sessionsintegerObligatorio.
totals.unidentified_actionsintegerObligatorio.
windowobjectObligatorio. `{key, from, to, as_of}`.
window.as_ofstring (date-time)Obligatorio.
window.fromstring (date-time)Obligatorio.
window.keystringObligatorio.
window.tostring (date-time)Obligatorio.
{
"action_tables_available": false,
"agent": {
"agent_id": "agt_01jbwa2k1vfrn9y42xhgxhmzj2",
"display_name": "release-bot",
"first_seen_at": "2026-01-15T14:32:05Z",
"latest_arch": "string",
"latest_os": "string",
"platform": "string"
},
"baseline_suppressed": false,
"edges": [
{
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"session_ids": [
"ses_01jbwa2k1vfrn9y42xhgxhmzj2"
],
"source": "string",
"target": "string",
"weight": 0.25
}
],
"layer_page": {},
"nodes": [
{
"baseline_coverage": 0.25,
"baseline_observations": 3,
"confidence": "high",
"coverage": 0.25,
"entity": {
"distinct_artifacts": 3,
"distinct_tools": 3,
"layer": "agent"
},
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"label": "string",
"layer": "agent",
"metrics": {
"cost_tokens": 3,
"cost_tokens_uncached": 3,
"cost_usd": "string",
"duration_ms": 3,
"requirements": {
"business_value": 0.25,
"compliance": 0.25,
"economics": 0.25,
"security": 0.25
},
"session_duration_ms": 3,
"verdicts": {
"allow": 3,
"ask": 3,
"block": 3,
"optimize": 0,
"undecided": 3
}
},
"observations": 3,
"session_ids": [
"ses_01jbwa2k1vfrn9y42xhgxhmzj2"
],
"tier": "hot"
}
],
"totals": {
"baseline_events": 3,
"baseline_sessions": 3,
"events": 3,
"mean_run_cost_tokens": 0.25,
"sessions": 3,
"toolless_sessions": 3,
"unidentified_actions": 3
},
"window": {
"as_of": "2026-01-15T14:32:05Z",
"from": "2026-01-15T14:32:05Z",
"key": "string",
"to": "2026-01-15T14:32:05Z"
}
}