struct

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_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

category
Source
explanation
Source
fallback_credit_token

Opaque token redeemable on a fallback retry (beta surface only).

Source
fallback_has_prefill_claim

Whether the credit token permits an appended-assistant (prefill) retry.

Source
type
Source