Class: Anthropic::Models::Beta::BetaOutputConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_output_config.rb,
sig/anthropic/models/beta/beta_output_config.rbs

Defined Under Namespace

Modules: Effort

Instance Attribute Summary collapse

Instance Method Summary collapse

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, task_budget: nil) ⇒ BetaOutputConfig

Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaOutputConfig for more details.

Parameters:

  • effort (Symbol, Anthropic::Models::Beta::BetaOutputConfig::Effort, nil) (defaults to: nil) —

    How much effort the model should put into its response. Higher effort levels may

  • format_ (Anthropic::Models::Beta::BetaJSONOutputFormat, nil) (defaults to: nil) —

    A schema to specify Claude's output format in responses. See [structured outputs

  • task_budget (Anthropic::Models::Beta::BetaTokenTaskBudget, nil) (defaults to: nil) —

    Configuration for token budget tracking across contexts.

  • effort: (Anthropic::Models::Beta::BetaOutputConfig::effort, nil) (defaults to: nil)
  • format_: (Anthropic::Beta::BetaJSONOutputFormat, nil) (defaults to: nil)
  • task_budget: (Anthropic::Beta::BetaTokenTaskBudget, nil) (defaults to: nil)


# File 'lib/anthropic/models/beta/beta_output_config.rb', line 29

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.

Parameters:

  • value (Anthropic::Models::Beta::BetaOutputConfig::effort, nil)

Returns:



14
# File 'lib/anthropic/models/beta/beta_output_config.rb', line 14

optional :effort, enum: -> { Anthropic::Beta::BetaOutputConfig::Effort }, nil?: true

#format_ ⇒ Anthropic::Models::Beta::BetaJSONOutputFormat?

A schema to specify Claude's output format in responses. See structured outputs

Parameters:

  • value (Anthropic::Beta::BetaJSONOutputFormat, nil)

Returns:



21
# File 'lib/anthropic/models/beta/beta_output_config.rb', line 21

optional :format_, -> { Anthropic::Beta::BetaJSONOutputFormat }, api_name: :format, nil?: true

#task_budget ⇒ Anthropic::Models::Beta::BetaTokenTaskBudget?

Configuration for token budget tracking across contexts.

Parameters:

  • value (Anthropic::Beta::BetaTokenTaskBudget, nil)

Returns:



27
# File 'lib/anthropic/models/beta/beta_output_config.rb', line 27

optional :task_budget, -> { Anthropic::Beta::BetaTokenTaskBudget }, nil?: true

Instance Method Details

#to_hash ⇒ { effort: Anthropic::Models::Beta::BetaOutputConfig::effort?, format_: Anthropic::Beta::BetaJSONOutputFormat?, task_budget: Anthropic::Beta::BetaTokenTaskBudget? }

Returns:

  • ({ effort: Anthropic::Models::Beta::BetaOutputConfig::effort?, format_: Anthropic::Beta::BetaJSONOutputFormat?, task_budget: Anthropic::Beta::BetaTokenTaskBudget? })


26
27
28
29
30
# File 'sig/anthropic/models/beta/beta_output_config.rbs', line 26

def to_hash: -> {
  effort: Anthropic::Models::Beta::BetaOutputConfig::effort?,
  format_: Anthropic::Beta::BetaJSONOutputFormat?,
  task_budget: Anthropic::Beta::BetaTokenTaskBudget?
}