Class: Anthropic::Models::CitationCharLocationParam

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/citation_char_location_param.rb

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, 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(cited_text:, document_index:, document_title:, end_char_index:, start_char_index:, type: :char_location) ⇒ void

Parameters:

  • cited_text (String)
  • document_index (Integer)
  • document_title (String, nil)
  • end_char_index (Integer)
  • start_char_index (Integer)
  • type (Symbol, :char_location) (defaults to: :char_location)


# File 'lib/anthropic/models/citation_char_location_param.rb', line 36

Instance Attribute Details

#cited_textString

Returns:

  • (String)


9
# File 'lib/anthropic/models/citation_char_location_param.rb', line 9

required :cited_text, String

#document_indexInteger

Returns:

  • (Integer)


14
# File 'lib/anthropic/models/citation_char_location_param.rb', line 14

required :document_index, Integer

#document_titleString?

Returns:

  • (String, nil)


19
# File 'lib/anthropic/models/citation_char_location_param.rb', line 19

required :document_title, String, nil?: true

#end_char_indexInteger

Returns:

  • (Integer)


24
# File 'lib/anthropic/models/citation_char_location_param.rb', line 24

required :end_char_index, Integer

#start_char_indexInteger

Returns:

  • (Integer)


29
# File 'lib/anthropic/models/citation_char_location_param.rb', line 29

required :start_char_index, Integer

#typeSymbol, :char_location

Returns:

  • (Symbol, :char_location)


34
# File 'lib/anthropic/models/citation_char_location_param.rb', line 34

required :type, const: :char_location