Class: Telnyx::Models::AI::ConversationRetrieveConversationsInsightsResponse::Data::ConversationInsight

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/telnyx/models/ai/conversation_retrieve_conversations_insights_response.rb,
sig/telnyx/models/ai/conversation_retrieve_conversations_insights_response.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(id:, conversation_insights:, created_at:, status:) ⇒ ConversationInsight

Returns a new instance of ConversationInsight.

Parameters:

  • Unique identifier for the conversation insight.

  • List of insights extracted from the conversation.

  • Timestamp of when the object was created.

  • Current status of the insight generation for the conversation.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/telnyx/models/ai/conversation_retrieve_conversations_insights_response.rb', line 59

class ConversationInsight < Telnyx::Internal::Type::BaseModel
  # @!attribute insight_id
  #   Unique identifier for the insight configuration.
  #
  #   @return [String]
  required :insight_id, String

  # @!attribute result
  #   Insight result from the conversation. If the insight has a JSON schema, this
  #   will be stringified JSON object.
  #
  #   @return [String]
  required :result, String

  # @!method initialize(insight_id:, result:)
  #   Some parameter documentations has been truncated, see
  #   {Telnyx::Models::AI::ConversationRetrieveConversationsInsightsResponse::Data::ConversationInsight}
  #   for more details.
  #
  #   @param insight_id [String] Unique identifier for the insight configuration.
  #
  #   @param result [String] Insight result from the conversation. If the insight has a JSON schema, this wil
end

Instance Attribute Details

#insight_idString

Unique identifier for the insight configuration.

Parameters:

Returns:



64
# File 'lib/telnyx/models/ai/conversation_retrieve_conversations_insights_response.rb', line 64

required :insight_id, String

#resultString

Insight result from the conversation. If the insight has a JSON schema, this will be stringified JSON object.

Parameters:

Returns:



71
# File 'lib/telnyx/models/ai/conversation_retrieve_conversations_insights_response.rb', line 71

required :result, String

Instance Method Details

#to_hash{ insight_id: String, result: String }

Returns:



65
# File 'sig/telnyx/models/ai/conversation_retrieve_conversations_insights_response.rbs', line 65

def to_hash: -> { insight_id: String, result: String }