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/end_char 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 : Int32, end_char : Int32, document_title : String | Nil = nil, document_index : Int32 | Nil = nil, cited_text : 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
Sourcestart_char
Sourcetype
Source