Package org.springframework.ai.anthropic
Class AnthropicSkillRecord
java.lang.Object
org.springframework.ai.anthropic.AnthropicSkillRecord
Represents a Claude Skill - either pre-built Anthropic skill or custom skill. Skills
are collections of instructions, scripts, and resources that extend Claude's
capabilities for specific domains.
- Author:
- Soby Chacko
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAnthropicSkillRecord(AnthropicSkillType type, String skillId) Create a skill with default "latest" version.AnthropicSkillRecord(AnthropicSkillType type, String skillId, String version) Create a skill with a specific version. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnthropicSkillRecord.Builderbuilder()getType()Convert to a map suitable for JSON serialization viaJsonValue.from().
-
Constructor Details
-
AnthropicSkillRecord
Create a skill with a specific version.- Parameters:
type- skill typeskillId- skill identifierversion- version string (e.g., "latest", "20251013")
-
AnthropicSkillRecord
Create a skill with default "latest" version.- Parameters:
type- skill typeskillId- skill identifier
-
-
Method Details
-
getType
-
getSkillId
-
getVersion
-
toJsonMap
Convert to a map suitable for JSON serialization viaJsonValue.from().- Returns:
- map with type, skill_id, and version keys
-
builder
-