Class: Anthropic::Models::Beta::Organization::BetaAnalyticsToolActionCounts

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

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(accepted_count:, rejected_count:) ⇒ BetaAnalyticsToolActionCounts

Accepted/rejected counts for a single Claude Code tool type.

Parameters:

  • accepted_count (Integer) —

    Number of tool proposals accepted

  • rejected_count (Integer) —

    Number of tool proposals rejected

  • accepted_count: (Integer)
  • rejected_count: (Integer)


# File 'lib/anthropic/models/beta/organization/beta_analytics_tool_action_counts.rb', line 20

Instance Attribute Details

#accepted_count ⇒ Integer

Number of tool proposals accepted

Parameters:

  • value (Integer)

Returns:

  • (Integer)


12
# File 'lib/anthropic/models/beta/organization/beta_analytics_tool_action_counts.rb', line 12

required :accepted_count, Integer

#rejected_count ⇒ Integer

Number of tool proposals rejected

Parameters:

  • value (Integer)

Returns:

  • (Integer)


18
# File 'lib/anthropic/models/beta/organization/beta_analytics_tool_action_counts.rb', line 18

required :rejected_count, Integer

Instance Method Details

#to_hash ⇒ { accepted_count: Integer, rejected_count: Integer }

Returns:

  • ({ accepted_count: Integer, rejected_count: Integer })


18
# File 'sig/anthropic/models/beta/organization/beta_analytics_tool_action_counts.rbs', line 18

def to_hash: -> { accepted_count: Integer, rejected_count: Integer }