Class: OpenAI::Models::Beta::ChatKit::ChatKitWidgetItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKit::ChatKitWidgetItem
- Defined in:
- lib/openai/models/beta/chatkit/chatkit_widget_item.rb,
sig/openai/models/beta/chatkit/chatkit_widget_item.rbs
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
Unix timestamp (in seconds) for when the item was created.
-
#id ⇒ String
Identifier of the thread item.
-
#object ⇒ :"chatkit.thread_item"
Type discriminator that is always
chatkit.thread_item. -
#thread_id ⇒ String
Identifier of the parent thread.
-
#type ⇒ :"chatkit.widget"
Type discriminator that is always
chatkit.widget. -
#widget ⇒ String
Serialized widget payload rendered in the UI.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ ChatKitWidgetItem
constructor
A new instance of ChatKitWidgetItem.
- #to_hash ⇒ { id: String, created_at: Integer, ?object: :"chatkit.thread_item", thread_id: String, ?type: :"chatkit.widget", widget: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ ChatKitWidgetItem
Returns a new instance of ChatKitWidgetItem.
48 49 50 51 52 53 54 55 |
# File 'sig/openai/models/beta/chatkit/chatkit_widget_item.rbs', line 48
def initialize: (
id: String,
created_at: Integer,
thread_id: String,
widget: String,
?object: :"chatkit.thread_item",
?type: :"chatkit.widget"
) -> void
|
Instance Attribute Details
#created_at ⇒ Integer
Unix timestamp (in seconds) for when the item was created.
18 |
# File 'lib/openai/models/beta/chatkit/chatkit_widget_item.rb', line 18 required :created_at, Integer |
#id ⇒ String
Identifier of the thread item.
12 |
# File 'lib/openai/models/beta/chatkit/chatkit_widget_item.rb', line 12 required :id, String |
#object ⇒ :"chatkit.thread_item"
Type discriminator that is always chatkit.thread_item.
24 |
# File 'lib/openai/models/beta/chatkit/chatkit_widget_item.rb', line 24 required :object, const: :"chatkit.thread_item" |
#thread_id ⇒ String
Identifier of the parent thread.
30 |
# File 'lib/openai/models/beta/chatkit/chatkit_widget_item.rb', line 30 required :thread_id, String |
#type ⇒ :"chatkit.widget"
Type discriminator that is always chatkit.widget.
36 |
# File 'lib/openai/models/beta/chatkit/chatkit_widget_item.rb', line 36 required :type, const: :"chatkit.widget" |
#widget ⇒ String
Serialized widget payload rendered in the UI.
42 |
# File 'lib/openai/models/beta/chatkit/chatkit_widget_item.rb', line 42 required :widget, String |
Instance Method Details
#to_hash ⇒ { id: String, created_at: Integer, ?object: :"chatkit.thread_item", thread_id: String, ?type: :"chatkit.widget", widget: String }
57 58 59 60 61 62 63 64 |
# File 'sig/openai/models/beta/chatkit/chatkit_widget_item.rbs', line 57
def to_hash: -> {
id: String,
created_at: Integer,
?object: :"chatkit.thread_item",
thread_id: String,
?type: :"chatkit.widget",
widget: String
}
|