SkillsResource class

Resource for the Skills API.

Skills are reusable components that extend Claude's capabilities. This is a beta feature and requires the anthropic-beta header.

Constructors

SkillsResource({required AnthropicConfig config, required Client httpClient, required InterceptorChain interceptorChain, required RequestBuilder requestBuilder, void ensureNotClosed()?})
Creates a SkillsResource.

Properties

config AnthropicConfig
Client configuration.
finalinherited
ensureNotClosed → void Function()?
Callback to check if the client has been closed.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
HTTP client for making requests.
finalinherited
interceptorChain → InterceptorChain
Interceptor chain for request/response processing.
finalinherited
requestBuilder → RequestBuilder
Request builder for constructing HTTP requests.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create({required Uint8List skillBytes, String? displayTitle}) Future<Skill>
Creates a new skill.
createVersion({required String skillId, required Uint8List versionBytes}) Future<SkillVersion>
Creates a new version of a skill.
deleteSkill({required String skillId}) Future<void>
Deletes a skill.
deleteVersion({required String skillId, required String version}) Future<void>
Deletes a specific version of a skill.
list({int? limit, String? page, SkillSource? source}) Future<SkillListResponse>
Lists skills.
listVersions({required String skillId, int? limit, String? page}) Future<SkillVersionListResponse>
Lists versions of a skill.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieve({required String skillId}) Future<Skill>
Gets a specific skill.
retrieveVersion({required String skillId, required String version}) Future<SkillVersion>
Gets a specific version of a skill.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited