Class: OpenAI::Models::Beta::Threads::FilePathDeltaAnnotation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Threads::FilePathDeltaAnnotation
- Defined in:
- lib/openai/models/beta/threads/file_path_delta_annotation.rb
Defined Under Namespace
Classes: FilePath
Instance Attribute Summary collapse
- #end_index ⇒ Integer?
- #file_path ⇒ OpenAI::Models::Beta::Threads::FilePathDeltaAnnotation::FilePath?
-
#index ⇒ Integer
The index of the annotation in the text content part.
- #start_index ⇒ Integer?
-
#text ⇒ String?
The text in the message content that needs to be replaced.
-
#type ⇒ Symbol, :file_path
Always ‘file_path`.
Instance Method Summary collapse
-
#initialize(index: , end_index: nil, file_path: nil, start_index: nil, text: nil, type: :file_path) ⇒ Object
constructor
A URL for the file that’s generated when the assistant used the ‘code_interpreter` tool to generate a file.
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, 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(index: , end_index: nil, file_path: nil, start_index: nil, text: nil, type: :file_path) ⇒ Object
A URL for the file that’s generated when the assistant used the ‘code_interpreter` tool to generate a file.
|
# File 'lib/openai/models/beta/threads/file_path_delta_annotation.rb', line 41
|
Instance Attribute Details
#end_index ⇒ Integer?
23 |
# File 'lib/openai/models/beta/threads/file_path_delta_annotation.rb', line 23 optional :end_index, Integer |
#file_path ⇒ OpenAI::Models::Beta::Threads::FilePathDeltaAnnotation::FilePath?
28 |
# File 'lib/openai/models/beta/threads/file_path_delta_annotation.rb', line 28 optional :file_path, -> { OpenAI::Beta::Threads::FilePathDeltaAnnotation::FilePath } |
#index ⇒ Integer
The index of the annotation in the text content part.
12 |
# File 'lib/openai/models/beta/threads/file_path_delta_annotation.rb', line 12 required :index, Integer |
#start_index ⇒ Integer?
33 |
# File 'lib/openai/models/beta/threads/file_path_delta_annotation.rb', line 33 optional :start_index, Integer |
#text ⇒ String?
The text in the message content that needs to be replaced.
39 |
# File 'lib/openai/models/beta/threads/file_path_delta_annotation.rb', line 39 optional :text, String |
#type ⇒ Symbol, :file_path
Always ‘file_path`.
18 |
# File 'lib/openai/models/beta/threads/file_path_delta_annotation.rb', line 18 required :type, const: :file_path |