Class SkillVersion

  • All Implemented Interfaces:

    
    public final class SkillVersion
    
                        
    • Constructor Detail

    • Method Detail

      • id

         final String id()

        Unique identifier for this Skill Version. The id addresses the version in paths and pins it in references.

      • description

         final String description()

        Description of the skill version.

        This is extracted from the SKILL.md file in the skill upload.

      • name

         final String name()

        The Skill's immutable kebab-case slug, set at creation from the first upload's SKILL.md frontmatter name (or its enclosing directory). Every later upload must resolve to the same value. Also the top-level directory of the Skill's mounted files and the base name of a downloaded archive.

      • skillId

         final String skillId()

        Unique identifier for the skill.

        The format and length of IDs may change over time.

      • _type

         final JsonValue _type()

        Object type.

        For Skill Versions, this is always "skill_version".

        Expected to always return the following:

        JsonValue.from("skill_version")

        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.

      • _description

         final JsonField<String> _description()

        Returns the raw JSON value of description.

        Unlike description, this method doesn't throw if the JSON field has an unexpected type.

      • _name

         final JsonField<String> _name()

        Returns the raw JSON value of name.

        Unlike name, this method doesn't throw if the JSON field has an unexpected type.

      • _skillId

         final JsonField<String> _skillId()

        Returns the raw JSON value of skillId.

        Unlike skillId, this method doesn't throw if the JSON field has an unexpected type.

      • validate

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

        Returns a mutable builder for constructing an instance of SkillVersion.

        The following fields are required:

        .id()
        .createdAt()
        .description()
        .name()
        .skillId()