Class Skill
-
- All Implemented Interfaces:
public final class Skill
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSkill.BuilderA builder for Skill.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the skill. final OffsetDateTimecreatedAt()ISO 8601 timestamp of when the skill was created. final StringdisplayName()Human-readable, single-line label for the Skill. final StringlatestVersionId()ID of the newest Skill Version — what latestreferences resolve to.final SkillSourcesource()Where the Skill comes from. final OffsetDateTimeupdatedAt()ISO 8601 timestamp of when the skill was last updated. final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<String>_latestVersionId()Returns the raw JSON value of latestVersionId. final JsonField<SkillSource>_source()Returns the raw JSON value of source. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final Map<String, JsonValue>_additionalProperties()final Skill.BuildertoBuilder()final Skillvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Skill.Builderbuilder()Returns a mutable builder for constructing an instance of Skill. -
-
Method Detail
-
id
final String id()
Unique identifier for the skill.
The format and length of IDs may change over time.
-
createdAt
final OffsetDateTime createdAt()
ISO 8601 timestamp of when the skill was created.
-
displayName
final 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.
-
latestVersionId
final String latestVersionId()
ID of the newest Skill Version — what
latestreferences resolve to. Always set: a Skill holds at least one version.
-
source
final SkillSource source()
Where the Skill comes from.
Possible values:
"custom": authored by the platform user; private to their workspace"anthropic": published by Anthropic; shared and read-only"anthropic_example": Anthropic-published sample Skill"plugin": resolved from an installed plugin
-
updatedAt
final OffsetDateTime updatedAt()
ISO 8601 timestamp of when the skill was last updated.
-
_type
final JsonValue _type()
Object type.
For Skills, this is always
"skill".Expected to always return the following:
JsonValue.from("skill")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_latestVersionId
final JsonField<String> _latestVersionId()
Returns the raw JSON value of latestVersionId.
Unlike latestVersionId, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<SkillSource> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Skill.Builder toBuilder()
-
validate
final Skill 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 Skill.Builder builder()
Returns a mutable builder for constructing an instance of Skill.
The following fields are required:
.id() .createdAt() .displayName() .latestVersionId() .source() .updatedAt()
-
-
-
-