Skip to content

Get Skill Content

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

Get Skill Content

ParametersExpand Collapse
skillID string
ReturnsExpand Collapse
type SkillContentGetResponse interface{…}

Get Skill Content

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"),
  )
  content, err := client.Skills.Content.Get(context.TODO(), "skill_123")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", content)
}
Returns Examples