Enum Class AnthropicSkill
- All Implemented Interfaces:
Serializable, Comparable<AnthropicSkill>, Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionskillId()The Anthropic skill identifier (e.g.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
Generates Microsoft Excel spreadsheets (.xlsx). -
PPTX
Generates Microsoft PowerPoint presentations (.pptx). -
DOCX
Generates Microsoft Word documents (.docx). -
PDF
Generates PDF documents (.pdf).
-
-
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
-
skillId
The Anthropic skill identifier (e.g."xlsx") sent in thecontainer.skillsrequest block.
-