Package org.springframework.ai.anthropic
Class AnthropicSkillContainer.Builder
java.lang.Object
org.springframework.ai.anthropic.AnthropicSkillContainer.Builder
- Enclosing class:
- AnthropicSkillContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Add a skill by its ID or name.Add a skill by its ID or name with a specific version.skill(AnthropicSkill skill) Add a pre-built Anthropic skill using the enum.skill(AnthropicSkillRecord skill) Add a skill record directly.skill(AnthropicSkill skill, String version) Add a pre-built Anthropic skill with a specific version.Add multiple skills by their IDs or names.Add multiple skills from a list of IDs or names.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
skill
Add a skill by its ID or name. Automatically detects whether it's a pre-built Anthropic skill (xlsx, pptx, docx, pdf) or a custom skill ID.- Parameters:
skillIdOrName- the skill ID or name- Returns:
- this builder
-
skill
Add a skill by its ID or name with a specific version.- Parameters:
skillIdOrName- the skill ID or nameversion- the version (e.g., "latest", "20251013")- Returns:
- this builder
-
skill
Add a pre-built Anthropic skill using the enum.- Parameters:
skill- the Anthropic skill enum value- Returns:
- this builder
-
skill
Add a pre-built Anthropic skill with a specific version.- Parameters:
skill- the Anthropic skill enum valueversion- the version- Returns:
- this builder
-
skill
Add a skill record directly.- Parameters:
skill- the skill record- Returns:
- this builder
-
skills
Add multiple skills by their IDs or names.- Parameters:
skillIds- the skill IDs or names- Returns:
- this builder
-
skills
Add multiple skills from a list of IDs or names.- Parameters:
skillIds- the list of skill IDs or names- Returns:
- this builder
-
build
-