Rulvar API reference / @rulvar/rulvar / InvocationTable
Interface: InvocationTable
Defined in: packages/core/dist/index.d.ts
The reduced table plus the per-role aggregate across every span.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
agents | AgentInvocationRow[] | - | packages/core/dist/index.d.ts |
byRole | Record<string, { costBasis: CostBasis; costUsd: number; usage: Usage; }> | Aggregated over COMPLETED phase pairs, keyed by role. The bucket's costBasis is 'per-call' only while EVERY folded pair carried the per-call basis; one aggregate-estimate pair degrades the bucket. | packages/core/dist/index.d.ts |
totalCostUsd | number | Sum of agent:end costUsd over settled spans. | packages/core/dist/index.d.ts |