Anthropic::Citation
Inherits JSON::Serializable < Struct < Value < Object
Citation for a character range within a cited document.
This is the legacy char-location citation struct. It remains the canonical
representation for start_char_index/end_char_index citations. For other
location types (page, content block, web search result, search result), see
the dedicated citation structs and the CitationRef union.
Constructors
new(start_char_index : Int32, end_char_index : Int32, document_title : String | Nil = nil, document_index : Int32 | Nil = nil, cited_text : String | Nil = nil, file_id : String | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
cited_text
Sourcedocument_index
Sourcedocument_title
Sourceend_char_index
Sourcefile_id
Sourcestart_char_index
Sourcetype
Source