Class: OpenAI::Models::Beta::ChatKit::ChatKitResponseOutputText::Annotation::URL
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKit::ChatKitResponseOutputText::Annotation::URL
- Defined in:
- lib/openai/models/beta/chatkit/chatkit_response_output_text.rb,
sig/openai/models/beta/chatkit/chatkit_response_output_text.rbs
Defined Under Namespace
Classes: Source
Instance Attribute Summary collapse
-
#source ⇒ OpenAI::Beta::ChatKit::ChatKitResponseOutputText::Annotation::URL::Source
URL referenced by the annotation.
-
#type ⇒ :url
Type discriminator that is always
urlfor this annotation.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(source:, type: :url) ⇒ URL
constructor
A new instance of URL.
- #to_hash ⇒ { source: OpenAI::Beta::ChatKit::ChatKitResponseOutputText::Annotation::URL::Source, ?type: :url }
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(source:, type: :url) ⇒ URL
Returns a new instance of URL.
|
|
# File 'lib/openai/models/beta/chatkit/chatkit_response_output_text.rb', line 113
|
Instance Attribute Details
#source ⇒ OpenAI::Beta::ChatKit::ChatKitResponseOutputText::Annotation::URL::Source
URL referenced by the annotation.
105 |
# File 'lib/openai/models/beta/chatkit/chatkit_response_output_text.rb', line 105 required :source, -> { OpenAI::Beta::ChatKit::ChatKitResponseOutputText::Annotation::URL::Source } |
#type ⇒ :url
Type discriminator that is always url for this annotation.
111 |
# File 'lib/openai/models/beta/chatkit/chatkit_response_output_text.rb', line 111 required :type, const: :url |
Instance Method Details
#to_hash ⇒ { source: OpenAI::Beta::ChatKit::ChatKitResponseOutputText::Annotation::URL::Source, ?type: :url }
117 118 119 120 |
# File 'sig/openai/models/beta/chatkit/chatkit_response_output_text.rbs', line 117
def to_hash: -> {
source: OpenAI::Beta::ChatKit::ChatKitResponseOutputText::Annotation::URL::Source,
?type: :url
}
|