Enum Class AnthropicSkill

java.lang.Object
java.lang.Enum<AnthropicSkill>
dev.langchain4j.model.anthropic.AnthropicSkill
All Implemented Interfaces:
Serializable, Comparable<AnthropicSkill>, Constable

@Experimental public enum AnthropicSkill extends Enum<AnthropicSkill>
Anthropic-managed Agent Skills that let Claude generate real downloadable documents by running pre-built skills inside the code execution container.

Enable them via AnthropicChatModel.AnthropicChatModelBuilder.skills(AnthropicSkill...) or AnthropicStreamingChatModel.AnthropicStreamingChatModelBuilder.skills(AnthropicSkill...), which also auto-enables the required code_execution server tool and beta headers.

Skills are supported on Claude Sonnet 4 / 4.5, Opus 4 and later. At most 8 skills may be enabled per request, and files generated by skills are downloadable for 24 hours through Anthropic's Files API.

Since:
1.18.0
  • Enum Constant Details

    • XLSX

      public static final AnthropicSkill XLSX
      Generates Microsoft Excel spreadsheets (.xlsx).
    • PPTX

      public static final AnthropicSkill PPTX
      Generates Microsoft PowerPoint presentations (.pptx).
    • DOCX

      public static final AnthropicSkill DOCX
      Generates Microsoft Word documents (.docx).
    • PDF

      public static final AnthropicSkill PDF
      Generates PDF documents (.pdf).
  • 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
    • skillId

      public String skillId()
      The Anthropic skill identifier (e.g. "xlsx") sent in the container.skills request block.