Package com.anthropic.models.beta.skills
Class SkillCreateParams.Body
-
- All Implemented Interfaces:
public final class SkillCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSkillCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<String>displayName()Human-readable, single-line label for the Skill. final List<MultipartField<InputStream>>files()Files to upload for the skill. final MultipartField<String>_displayName()Returns the raw multipart value of displayName. final Map<String, JsonValue>_additionalProperties()final SkillCreateParams.Body.BuildertoBuilder()final SkillCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SkillCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. final static SkillCreateParams.Bodyof(List<MultipartField<InputStream>> files)Returns an immutable instance of Body with the required files set to the given value. -
-
Method Detail
-
displayName
final Optional<String> displayName()
Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter
namewhen omitted at creation. Not unique.
-
files
final List<MultipartField<InputStream>> files()
Files to upload for the skill.
All files must be in the same top-level directory and must include a SKILL.md file at the root of that directory.
-
_displayName
final MultipartField<String> _displayName()
Returns the raw multipart value of displayName.
Unlike displayName, this method doesn't throw if the multipart field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SkillCreateParams.Body.Builder toBuilder()
-
validate
final SkillCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static SkillCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.files()
-
of
final static SkillCreateParams.Body of(List<MultipartField<InputStream>> files)
-
-
-
-