Class SkillParams
-
- All Implemented Interfaces:
public final class SkillParamsSpecification for a skill to be loaded in a container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSkillParams.BuilderA builder for SkillParams.
public final classSkillParams.TypeType of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
-
Method Summary
Modifier and Type Method Description final StringskillId()Skill ID final SkillParams.Typetype()Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined) final Optional<String>version()Skill version or 'latest' for most recent version final JsonField<String>_skillId()Returns the raw JSON value of skillId. final JsonField<SkillParams.Type>_type()Returns the raw JSON value of type. final JsonField<String>_version()Returns the raw JSON value of version. final Map<String, JsonValue>_additionalProperties()final SkillParams.BuildertoBuilder()final SkillParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SkillParams.Builderbuilder()Returns a mutable builder for constructing an instance of SkillParams. -
-
Method Detail
-
type
final SkillParams.Type type()
Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
-
_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.
-
_type
final JsonField<SkillParams.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_version
final JsonField<String> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SkillParams.Builder toBuilder()
-
validate
final SkillParams 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 SkillParams.Builder builder()
Returns a mutable builder for constructing an instance of SkillParams.
The following fields are required:
.skillId() .type()
-
-
-
-