Module: Anthropic::Models::RefusalStopDetails::Category

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/refusal_stop_details.rb,
sig/anthropic/models/refusal_stop_details.rbs

Overview

The policy category that triggered a refusal.

See Also:

  • Anthropic::Models::RefusalStopDetails#category

Constant Summary collapse

CYBER =

The request could enable cyber harm, such as malware or exploit development. Benign cybersecurity work can also trigger this category.

Returns:

  • (:cyber)
:cyber
BIO =

The request could enable biological harm, such as dangerous lab methods. Beneficial life sciences work can also trigger this category.

Returns:

  • (:bio)
:bio
FRONTIER_LLM =

The request could assist the development of competing AI models, which is restricted under Anthropic's commercial terms. Benign machine learning work can also trigger this category.

Returns:

  • (:frontier_llm)
:frontier_llm
REASONING_EXTRACTION =

The request asks the model to reproduce its internal reasoning in the response text. To get reasoning in a structured form instead, use adaptive thinking.

Returns:

  • (:reasoning_extraction)
:reasoning_extraction
GENERAL_HARMS =

The request could be related to an area that was determined as harmful. Benign work might sometimes trigger this category.

Returns:

  • (:general_harms)
:general_harms

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/refusal_stop_details.rb', line 59

Instance Method Details

#self?.values::Array[Anthropic::Models::RefusalStopDetails::category]

Returns:

  • (::Array[Anthropic::Models::RefusalStopDetails::category])


50
# File 'sig/anthropic/models/refusal_stop_details.rbs', line 50

def self?.values: -> ::Array[Anthropic::Models::RefusalStopDetails::category]