Class: Anthropic::Models::CitationsSearchResultLocation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/citations_search_result_location.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: , end_block_index: , search_result_index: , source: , start_block_index: , title: , type: :search_result_location) ⇒ Object

Parameters:

  • cited_text (String) (defaults to: )
  • end_block_index (Integer) (defaults to: )
  • search_result_index (Integer) (defaults to: )
  • source (String) (defaults to: )
  • start_block_index (Integer) (defaults to: )
  • title (String, nil) (defaults to: )
  • type (Symbol, :search_result_location) (defaults to: :search_result_location)


# File 'lib/anthropic/models/citations_search_result_location.rb', line 41

Instance Attribute Details

#cited_textString

Returns:

  • (String)


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

required :cited_text, String

#end_block_indexInteger

Returns:

  • (Integer)


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

required :end_block_index, Integer

#search_result_indexInteger

Returns:

  • (Integer)


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

required :search_result_index, Integer

#sourceString

Returns:

  • (String)


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

required :source, String

#start_block_indexInteger

Returns:

  • (Integer)


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

required :start_block_index, Integer

#titleString?

Returns:

  • (String, nil)


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

required :title, String, nil?: true

#typeSymbol, :search_result_location

Returns:

  • (Symbol, :search_result_location)


39
# File 'lib/anthropic/models/citations_search_result_location.rb', line 39

required :type, const: :search_result_location