module

Anthropic::CitationConverter

Discriminated-union converter for citation objects.

Dispatches based on the type field. For backwards compatibility, objects without an explicit type but with start_char/end_char are treated as char_location.

Class methods

from_json(pull : JSON::PullParser) : CitationRef
Source
to_json(value : CitationRef, builder : JSON::Builder)
Source