Core Concepts

Warpmetrics models your AI agent workflows as a hierarchy of primitives. Understanding these concepts will help you get the most out of the platform.

The hierarchy

Every agent execution is modeled as a tree. Runs contain groups and calls. Groups contain calls and other groups. Outcomes can be attached at any level. Acts connect one run to the next.

Run
├── Group (planning phase)
│   ├── Call (gpt-4o)
│   └── Call (gpt-4o)
├── Group (execution phase)
│   ├── Group (sub-task)
│   │   └── Call (gpt-4o-mini)
│   └── Call (gpt-4o)
├── Outcome ("failed")
└── Act ("retry")
    └── Run (follow-up attempt)

Quick reference

run(label, opts?)Create a top-level runwm_run_
group(target, label, opts?)Create a group inside a run or groupwm_grp_
call(target, response, opts?)Link an LLM call to a run or group
outcome(target, name, opts?)Record a result on any entitywm_oc_
act(outcome, name, opts?)Record an action after an outcomewm_act_
ref(target)Get the tracking ID for any entity
flush()Manually send pending events