Class: Anthropic::Models::CitationPageLocation
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#initialize(cited_text:, document_index:, document_title:, end_page_number:, file_id:, start_page_number:, type: :page_location) ⇒ CitationPageLocation
constructor
A new instance of CitationPageLocation.
-
#to_hash ⇒ { cited_text: String, document_index: Integer, document_title: String?, end_page_number: Integer, file_id: String?, start_page_number: Integer, type: :page_location }
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(cited_text:, document_index:, document_title:, end_page_number:, file_id:, start_page_number:, type: :page_location) ⇒ CitationPageLocation
Returns a new instance of CitationPageLocation.
|
# File 'lib/anthropic/models/citation_page_location.rb', line 41
|
Instance Attribute Details
#cited_text ⇒ String
9
|
# File 'lib/anthropic/models/citation_page_location.rb', line 9
required :cited_text, String
|
#document_index ⇒ Integer
14
|
# File 'lib/anthropic/models/citation_page_location.rb', line 14
required :document_index, Integer
|
#document_title ⇒ String?
19
|
# File 'lib/anthropic/models/citation_page_location.rb', line 19
required :document_title, String, nil?: true
|
#end_page_number ⇒ Integer
24
|
# File 'lib/anthropic/models/citation_page_location.rb', line 24
required :end_page_number, Integer
|
#file_id ⇒ String?
29
|
# File 'lib/anthropic/models/citation_page_location.rb', line 29
required :file_id, String, nil?: true
|
#start_page_number ⇒ Integer
34
|
# File 'lib/anthropic/models/citation_page_location.rb', line 34
required :start_page_number, Integer
|
#type ⇒ Symbol, :page_location
39
|
# File 'lib/anthropic/models/citation_page_location.rb', line 39
required :type, const: :page_location
|
Instance Method Details
#to_hash ⇒ { cited_text: String, document_index: Integer, document_title: String?, end_page_number: Integer, file_id: String?, start_page_number: Integer, type: :page_location }
39
40
41
42
43
44
45
46
47
|
# File 'sig/anthropic/models/citation_page_location.rbs', line 39
def to_hash: -> {
cited_text: String,
document_index: Integer,
document_title: String?,
end_page_number: Integer,
file_id: String?,
start_page_number: Integer,
type: :page_location
}
|