rulvar API reference / @rulvar/anthropic / mapStopReason
Function: mapStopReason()
ts
function mapStopReason(stopReason, stopDetails): MappedStop;Defined in: packages/anthropic/src/wire.ts:348
The stop-reason table. pause_turn never surfaces as a canonical finish: the adapter continues internally.
Parameters
| Parameter | Type |
|---|---|
stopReason | string | null | undefined |
stopDetails | Record<string, unknown> | null | undefined |
Returns
MappedStop