Class: Anthropic::Models::Organization::AnalyticsSkillChatCoworkUnifiedMetrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/analytics_skill_chat_cowork_unified_metrics.rb,
sig/anthropic/models/organization/analytics_skill_chat_cowork_unified_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(chat:, sessions:) ⇒ AnalyticsSkillChatCoworkUnifiedMetrics

A skill's use in Chat and Cowork unified on one day: chat holds its use in chat conversations and sessions its use in Cowork sessions.

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

Parameters:



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

Instance Attribute Details

#chat ⇒ Anthropic::Models::Organization::AnalyticsSkillChatCoworkUnifiedChatMetrics

A skill's use in chat conversations recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedChatMetrics)

Returns:



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

required :chat, -> { Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedChatMetrics }

#sessions ⇒ Anthropic::Models::Organization::AnalyticsSkillChatCoworkUnifiedSessionsMetrics

A skill's use in Cowork sessions recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedSessionsMetrics)

Returns:



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

required :sessions, -> { Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedSessionsMetrics }

Instance Method Details

#to_hash ⇒ { chat: Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedChatMetrics, sessions: Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedSessionsMetrics }

Returns:

  • ({ chat: Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedChatMetrics, sessions: Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedSessionsMetrics })


20
21
22
23
# File 'sig/anthropic/models/organization/analytics_skill_chat_cowork_unified_metrics.rbs', line 20

def to_hash: -> {
  chat: Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedChatMetrics,
  sessions: Anthropic::Organization::AnalyticsSkillChatCoworkUnifiedSessionsMetrics
}