struct

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cited_text
Source
document_index
Source
document_title
Source
end_char
Source
start_char
Source
type
Source