Method: Anthropic::Models::TextBlock#citations

Defined in:
lib/anthropic/models/text_block.rb

#citationsArray<Anthropic::Models::CitationCharLocation, Anthropic::Models::CitationPageLocation, Anthropic::Models::CitationContentBlockLocation, Anthropic::Models::CitationsWebSearchResultLocation, Anthropic::Models::CitationsSearchResultLocation>?

Citations supporting the text block.

The type of citation returned will depend on the type of document being cited. Citing a PDF results in page_location, plain text results in char_location, and content document results in content_block_location.



14
15
16
17
18
# File 'lib/anthropic/models/text_block.rb', line 14

required :citations,
-> {
  Anthropic::Internal::Type::ArrayOf[union: Anthropic::TextCitation]
},
nil?: true