Skip to content
Proud to collaborate with Microsoft for Startups

agents.metrics-step-open ​

Open a step metric row for a single LLM call within an agent session

Open a new AgentStepMetric row and optionally attach a Lumen span.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
INTERNALinternal.invocationInternal — called by the runner agent to record execution metrics

Input Schema ​

FieldTypeRequiredDefaultDescription
session_uuidstringYes——
organization_uuidstringNo——
step_numberintegerYes——
model_namestringNo——
call_typestringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
step_metric_uuidjsonNo——
step_numberjsonNo——
turnjsonNo——
session_uuidjsonNo——
organization_uuidjsonNo——
model_namejsonNo——
call_typejsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.metrics-step-open",
  "initial_data": {
    "session_uuid": "value",
    "step_number": 123
  }
}