Package org.springframework.ai.anthropic
Enum Class AnthropicSkill
- All Implemented Interfaces:
Serializable,Comparable<AnthropicSkill>,Constable
Enum representing the pre-built Anthropic Skills available for Claude.
- Author:
- Soby Chacko
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable AnthropicSkillLook up a pre-built Anthropic skill by its ID.toSkill()Convert to anAnthropicSkillRecordwith latest version.Convert to anAnthropicSkillRecordwith specific version.static AnthropicSkillReturns the enum constant of this class with the specified name.static AnthropicSkill[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
XLSX
Excel spreadsheet generation and manipulation. -
PPTX
PowerPoint presentation creation. -
DOCX
Word document generation. -
PDF
PDF document creation.
-
-
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
-
fromId
Look up a pre-built Anthropic skill by its ID.- Parameters:
skillId- the skill ID (e.g., "xlsx", "pptx", "docx", "pdf")- Returns:
- the matching skill, or null if not found
-
getSkillId
-
getDescription
-
toSkill
Convert to anAnthropicSkillRecordwith latest version.- Returns:
- skill record
-
toSkill
Convert to anAnthropicSkillRecordwith specific version.- Parameters:
version- version string- Returns:
- skill record
-