Skip to main content
Every agent action and every order step is recorded as an event that can’t be changed. Together these events are the evidence trail: a record of who did what, and when. The trail answers questions after the fact. Did the agent search before it bought? Did the shopper see the total before approving? When did the merchant confirm? These come up in support tickets, refund requests and audits.

Two kinds of event

A session that ends in an order links to it through orderId. Session events show how the agent got there. Order events show what happened next. get_session_events:
get_order_events:
Both lists come back oldest first.

Execution steps

get_order also returns executionSteps: each step AgentMall ran to place the order, with its state, how long it took and a correlationId for tracing it.
A step’s state is pending, running, succeeded or failed.

What the trail shows