Anthropic::RefusalStopDetails
Inherits JSON::Serializable < Struct < Value < Object
Structured stop details returned on refusal stops.
category is typically one of the known refusal categories such as
"cyber", "bio", "frontier_llm", "reasoning_extraction", or "general_harms",
though unknown categories may appear as the API evolves.
The fallback_* fields are populated on the beta messages surface when a
server-side or client-side fallback chain is in play. fallback_credit_token
is an opaque, ~5-minute-expiry token redeemable on retry to refund the
cache-miss cost of the refused attempt.
Constructors
new(pull : JSON::PullParser)
Sourcenew(category : String | Nil = nil, explanation : String | Nil = nil, fallback_credit_token : String | Nil = nil, fallback_has_prefill_claim : Bool | Nil = nil, recommended_model : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
category
Sourceexplanation
Sourcefallback_has_prefill_claim
Whether the credit token permits an appended-assistant (prefill) retry.
type
Source