Enum Class AnthropicSkill

java.lang.Object
java.lang.Enum<AnthropicSkill>
org.springframework.ai.anthropic.AnthropicSkill
All Implemented Interfaces:
Serializable, Comparable<AnthropicSkill>, Constable

public enum AnthropicSkill extends Enum<AnthropicSkill>
Enum representing the pre-built Anthropic Skills available for Claude.
Author:
Soby Chacko
  • Enum Constant Details

    • XLSX

      public static final AnthropicSkill XLSX
      Excel spreadsheet generation and manipulation.
    • PPTX

      public static final AnthropicSkill PPTX
      PowerPoint presentation creation.
    • DOCX

      public static final AnthropicSkill DOCX
      Word document generation.
    • PDF

      public static final AnthropicSkill PDF
      PDF document creation.
  • Method Details

    • values

      public static AnthropicSkill[] 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

      public static AnthropicSkill valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromId

      public static @Nullable AnthropicSkill fromId(@Nullable String skillId)
      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

      public String getSkillId()
    • getDescription

      public String getDescription()
    • toSkill

      public AnthropicSkillRecord toSkill()
      Convert to an AnthropicSkillRecord with latest version.
      Returns:
      skill record
    • toSkill

      public AnthropicSkillRecord toSkill(String version)
      Convert to an AnthropicSkillRecord with specific version.
      Parameters:
      version - version string
      Returns:
      skill record