Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / reduceInvocationTable

Function: reduceInvocationTable()

ts
function reduceInvocationTable(events): InvocationTable;

Defined in: packages/core/dist/index.d.ts

Reduces one run's event stream (or any slice of it) to the invocation table. Feed it the events in emission order; both a live stream and a replayed one produce the same usage and cost columns.

Parameters

ParameterType
eventsIterable<WorkflowEvent>

Returns

InvocationTable