Class: Anthropic::Models::Beta::Organization::BetaAnalyticsScienceMetrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_analytics_science_metrics.rb,
sig/anthropic/models/beta/organization/beta_analytics_science_metrics.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(delegation_count:, distinct_session_count:, message_count:, remote_compute_job_count:, skills_used_count:) ⇒ BetaAnalyticsScienceMetrics

Claude Science activity metrics for a single user on a given day.

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

Parameters:

  • delegation_count (Integer) —

    Number of delegations (handoffs to a specialized agent) in Claude Science sessio

  • distinct_session_count (Integer, nil) —

    Number of distinct Claude Science sessions. Approximate (HLL, typical error <2%)

  • message_count (Integer) —

    Number of messages sent in Claude Science sessions

  • remote_compute_job_count (Integer) —

    Number of remote compute jobs launched from Claude Science sessions

  • skills_used_count (Integer) —

    Total number of skill invocations in Claude Science sessions

  • delegation_count: (Integer)
  • distinct_session_count: (Integer, nil)
  • message_count: (Integer)
  • remote_compute_job_count: (Integer)
  • skills_used_count: (Integer)


# File 'lib/anthropic/models/beta/organization/beta_analytics_science_metrics.rb', line 41

Instance Attribute Details

#delegation_count ⇒ Integer

Number of delegations (handoffs to a specialized agent) in Claude Science sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


13
# File 'lib/anthropic/models/beta/organization/beta_analytics_science_metrics.rb', line 13

required :delegation_count, Integer

#distinct_session_count ⇒ Integer?

Number of distinct Claude Science sessions. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

required :distinct_session_count, Integer, nil?: true

#message_count ⇒ Integer

Number of messages sent in Claude Science sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :message_count, Integer

#remote_compute_job_count ⇒ Integer

Number of remote compute jobs launched from Claude Science sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


33
# File 'lib/anthropic/models/beta/organization/beta_analytics_science_metrics.rb', line 33

required :remote_compute_job_count, Integer

#skills_used_count ⇒ Integer

Total number of skill invocations in Claude Science sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


39
# File 'lib/anthropic/models/beta/organization/beta_analytics_science_metrics.rb', line 39

required :skills_used_count, Integer

Instance Method Details

#to_hash ⇒ { delegation_count: Integer, distinct_session_count: Integer?, message_count: Integer, remote_compute_job_count: Integer, skills_used_count: Integer }

Returns:

  • ({ delegation_count: Integer, distinct_session_count: Integer?, message_count: Integer, remote_compute_job_count: Integer, skills_used_count: Integer })


33
34
35
36
37
38
39
# File 'sig/anthropic/models/beta/organization/beta_analytics_science_metrics.rbs', line 33

def to_hash: -> {
  delegation_count: Integer,
  distinct_session_count: Integer?,
  message_count: Integer,
  remote_compute_job_count: Integer,
  skills_used_count: Integer
}