Class: OpenAI::Models::Beta::Threads::FilePathAnnotation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/threads/file_path_annotation.rb

Defined Under Namespace

Classes: FilePath

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, 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(end_index: , file_path: , start_index: , text: , type: :file_path) ⇒ Object

A URL for the file that’s generated when the assistant used the ‘code_interpreter` tool to generate a file.

Parameters:

  • end_index (Integer) (defaults to: )
  • file_path (OpenAI::Models::Beta::Threads::FilePathAnnotation::FilePath) (defaults to: )
  • start_index (Integer) (defaults to: )
  • text (String) (defaults to: )

    The text in the message content that needs to be replaced.

  • type (Symbol, :file_path) (defaults to: :file_path)

    Always ‘file_path`.



# File 'lib/openai/models/beta/threads/file_path_annotation.rb', line 35

Instance Attribute Details

#end_indexInteger

Returns:

  • (Integer)


11
# File 'lib/openai/models/beta/threads/file_path_annotation.rb', line 11

required :end_index, Integer

#file_pathOpenAI::Models::Beta::Threads::FilePathAnnotation::FilePath



16
# File 'lib/openai/models/beta/threads/file_path_annotation.rb', line 16

required :file_path, -> { OpenAI::Beta::Threads::FilePathAnnotation::FilePath }

#start_indexInteger

Returns:

  • (Integer)


21
# File 'lib/openai/models/beta/threads/file_path_annotation.rb', line 21

required :start_index, Integer

#textString

The text in the message content that needs to be replaced.

Returns:

  • (String)


27
# File 'lib/openai/models/beta/threads/file_path_annotation.rb', line 27

required :text, String

#typeSymbol, :file_path

Always ‘file_path`.

Returns:

  • (Symbol, :file_path)


33
# File 'lib/openai/models/beta/threads/file_path_annotation.rb', line 33

required :type, const: :file_path