Class: OpenAI::Models::Beta::ChatKit::ChatKitAttachment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKit::ChatKitAttachment
- Defined in:
- lib/openai/models/beta/chatkit/chatkit_attachment.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#id ⇒ String
Identifier for the attachment.
-
#mime_type ⇒ String
MIME type of the attachment.
-
#name ⇒ String
Original display name for the attachment.
-
#preview_url ⇒ String?
Preview URL for rendering the attachment inline.
-
#type ⇒ Symbol, OpenAI::Models::Beta::ChatKit::ChatKitAttachment::Type
Attachment discriminator.
Instance Method Summary collapse
-
#initialize(id:, mime_type:, name:, preview_url:, type:) ⇒ Object
constructor
Attachment metadata included on thread items.
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:, mime_type:, name:, preview_url:, type:) ⇒ Object
Attachment metadata included on thread items.
|
|
# File 'lib/openai/models/beta/chatkit/chatkit_attachment.rb', line 38
|
Instance Attribute Details
#id ⇒ String
Identifier for the attachment.
12 |
# File 'lib/openai/models/beta/chatkit/chatkit_attachment.rb', line 12 required :id, String |
#mime_type ⇒ String
MIME type of the attachment.
18 |
# File 'lib/openai/models/beta/chatkit/chatkit_attachment.rb', line 18 required :mime_type, String |
#name ⇒ String
Original display name for the attachment.
24 |
# File 'lib/openai/models/beta/chatkit/chatkit_attachment.rb', line 24 required :name, String |
#preview_url ⇒ String?
Preview URL for rendering the attachment inline.
30 |
# File 'lib/openai/models/beta/chatkit/chatkit_attachment.rb', line 30 required :preview_url, String, nil?: true |
#type ⇒ Symbol, OpenAI::Models::Beta::ChatKit::ChatKitAttachment::Type
Attachment discriminator.
36 |
# File 'lib/openai/models/beta/chatkit/chatkit_attachment.rb', line 36 required :type, enum: -> { OpenAI::Beta::ChatKit::ChatKitAttachment::Type } |