Class: Telnyx::Resources::AI::Conversations::ConversationInsights
- Inherits:
-
Object
- Object
- Telnyx::Resources::AI::Conversations::ConversationInsights
- Defined in:
- lib/telnyx/resources/ai/conversations/conversation_insights.rb,
sig/telnyx/resources/ai/conversations/conversation_insights.rbs
Overview
Manage historical AI assistant conversations
Instance Method Summary collapse
-
#initialize(client:) ⇒ ConversationInsights
constructor
private
A new instance of ConversationInsights.
-
#retrieve_aggregates(created_at: nil, group_by: nil, insight_id: nil, metadata: nil, show: nil, request_options: {}) ⇒ Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse
Some parameter documentations has been truncated, see Models::AI::Conversations::ConversationInsightRetrieveAggregatesParams for more details.
Constructor Details
#initialize(client:) ⇒ ConversationInsights
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ConversationInsights.
48 49 50 |
# File 'lib/telnyx/resources/ai/conversations/conversation_insights.rb', line 48 def initialize(client:) @client = client end |
Instance Method Details
#retrieve_aggregates(created_at: nil, group_by: nil, insight_id: nil, metadata: nil, show: nil, request_options: {}) ⇒ Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse
Some parameter documentations has been truncated, see Models::AI::Conversations::ConversationInsightRetrieveAggregatesParams for more details.
Aggregate conversation insights by specified fields
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/telnyx/resources/ai/conversations/conversation_insights.rb', line 32 def retrieve_aggregates(params = {}) parsed, = Telnyx::AI::Conversations::ConversationInsightRetrieveAggregatesParams.dump_request(params) query = Telnyx::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "ai/conversations/conversation-insights/aggregates", query: query, model: Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse, options: ) end |