Class BetaSkill

  • All Implemented Interfaces:

    
    public final class BetaSkill
    
                        
    • Constructor Detail

    • Method Detail

      • id

         final String id()

        Unique identifier for the skill.

        The format and length of IDs may change over time.

      • displayName

         final String displayName()

        Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter name when omitted at creation. Not unique.

      • latestVersionId

         final String latestVersionId()

        ID of the newest Skill Version — what latest references resolve to. Always set: a Skill holds at least one version.

      • source

         final BetaSkillSource 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

      • _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<BetaSkillSource> _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.

      • validate

         final BetaSkill 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 BetaSkill.Builder builder()

        Returns a mutable builder for constructing an instance of BetaSkill.

        The following fields are required:

        .id()
        .createdAt()
        .displayName()
        .latestVersionId()
        .source()
        .updatedAt()