Class: Telnyx::Models::AIRetrieveConversationHistoriesResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AIRetrieveConversationHistoriesResponse
- Defined in:
- lib/telnyx/models/ai_retrieve_conversation_histories_response.rb,
sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs
Overview
Defined Under Namespace
Modules: Region
Instance Attribute Summary collapse
-
#chunk_index ⇒ Integer
Zero-based index of this chunk within the parent record.
-
#chunk_total ⇒ Integer
Total number of chunks the parent record was split into.
-
#id ⇒ String
Unique chunk identifier.
-
#ingested_at ⇒ Time
When the record was chunked, embedded, and indexed (ISO 8601).
-
#metadata ⇒ Hash{Symbol=>Object}?
Arbitrary metadata attached to the record at ingestion time.
-
#organization_id ⇒ String
Identifier of the organization that owns this record.
-
#record_created_at ⇒ Time
When the original record was created (ISO 8601).
-
#record_id ⇒ String
Identifier of the parent record.
-
#region ⇒ Symbol, Telnyx::Models::AIRetrieveConversationHistoriesResponse::Region
The region where this record is stored.
-
#score ⇒ Float
Cosine similarity score between the query vector and this chunk's vector.
-
#text ⇒ String
The text content of this chunk (up to 480 tokens).
-
#user_id ⇒ String
Identifier of the user who owns this record.
Instance Method Summary collapse
-
#initialize(id:, chunk_index:, chunk_total:, ingested_at:, organization_id:, record_created_at:, record_id:, region:, score:, text:, user_id:, metadata: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see AIRetrieveConversationHistoriesResponse for more details.
- #to_hash ⇒ {
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:, chunk_index:, chunk_total:, ingested_at:, organization_id:, record_created_at:, record_id:, region:, score:, text:, user_id:, metadata: nil) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::AIRetrieveConversationHistoriesResponse for more details.
A single search result representing one chunk of a conversation history record. Records are split into chunks of up to 480 tokens with 64-token overlap at ingestion time.
|
|
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 82
|
Instance Attribute Details
#chunk_index ⇒ Integer
Zero-based index of this chunk within the parent record.
17 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 17 required :chunk_index, Integer |
#chunk_total ⇒ Integer
Total number of chunks the parent record was split into.
23 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 23 required :chunk_total, Integer |
#id ⇒ String
Unique chunk identifier.
11 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 11 required :id, String |
#ingested_at ⇒ Time
When the record was chunked, embedded, and indexed (ISO 8601).
29 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 29 required :ingested_at, Time |
#metadata ⇒ Hash{Symbol=>Object}?
Arbitrary metadata attached to the record at ingestion time. Filterable via filter=value query parameters.
80 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 80 optional :metadata, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] |
#organization_id ⇒ String
Identifier of the organization that owns this record.
35 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 35 required :organization_id, String |
#record_created_at ⇒ Time
When the original record was created (ISO 8601).
41 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 41 required :record_created_at, Time |
#record_id ⇒ String
Identifier of the parent record. Multiple chunks from the same record share this ID.
48 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 48 required :record_id, String |
#region ⇒ Symbol, Telnyx::Models::AIRetrieveConversationHistoriesResponse::Region
The region where this record is stored.
54 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 54 required :region, enum: -> { Telnyx::Models::AIRetrieveConversationHistoriesResponse::Region } |
#score ⇒ Float
Cosine similarity score between the query vector and this chunk's vector. Higher values indicate greater semantic relevance.
61 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 61 required :score, Float |
#text ⇒ String
The text content of this chunk (up to 480 tokens).
67 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 67 required :text, String |
#user_id ⇒ String
Identifier of the user who owns this record.
73 |
# File 'lib/telnyx/models/ai_retrieve_conversation_histories_response.rb', line 73 required :user_id, String |
Instance Method Details
#to_hash ⇒ {
61 |
# File 'sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs', line 61
def to_hash: -> {
|