Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / AgentInvocationRow

Interface: AgentInvocationRow

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

One logical agent span.

Properties

PropertyTypeDescriptionDefined in
agentTypestring-packages/core/dist/index.d.ts
costBasisCostBasisThe fold behind costUsd (RV702), from the span's agent:end; an absent field (a pre-RV702 stream, or a span still open) reduces to 'aggregate-estimate', never to a per-call claim it cannot back.packages/core/dist/index.d.ts
costUsdnumber-packages/core/dist/index.d.ts
hostRejected?booleanPresent and true when the invocation was aborted by the host's finish rejection (RV3702): the declared finish contract rejected the candidate past its repair bound, so the span died by host hand with its wires fine. From the agent:end stamp; absent everywhere else.packages/core/dist/index.d.ts
label?string-packages/core/dist/index.d.ts
openbooleanTrue when the span's agent:end never arrived.packages/core/dist/index.d.ts
phasesPhaseRow[]-packages/core/dist/index.d.ts
replayedboolean-packages/core/dist/index.d.ts
retryCountnumber-packages/core/dist/index.d.ts
role?stringThe primary role from agent:start.packages/core/dist/index.d.ts
spanIdstring-packages/core/dist/index.d.ts
status?stringFrom agent:end; absent while the span is open.packages/core/dist/index.d.ts
toolBudget?ToolBudgetSummaryThe tool budget pressure snapshot (RV304), carried through from the live agent:end. Absent on replayed rows and unbounded loops.packages/core/dist/index.d.ts
usageUsage-packages/core/dist/index.d.ts
usageApproxboolean-packages/core/dist/index.d.ts