Skip to content

Skills

Create Skill
client.Skills.New(ctx, body) (*Skill, error)
POST/skills
List Skills
client.Skills.List(ctx, query) (*CursorPage[Skill], error)
GET/skills
Get Skill
client.Skills.Get(ctx, skillID) (*Skill, error)
GET/skills/{skill_id}
Update Skill Default Version
client.Skills.Update(ctx, skillID, body) (*Skill, error)
POST/skills/{skill_id}
Delete Skill
client.Skills.Delete(ctx, skillID) (*DeletedSkill, error)
DELETE/skills/{skill_id}
ModelsExpand Collapse
type DeletedSkill struct{…}
ID string
Deleted bool
Object SkillDeleted
type Skill struct{…}
ID string

Unique identifier for the skill.

CreatedAt int64

Unix timestamp (seconds) for when the skill was created.

DefaultVersion string

Default version for the skill.

Description string

Description of the skill.

LatestVersion string

Latest version for the skill.

Name string

Name of the skill.

Object Skill

The object type, which is skill.

type SkillList struct{…}
Data []Skill

A list of items

ID string

Unique identifier for the skill.

CreatedAt int64

Unix timestamp (seconds) for when the skill was created.

DefaultVersion string

Default version for the skill.

Description string

Description of the skill.

LatestVersion string

Latest version for the skill.

Name string

Name of the skill.

Object Skill

The object type, which is skill.

FirstID string

The ID of the first item in the list.

HasMore bool

Whether there are more items available.

LastID string

The ID of the last item in the list.

Object List

The type of object returned, must be list.

SkillsContent

Get Skill Content
client.Skills.Content.Get(ctx, skillID) (*Response, error)
GET/skills/{skill_id}/content

SkillsVersions

Create Skill Version
client.Skills.Versions.New(ctx, skillID, body) (*SkillVersion, error)
POST/skills/{skill_id}/versions
List Skill Versions
client.Skills.Versions.List(ctx, skillID, query) (*CursorPage[SkillVersion], error)
GET/skills/{skill_id}/versions
Get Skill Version
client.Skills.Versions.Get(ctx, skillID, version) (*SkillVersion, error)
GET/skills/{skill_id}/versions/{version}
Delete Skill Version
client.Skills.Versions.Delete(ctx, skillID, version) (*DeletedSkillVersion, error)
DELETE/skills/{skill_id}/versions/{version}
ModelsExpand Collapse
type DeletedSkillVersion struct{…}
ID string
Deleted bool
Object SkillVersionDeleted
Version string

The deleted skill version.

type SkillVersion struct{…}
ID string

Unique identifier for the skill version.

CreatedAt int64

Unix timestamp (seconds) for when the version was created.

Description string

Description of the skill version.

Name string

Name of the skill version.

Object SkillVersion

The object type, which is skill.version.

SkillID string

Identifier of the skill for this version.

Version string

Version number for this skill.

type SkillVersionList struct{…}

A list of items

ID string

Unique identifier for the skill version.

CreatedAt int64

Unix timestamp (seconds) for when the version was created.

Description string

Description of the skill version.

Name string

Name of the skill version.

Object SkillVersion

The object type, which is skill.version.

SkillID string

Identifier of the skill for this version.

Version string

Version number for this skill.

FirstID string

The ID of the first item in the list.

HasMore bool

Whether there are more items available.

LastID string

The ID of the last item in the list.

Object List

The type of object returned, must be list.

SkillsVersionsContent

Get Skill Version Content
client.Skills.Versions.Content.Get(ctx, skillID, version) (*Response, error)
GET/skills/{skill_id}/versions/{version}/content