Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/anthropic / TurnMapping

Interface: TurnMapping

Defined in: packages/anthropic/src/wire.ts:436

Properties

PropertyTypeDescriptionDefined in
assistantContentBlock[]Assistant content blocks collected verbatim (pause_turn continuation).packages/anthropic/src/wire.ts:438
finishedboolean-packages/anthropic/src/wire.ts:440
pauseTurnboolean-packages/anthropic/src/wire.ts:439
responseId?stringThe segment's provider message id, captured for paused and finished segments alike so the adapter can account every wire request of a pause_turn absorption (RV905).packages/anthropic/src/wire.ts:446
usageUsageThe SEGMENT's own normalized usage (RV1003): a paused segment yields no finish, so this is how its counts reach the adapter's whole-turn accumulation. The terminal finish EVENT carries the turn total (usagePrior folded in); this field stays segment-only.packages/anthropic/src/wire.ts:453