module

Anthropic::StopDetailsConverter

Discriminated-union converter for stop_details.

Routes on the type field, returning RefusalStopDetails for the known "refusal" variant and a GenericStopDetails fallback for future variants so unknown shapes don't break response parsing.

Class methods

from_json(pull : JSON::PullParser) : StopDetails
Source
to_json(value : StopDetails, builder : JSON::Builder)
Source