Enum Class CitationDocument.DocumentType
java.lang.Object
java.lang.Enum<CitationDocument.DocumentType>
org.springframework.ai.anthropic.api.CitationDocument.DocumentType
- All Implemented Interfaces:
Serializable, Comparable<CitationDocument.DocumentType>, Constable
- Enclosing class:
CitationDocument
Document types supported by Anthropic Citations API. Each type uses different
citation location formats in the response.
- Since:
- 1.1.0
- Author:
- Soby Chacko
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCustom content with user-defined blocks and block-based citations.PDF document with page-based citations.Plain text document with character-based citations. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CitationDocument.DocumentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAIN_TEXT
Plain text document with character-based citations. Text is automatically chunked by sentences and citations return character start/end indices. -
PDF
PDF document with page-based citations. Content is extracted and chunked from the PDF, and citations return page start/end numbers. -
CUSTOM_CONTENT
Custom content with user-defined blocks and block-based citations. Content is provided as explicit blocks, and citations return block start/end indices.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-