Class: Anthropic::Models::CitationCharLocationParam
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#initialize(cited_text:, document_index:, document_title:, end_char_index:, start_char_index:, type: :char_location) ⇒ CitationCharLocationParam
constructor
A new instance of CitationCharLocationParam.
-
#to_hash ⇒ { cited_text: String, document_index: Integer, document_title: String?, end_char_index: Integer, start_char_index: Integer, type: :char_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_char_index:, start_char_index:, type: :char_location) ⇒ CitationCharLocationParam
Returns a new instance of CitationCharLocationParam.
|
# File 'lib/anthropic/models/citation_char_location_param.rb', line 36
|
Instance Attribute Details
#cited_text ⇒ String
9
|
# File 'lib/anthropic/models/citation_char_location_param.rb', line 9
required :cited_text, String
|
#document_index ⇒ Integer
14
|
# File 'lib/anthropic/models/citation_char_location_param.rb', line 14
required :document_index, Integer
|
#document_title ⇒ String?
19
|
# File 'lib/anthropic/models/citation_char_location_param.rb', line 19
required :document_title, String, nil?: true
|
#end_char_index ⇒ Integer
24
|
# File 'lib/anthropic/models/citation_char_location_param.rb', line 24
required :end_char_index, Integer
|
#start_char_index ⇒ Integer
29
|
# File 'lib/anthropic/models/citation_char_location_param.rb', line 29
required :start_char_index, Integer
|
#type ⇒ Symbol, :char_location
34
|
# File 'lib/anthropic/models/citation_char_location_param.rb', line 34
required :type, const: :char_location
|
Instance Method Details
#to_hash ⇒ { cited_text: String, document_index: Integer, document_title: String?, end_char_index: Integer, start_char_index: Integer, type: :char_location }
35
36
37
38
39
40
41
42
|
# File 'sig/anthropic/models/citation_char_location_param.rbs', line 35
def to_hash: -> {
cited_text: String,
document_index: Integer,
document_title: String?,
end_char_index: Integer,
start_char_index: Integer,
type: :char_location
}
|