Uses of Class
org.springframework.ai.anthropic.Citation
Packages that use Citation
Package
Description
Spring AI integration with Anthropic's Claude models using the official
Anthropic Java SDK.
-
Uses of Citation in org.springframework.ai.anthropic
Methods in org.springframework.ai.anthropic that return CitationModifier and TypeMethodDescriptionstatic CitationCitation.ofCharLocation(String citedText, int documentIndex, @Nullable String documentTitle, int startCharIndex, int endCharIndex) Create a character location citation for plain text documents.static CitationCitation.ofContentBlockLocation(String citedText, int documentIndex, @Nullable String documentTitle, int startBlockIndex, int endBlockIndex) Create a content block location citation for custom content documents.static CitationCitation.ofPageLocation(String citedText, int documentIndex, @Nullable String documentTitle, int startPageNumber, int endPageNumber) Create a page location citation for PDF documents.static CitationCitation.ofWebSearchResultLocation(String citedText, String url, @Nullable String documentTitle) Create a web search result location citation.