Skip to content
Proud to collaborate with Microsoft for Startups

agents.metrics-event-record ​

Append a typed event to an agent session event log

Append a generic session event to a session event log.

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——
event_typestringYes——
payloaddictNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
event_uuidjsonNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
session_uuidjsonNo——
organization_uuidjsonNo——
event_typejsonNo——
payloadjsonNo——

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-event-record",
  "initial_data": {
    "session_uuid": "value",
    "event_type": "value"
  }
}