struct

Anthropic::GenericStopDetails

Inherits Struct < Value < Object

Catch-all structured stop_details for unknown future variants.

The Anthropic API may introduce additional stop_details.type values over time (e.g., tool-use or other stop reasons). Unknown variants deserialize into this struct with the raw payload preserved in raw.

Constructors

new(type : String, raw : JSON::Any)
Source

Instance methods

to_json(builder : JSON::Builder) : Nil

Serialize back to the original JSON payload.

Source
type
Source