Skip to content

Rulvar API reference


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

PropertyTypeDescriptionDefined in
agentsAgentInvocationRow[]-packages/core/dist/index.d.ts
byRoleRecord<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
totalCostUsdnumberSum of agent:end costUsd over settled spans.packages/core/dist/index.d.ts