Skip to content
Primary navigation

Get a specific skill version.

client.Skills.Versions.Get(ctx, skillID, version) (*SkillVersion, error)
GET/skills/{skill_id}/versions/{version}

Get a specific skill version.

ParametersExpand Collapse
skillID string
version string

The version number to retrieve.

ReturnsExpand Collapse
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.

Get a specific skill version.

package main

import (
  "context"
  "fmt"

  "github.com/openai/openai-go"
  "github.com/openai/openai-go/option"
)

func main() {
  client := openai.NewClient(
    option.WithAPIKey("My API Key"),
  )
  skillVersion, err := client.Skills.Versions.Get(
    context.TODO(),
    "skill_123",
    "version",
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", skillVersion.ID)
}
{
  "id": "id",
  "created_at": 0,
  "description": "description",
  "name": "name",
  "object": "skill.version",
  "skill_id": "skill_id",
  "version": "version"
}
Returns Examples
{
  "id": "id",
  "created_at": 0,
  "description": "description",
  "name": "name",
  "object": "skill.version",
  "skill_id": "skill_id",
  "version": "version"
}