Class: Anthropic::Models::Beta::Organization::BetaAnalyticsSkillOfficeProductMetrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_analytics_skill_office_product_metrics.rb,
sig/anthropic/models/beta/organization/beta_analytics_skill_office_product_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(distinct_session_skill_used_count:) ⇒ BetaAnalyticsSkillOfficeProductMetrics

Office Agent activity metrics for a single skill on a given day within one Office product.

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

Parameters:

  • distinct_session_skill_used_count (Integer, nil) —

    Number of distinct Office Agent sessions in which the skill was used. A skill co

  • distinct_session_skill_used_count: (Integer, nil)


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

Instance Attribute Details

#distinct_session_skill_used_count ⇒ Integer?

Number of distinct Office Agent sessions in which the skill was used. A skill counts as used only when it is explicitly activated — the model (or the user, via the skill's slash command) invokes it, reading its instructions into context as part of that activation. Skills that are merely installed or listed as available, or whose content reaches the context without an activation (preloaded, hook-injected, or read as a plain file), are not counted. 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)


19
# File 'lib/anthropic/models/beta/organization/beta_analytics_skill_office_product_metrics.rb', line 19

required :distinct_session_skill_used_count, Integer, nil?: true

Instance Method Details

#to_hash ⇒ { distinct_session_skill_used_count: Integer? }

Returns:

  • ({ distinct_session_skill_used_count: Integer? })


13
# File 'sig/anthropic/models/beta/organization/beta_analytics_skill_office_product_metrics.rbs', line 13

def to_hash: -> { distinct_session_skill_used_count: Integer? }