Class: Telnyx::Models::AI::EmbeddingListResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/embedding_list_response.rb

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(created_at:, status:, task_id:, task_name:, user_id:, bucket: nil, finished_at: nil) ⇒ Object

Parameters:

  • created_at (Time)
  • status (Symbol, Telnyx::Models::AI::BackgroundTaskStatus)

    Status of an embeddings task.

  • task_id (String)
  • task_name (String)
  • user_id (String)
  • bucket (String) (defaults to: nil)
  • finished_at (Time) (defaults to: nil)


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/telnyx/models/ai/embedding_list_response.rb', line 16

class Data < Telnyx::Internal::Type::BaseModel
  # @!attribute created_at
  #
  #   @return [Time]
  required :created_at, Time

  # @!attribute status
  #   Status of an embeddings task.
  #
  #   @return [Symbol, Telnyx::Models::AI::BackgroundTaskStatus]
  required :status, enum: -> { Telnyx::AI::BackgroundTaskStatus }

  # @!attribute task_id
  #
  #   @return [String]
  required :task_id, String

  # @!attribute task_name
  #
  #   @return [String]
  required :task_name, String

  # @!attribute user_id
  #
  #   @return [String]
  required :user_id, String

  # @!attribute bucket
  #
  #   @return [String, nil]
  optional :bucket, String

  # @!attribute finished_at
  #
  #   @return [Time, nil]
  optional :finished_at, Time

  # @!method initialize(created_at:, status:, task_id:, task_name:, user_id:, bucket: nil, finished_at: nil)
  #   @param created_at [Time]
  #
  #   @param status [Symbol, Telnyx::Models::AI::BackgroundTaskStatus] Status of an embeddings task.
  #
  #   @param task_id [String]
  #
  #   @param task_name [String]
  #
  #   @param user_id [String]
  #
  #   @param bucket [String]
  #
  #   @param finished_at [Time]
end

Instance Attribute Details

#bucketString?

Returns:

  • (String, nil)


46
# File 'lib/telnyx/models/ai/embedding_list_response.rb', line 46

optional :bucket, String

#created_atTime

Returns:

  • (Time)


20
# File 'lib/telnyx/models/ai/embedding_list_response.rb', line 20

required :created_at, Time

#finished_atTime?

Returns:

  • (Time, nil)


51
# File 'lib/telnyx/models/ai/embedding_list_response.rb', line 51

optional :finished_at, Time

#statusSymbol, Telnyx::Models::AI::BackgroundTaskStatus

Status of an embeddings task.



26
# File 'lib/telnyx/models/ai/embedding_list_response.rb', line 26

required :status, enum: -> { Telnyx::AI::BackgroundTaskStatus }

#task_idString

Returns:

  • (String)


31
# File 'lib/telnyx/models/ai/embedding_list_response.rb', line 31

required :task_id, String

#task_nameString

Returns:

  • (String)


36
# File 'lib/telnyx/models/ai/embedding_list_response.rb', line 36

required :task_name, String

#user_idString

Returns:

  • (String)


41
# File 'lib/telnyx/models/ai/embedding_list_response.rb', line 41

required :user_id, String