Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / AgentResult

Interface: AgentResult<T>

Defined in: packages/core/src/runtime/agent-loop.ts:96

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionDefined in
abortClass?"no-progress"The dedicated first-class abort class (M3-T08): present on the engine-decided no-progress abort (status 'limit'), never on user cancellation or ordinary cap hits.packages/core/src/runtime/agent-loop.ts:129
artifacts?Artifact[]-packages/core/src/runtime/agent-loop.ts:108
costUsdnumber-packages/core/src/runtime/agent-loop.ts:100
error?AgentError-packages/core/src/runtime/agent-loop.ts:109
errorMessage?stringHuman-readable detail behind error (provider message, first schema issue): feeds the journaled WireError message. An additive field; never part of identity.packages/core/src/runtime/agent-loop.ts:115
escalation?EscalationReportPresent if and only if status === 'escalated'.packages/core/src/runtime/agent-loop.ts:117
escalationRequest?EscalationRequestEngine-internal: the accepted escalate request before the runtime fills costToDate and salvage into the full report. The ctx layer consumes and removes it; consumers read escalation.packages/core/src/runtime/agent-loop.ts:123
outputT | null-packages/core/src/runtime/agent-loop.ts:98
servedBy`${string}:${string}`The model that actually served the loop phase at the end (M4-T04): differs from the requested spec only under transport failover.packages/core/src/runtime/agent-loop.ts:106
statusAgentStatus-packages/core/src/runtime/agent-loop.ts:97
transcriptRefstring-packages/core/src/runtime/agent-loop.ts:107
turnsnumber-packages/core/src/runtime/agent-loop.ts:101
usageUsage-packages/core/src/runtime/agent-loop.ts:99