Class: Anthropic::Models::OutputConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::OutputConfig
- Defined in:
- lib/anthropic/models/output_config.rb,
sig/anthropic/models/output_config.rbs
Defined Under Namespace
Modules: Effort
Instance Attribute Summary collapse
-
#effort ⇒ Symbol, ...
How much effort the model should put into its response.
-
#format_ ⇒ Anthropic::Models::JSONOutputFormat?
A schema to specify Claude's output format in responses.
Instance Method Summary collapse
-
#initialize(effort: nil, format_: nil) ⇒ OutputConfig
constructor
Some parameter documentations has been truncated, see OutputConfig for more details.
- #to_hash ⇒ { effort: Anthropic::Models::OutputConfig::effort?, format_: Anthropic::JSONOutputFormat? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(effort: nil, format_: nil) ⇒ OutputConfig
Some parameter documentations has been truncated, see Anthropic::Models::OutputConfig for more details.
|
|
# File 'lib/anthropic/models/output_config.rb', line 22
|
Instance Attribute Details
#effort ⇒ Symbol, ...
How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer.
Valid values are low, medium, high, xhigh, or max.
13 |
# File 'lib/anthropic/models/output_config.rb', line 13 optional :effort, enum: -> { Anthropic::OutputConfig::Effort }, nil?: true |
#format_ ⇒ Anthropic::Models::JSONOutputFormat?
A schema to specify Claude's output format in responses. See structured outputs
20 |
# File 'lib/anthropic/models/output_config.rb', line 20 optional :format_, -> { Anthropic::JSONOutputFormat }, api_name: :format, nil?: true |
Instance Method Details
#to_hash ⇒ { effort: Anthropic::Models::OutputConfig::effort?, format_: Anthropic::JSONOutputFormat? }
19 20 21 22 |
# File 'sig/anthropic/models/output_config.rbs', line 19
def to_hash: -> {
effort: Anthropic::Models::OutputConfig::effort?,
format_: Anthropic::JSONOutputFormat?
}
|