| 1 | // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
| 2 | |
| 3 | package anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/ |
| 4 | |
| 5 | import ( |
| 6 | "bytesscip-go gomod github.com/golang/go/src go1.23.0 bytes/" |
| 7 | "contextscip-go gomod github.com/golang/go/src go1.23.0 context/" |
| 8 | "errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/" |
| 9 | "fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/" |
| 10 | "ioscip-go gomod github.com/golang/go/src go1.23.0 io/" |
| 11 | "mime/multipartscip-go gomod github.com/golang/go/src go1.23.0 `mime/multipart`/" |
| 12 | "net/httpscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/" |
| 13 | "net/urlscip-go gomod github.com/golang/go/src go1.23.0 `net/url`/" |
| 14 | "slicesscip-go gomod github.com/golang/go/src go1.23.0 slices/" |
| 15 | |
| 16 | "github.com/anthropics/anthropic-sdk-go/internal/apiformscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiform`/" |
| 17 | "github.com/anthropics/anthropic-sdk-go/internal/apijsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/" |
| 18 | "github.com/anthropics/anthropic-sdk-go/internal/apiqueryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/" |
| 19 | "github.com/anthropics/anthropic-sdk-go/internal/requestconfigscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/" |
| 20 | "github.com/anthropics/anthropic-sdk-go/optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/" |
| 21 | "github.com/anthropics/anthropic-sdk-go/packages/paginationscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/pagination`/" |
| 22 | "github.com/anthropics/anthropic-sdk-go/packages/paramscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/param`/" |
| 23 | "github.com/anthropics/anthropic-sdk-go/packages/respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/" |
| 24 | ) |
| 25 | |
| 26 | // BetaSkillVersionService contains methods and other services that help with |
| 27 | // interacting with the anthropic API. |
| 28 | // |
| 29 | // Note, unlike clients, this service does not read variables from the environment |
| 30 | // automatically. You should not instantiate this service directly, and instead use |
| 31 | // the [NewBetaSkillVersionService] method instead. |
| 32 | type BetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService# struct { |
| 33 | Optionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Options. []optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption# |
| 34 | } |
| 35 | |
| 36 | // NewBetaSkillVersionService generates a new service that applies the given |
| 37 | // options to each request. These options are applied after the parent client's |
| 38 | // options (if there is one), and before any request-specific options. |
| 39 | func NewBetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/NewBetaSkillVersionService().(opts ...optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#) (r BetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#) { |
| 40 | r = BetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#{} |
| 41 | r.Optionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Options. = opts |
| 42 | return |
| 43 | } |
| 44 | |
| 45 | // Create Skill Version |
| 46 | func (r *BetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#) Newscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#New().(ctx contextscip-go gomod github.com/golang/go/src go1.23.0 context/.Contextscip-go gomod github.com/golang/go/src go1.23.0 context/Context#, skillID string, params BetaSkillVersionNewParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#, opts ...optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#) (res *BetaSkillVersionNewResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#, err error) { |
| 47 | for _, v := range params.Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#Betas. { |
| 48 | opts = append(opts, optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithHeaderAddscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithHeaderAdd().("anthropic-beta", fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.23.0 fmt/Sprintf().("%v", v))) |
| 49 | } |
| 50 | opts = slicesscip-go gomod github.com/golang/go/src go1.23.0 slices/.Concatscip-go gomod github.com/golang/go/src go1.23.0 slices/Concat().(r.Optionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Options., opts) |
| 51 | opts = append([]optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#{optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithHeaderscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithHeader().("anthropic-beta", "skills-2025-10-02")}, opts...) |
| 52 | if skillID == "" { |
| 53 | err = errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Newscip-go gomod github.com/golang/go/src go1.23.0 errors/New().("missing required skill_id parameter") |
| 54 | return nil, err |
| 55 | } |
| 56 | path := fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.23.0 fmt/Sprintf().("v1/skills/%s/versions?beta=true", skillID) |
| 57 | err = requestconfigscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/.ExecuteNewRequestscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/ExecuteNewRequest().(ctx, httpscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/.MethodPostscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/MethodPost., path, params, &res, opts...) |
| 58 | return res, err |
| 59 | } |
| 60 | |
| 61 | // Get Skill Version |
| 62 | func (r *BetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#) Getscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Get().(ctx contextscip-go gomod github.com/golang/go/src go1.23.0 context/.Contextscip-go gomod github.com/golang/go/src go1.23.0 context/Context#, version string, params BetaSkillVersionGetParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#, opts ...optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#) (res *BetaSkillVersionGetResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#, err error) { |
| 63 | for _, v := range params.Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#Betas. { |
| 64 | opts = append(opts, optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithHeaderAddscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithHeaderAdd().("anthropic-beta", fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.23.0 fmt/Sprintf().("%v", v))) |
| 65 | } |
| 66 | opts = slicesscip-go gomod github.com/golang/go/src go1.23.0 slices/.Concatscip-go gomod github.com/golang/go/src go1.23.0 slices/Concat().(r.Optionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Options., opts) |
| 67 | opts = append([]optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#{optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithHeaderscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithHeader().("anthropic-beta", "skills-2025-10-02")}, opts...) |
| 68 | if params.SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#SkillID. == "" { |
| 69 | err = errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Newscip-go gomod github.com/golang/go/src go1.23.0 errors/New().("missing required skill_id parameter") |
| 70 | return nil, err |
| 71 | } |
| 72 | if version == "" { |
| 73 | err = errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Newscip-go gomod github.com/golang/go/src go1.23.0 errors/New().("missing required version parameter") |
| 74 | return nil, err |
| 75 | } |
| 76 | path := fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.23.0 fmt/Sprintf().("v1/skills/%s/versions/%s?beta=true", params.SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#SkillID., version) |
| 77 | err = requestconfigscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/.ExecuteNewRequestscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/ExecuteNewRequest().(ctx, httpscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/.MethodGetscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/MethodGet., path, nil, &res, opts...) |
| 78 | return res, err |
| 79 | } |
| 80 | |
| 81 | // List Skill Versions |
| 82 | func (r *BetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#) Listscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#List().(ctx contextscip-go gomod github.com/golang/go/src go1.23.0 context/.Contextscip-go gomod github.com/golang/go/src go1.23.0 context/Context#, skillID string, params BetaSkillVersionListParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#, opts ...optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#) (res *paginationscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/pagination`/.PageCursorscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/pagination`/PageCursor#[BetaSkillVersionListResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#], err error) { |
| 83 | var raw *httpscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/.Responsescip-go gomod github.com/golang/go/src go1.23.0 `net/http`/Response# |
| 84 | for _, v := range params.Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#Betas. { |
| 85 | opts = append(opts, optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithHeaderAddscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithHeaderAdd().("anthropic-beta", fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.23.0 fmt/Sprintf().("%v", v))) |
| 86 | } |
| 87 | opts = slicesscip-go gomod github.com/golang/go/src go1.23.0 slices/.Concatscip-go gomod github.com/golang/go/src go1.23.0 slices/Concat().(r.Optionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Options., opts) |
| 88 | opts = append([]optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#{optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithHeaderscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithHeader().("anthropic-beta", "skills-2025-10-02"), optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithResponseIntoscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithResponseInto().(&raw)}, opts...) |
| 89 | if skillID == "" { |
| 90 | err = errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Newscip-go gomod github.com/golang/go/src go1.23.0 errors/New().("missing required skill_id parameter") |
| 91 | return nil, err |
| 92 | } |
| 93 | path := fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.23.0 fmt/Sprintf().("v1/skills/%s/versions?beta=true", skillID) |
| 94 | cfg, err := requestconfigscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/.NewRequestConfigscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/NewRequestConfig().(ctx, httpscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/.MethodGetscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/MethodGet., path, params, &res, opts...) |
| 95 | if err != nil { |
| 96 | return nil, err |
| 97 | } |
| 98 | err = cfg.Executescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/RequestConfig#Execute().() |
| 99 | if err != nil { |
| 100 | return nil, err |
| 101 | } |
| 102 | res.SetPageConfigscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/pagination`/PageCursor#SetPageConfig().(cfg, raw) |
| 103 | return res, nil |
| 104 | } |
| 105 | |
| 106 | // List Skill Versions |
| 107 | func (r *BetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#) ListAutoPagingscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#ListAutoPaging().(ctx contextscip-go gomod github.com/golang/go/src go1.23.0 context/.Contextscip-go gomod github.com/golang/go/src go1.23.0 context/Context#, skillID string, params BetaSkillVersionListParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#, opts ...optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#) *paginationscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/pagination`/.PageCursorAutoPagerscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/pagination`/PageCursorAutoPager#[BetaSkillVersionListResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#] { |
| 108 | return paginationscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/pagination`/.NewPageCursorAutoPagerscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/pagination`/NewPageCursorAutoPager().(r.Listscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#List().(ctx, skillID, params, opts...)) |
| 109 | } |
| 110 | |
| 111 | // Delete Skill Version |
| 112 | func (r *BetaSkillVersionServicescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#) Deletescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Delete().(ctx contextscip-go gomod github.com/golang/go/src go1.23.0 context/.Contextscip-go gomod github.com/golang/go/src go1.23.0 context/Context#, version string, params BetaSkillVersionDeleteParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#, opts ...optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#) (res *BetaSkillVersionDeleteResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#, err error) { |
| 113 | for _, v := range params.Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#Betas. { |
| 114 | opts = append(opts, optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithHeaderAddscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithHeaderAdd().("anthropic-beta", fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.23.0 fmt/Sprintf().("%v", v))) |
| 115 | } |
| 116 | opts = slicesscip-go gomod github.com/golang/go/src go1.23.0 slices/.Concatscip-go gomod github.com/golang/go/src go1.23.0 slices/Concat().(r.Optionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Options., opts) |
| 117 | opts = append([]optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.RequestOptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/RequestOption#{optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithHeaderscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithHeader().("anthropic-beta", "skills-2025-10-02")}, opts...) |
| 118 | if params.SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#SkillID. == "" { |
| 119 | err = errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Newscip-go gomod github.com/golang/go/src go1.23.0 errors/New().("missing required skill_id parameter") |
| 120 | return nil, err |
| 121 | } |
| 122 | if version == "" { |
| 123 | err = errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Newscip-go gomod github.com/golang/go/src go1.23.0 errors/New().("missing required version parameter") |
| 124 | return nil, err |
| 125 | } |
| 126 | path := fmtscip-go gomod github.com/golang/go/src go1.23.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.23.0 fmt/Sprintf().("v1/skills/%s/versions/%s?beta=true", params.SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#SkillID., version) |
| 127 | err = requestconfigscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/.ExecuteNewRequestscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/requestconfig`/ExecuteNewRequest().(ctx, httpscip-go gomod github.com/golang/go/src go1.23.0 `net/http`/.MethodDeletescip-go gomod github.com/golang/go/src go1.23.0 `net/http`/MethodDelete., path, nil, &res, opts...) |
| 128 | return res, err |
| 129 | } |
| 130 | |
| 131 | type BetaSkillVersionNewResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse# struct { |
| 132 | // Unique identifier for the skill version. |
| 133 | // |
| 134 | // The format and length of IDs may change over time. |
| 135 | IDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#ID. string `json:"id" api:"required"` |
| 136 | // ISO 8601 timestamp of when the skill version was created. |
| 137 | CreatedAtscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#CreatedAt. string `json:"created_at" api:"required"` |
| 138 | // Description of the skill version. |
| 139 | // |
| 140 | // This is extracted from the SKILL.md file in the skill upload. |
| 141 | Descriptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#Description. string `json:"description" api:"required"` |
| 142 | // Directory name of the skill version. |
| 143 | // |
| 144 | // This is the top-level directory name that was extracted from the uploaded files. |
| 145 | Directoryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#Directory. string `json:"directory" api:"required"` |
| 146 | // Human-readable name of the skill version. |
| 147 | // |
| 148 | // This is extracted from the SKILL.md file in the skill upload. |
| 149 | Namescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#Name. string `json:"name" api:"required"` |
| 150 | // Identifier for the skill that this version belongs to. |
| 151 | SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#SkillID. string `json:"skill_id" api:"required"` |
| 152 | // Object type. |
| 153 | // |
| 154 | // For Skill Versions, this is always `"skill_version"`. |
| 155 | Typescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#Type. string `json:"type" api:"required"` |
| 156 | // Version identifier for the skill. |
| 157 | // |
| 158 | // Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129"). |
| 159 | Versionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#Version. string `json:"version" api:"required"` |
| 160 | // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. |
| 161 | JSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#JSON. struct { |
| 162 | IDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#ID. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 163 | CreatedAtscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#CreatedAt. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 164 | Descriptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#Description. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 165 | Directoryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#Directory. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 166 | Namescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#Name. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 167 | SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#SkillID. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 168 | Typescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#Type. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 169 | Versionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#Version. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 170 | ExtraFieldsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#ExtraFields. map[string]respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 171 | rawscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#raw. string |
| 172 | } `json:"-"` |
| 173 | } |
| 174 | |
| 175 | // Returns the unmodified JSON received from the API |
| 176 | func (r BetaSkillVersionNewResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#) RawJSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#RawJSON().() string { return r.JSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#JSON..rawscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#$anon_ccb3c7e4e98ed608#raw. } |
| 177 | func (r *BetaSkillVersionNewResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#) UnmarshalJSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewResponse#UnmarshalJSON().(data []byte) error { |
| 178 | return apijsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/.UnmarshalRootscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/UnmarshalRoot().(data, r) |
| 179 | } |
| 180 | |
| 181 | type BetaSkillVersionGetResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse# struct { |
| 182 | // Unique identifier for the skill version. |
| 183 | // |
| 184 | // The format and length of IDs may change over time. |
| 185 | IDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#ID. string `json:"id" api:"required"` |
| 186 | // ISO 8601 timestamp of when the skill version was created. |
| 187 | CreatedAtscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#CreatedAt. string `json:"created_at" api:"required"` |
| 188 | // Description of the skill version. |
| 189 | // |
| 190 | // This is extracted from the SKILL.md file in the skill upload. |
| 191 | Descriptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#Description. string `json:"description" api:"required"` |
| 192 | // Directory name of the skill version. |
| 193 | // |
| 194 | // This is the top-level directory name that was extracted from the uploaded files. |
| 195 | Directoryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#Directory. string `json:"directory" api:"required"` |
| 196 | // Human-readable name of the skill version. |
| 197 | // |
| 198 | // This is extracted from the SKILL.md file in the skill upload. |
| 199 | Namescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#Name. string `json:"name" api:"required"` |
| 200 | // Identifier for the skill that this version belongs to. |
| 201 | SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#SkillID. string `json:"skill_id" api:"required"` |
| 202 | // Object type. |
| 203 | // |
| 204 | // For Skill Versions, this is always `"skill_version"`. |
| 205 | Typescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#Type. string `json:"type" api:"required"` |
| 206 | // Version identifier for the skill. |
| 207 | // |
| 208 | // Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129"). |
| 209 | Versionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#Version. string `json:"version" api:"required"` |
| 210 | // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. |
| 211 | JSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#JSON. struct { |
| 212 | IDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#ID. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 213 | CreatedAtscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#CreatedAt. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 214 | Descriptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#Description. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 215 | Directoryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#Directory. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 216 | Namescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#Name. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 217 | SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#SkillID. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 218 | Typescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#Type. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 219 | Versionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#Version. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 220 | ExtraFieldsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#ExtraFields. map[string]respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 221 | rawscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#raw. string |
| 222 | } `json:"-"` |
| 223 | } |
| 224 | |
| 225 | // Returns the unmodified JSON received from the API |
| 226 | func (r BetaSkillVersionGetResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#) RawJSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#RawJSON().() string { return r.JSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#JSON..rawscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#$anon_ccb3c7e4e98ed608#raw. } |
| 227 | func (r *BetaSkillVersionGetResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#) UnmarshalJSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetResponse#UnmarshalJSON().(data []byte) error { |
| 228 | return apijsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/.UnmarshalRootscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/UnmarshalRoot().(data, r) |
| 229 | } |
| 230 | |
| 231 | type BetaSkillVersionListResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse# struct { |
| 232 | // Unique identifier for the skill version. |
| 233 | // |
| 234 | // The format and length of IDs may change over time. |
| 235 | IDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#ID. string `json:"id" api:"required"` |
| 236 | // ISO 8601 timestamp of when the skill version was created. |
| 237 | CreatedAtscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#CreatedAt. string `json:"created_at" api:"required"` |
| 238 | // Description of the skill version. |
| 239 | // |
| 240 | // This is extracted from the SKILL.md file in the skill upload. |
| 241 | Descriptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#Description. string `json:"description" api:"required"` |
| 242 | // Directory name of the skill version. |
| 243 | // |
| 244 | // This is the top-level directory name that was extracted from the uploaded files. |
| 245 | Directoryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#Directory. string `json:"directory" api:"required"` |
| 246 | // Human-readable name of the skill version. |
| 247 | // |
| 248 | // This is extracted from the SKILL.md file in the skill upload. |
| 249 | Namescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#Name. string `json:"name" api:"required"` |
| 250 | // Identifier for the skill that this version belongs to. |
| 251 | SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#SkillID. string `json:"skill_id" api:"required"` |
| 252 | // Object type. |
| 253 | // |
| 254 | // For Skill Versions, this is always `"skill_version"`. |
| 255 | Typescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#Type. string `json:"type" api:"required"` |
| 256 | // Version identifier for the skill. |
| 257 | // |
| 258 | // Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129"). |
| 259 | Versionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#Version. string `json:"version" api:"required"` |
| 260 | // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. |
| 261 | JSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#JSON. struct { |
| 262 | IDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#ID. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 263 | CreatedAtscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#CreatedAt. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 264 | Descriptionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#Description. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 265 | Directoryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#Directory. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 266 | Namescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#Name. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 267 | SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#SkillID. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 268 | Typescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#Type. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 269 | Versionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#Version. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 270 | ExtraFieldsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#ExtraFields. map[string]respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 271 | rawscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#raw. string |
| 272 | } `json:"-"` |
| 273 | } |
| 274 | |
| 275 | // Returns the unmodified JSON received from the API |
| 276 | func (r BetaSkillVersionListResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#) RawJSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#RawJSON().() string { return r.JSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#JSON..rawscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#$anon_ccb3c7e4e98ed608#raw. } |
| 277 | func (r *BetaSkillVersionListResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#) UnmarshalJSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListResponse#UnmarshalJSON().(data []byte) error { |
| 278 | return apijsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/.UnmarshalRootscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/UnmarshalRoot().(data, r) |
| 279 | } |
| 280 | |
| 281 | type BetaSkillVersionDeleteResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse# struct { |
| 282 | // Version identifier for the skill. |
| 283 | // |
| 284 | // Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129"). |
| 285 | IDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#ID. string `json:"id" api:"required"` |
| 286 | // Deleted object type. |
| 287 | // |
| 288 | // For Skill Versions, this is always `"skill_version_deleted"`. |
| 289 | Typescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#Type. string `json:"type" api:"required"` |
| 290 | // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. |
| 291 | JSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#JSON. struct { |
| 292 | IDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#$anon_38b584d39c9124c7#ID. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 293 | Typescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#$anon_38b584d39c9124c7#Type. respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 294 | ExtraFieldsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#$anon_38b584d39c9124c7#ExtraFields. map[string]respjsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/.Fieldscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/respjson`/Field# |
| 295 | rawscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#$anon_38b584d39c9124c7#raw. string |
| 296 | } `json:"-"` |
| 297 | } |
| 298 | |
| 299 | // Returns the unmodified JSON received from the API |
| 300 | func (r BetaSkillVersionDeleteResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#) RawJSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#RawJSON().() string { return r.JSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#JSON..rawscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#$anon_38b584d39c9124c7#raw. } |
| 301 | func (r *BetaSkillVersionDeleteResponsescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#) UnmarshalJSONscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteResponse#UnmarshalJSON().(data []byte) error { |
| 302 | return apijsonscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/.UnmarshalRootscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apijson`/UnmarshalRoot().(data, r) |
| 303 | } |
| 304 | |
| 305 | type BetaSkillVersionNewParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams# struct { |
| 306 | // Files to upload for the skill. |
| 307 | // |
| 308 | // All files must be in the same top-level directory and must include a SKILL.md |
| 309 | // file at the root of that directory. |
| 310 | Filesscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#Files. []ioscip-go gomod github.com/golang/go/src go1.23.0 io/.Readerscip-go gomod github.com/golang/go/src go1.23.0 io/Reader# `json:"files,omitzero" format:"binary"` |
| 311 | // Optional header to specify the beta version(s) you want to use. |
| 312 | Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#Betas. []AnthropicBetascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBeta# `header:"anthropic-beta,omitzero" json:"-"` |
| 313 | paramObjscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#paramObj. |
| 314 | } |
| 315 | |
| 316 | func (r BetaSkillVersionNewParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#) MarshalMultipartscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#MarshalMultipart().() (data []byte, contentType string, err error) { |
| 317 | buf := bytesscip-go gomod github.com/golang/go/src go1.23.0 bytes/.NewBufferscip-go gomod github.com/golang/go/src go1.23.0 bytes/NewBuffer().(nil) |
| 318 | writer := multipartscip-go gomod github.com/golang/go/src go1.23.0 `mime/multipart`/.NewWriterscip-go gomod github.com/golang/go/src go1.23.0 `mime/multipart`/NewWriter().(buf) |
| 319 | err = apiformscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiform`/.MarshalRootscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiform`/MarshalRoot().(r, writer) |
| 320 | if err == nil { |
| 321 | err = apiformscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiform`/.WriteExtrasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiform`/WriteExtras().(writer, r.ExtraFieldsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/param`/metadata#ExtraFields().()) |
| 322 | } |
| 323 | if err != nil { |
| 324 | writer.Closescip-go gomod github.com/golang/go/src go1.23.0 `mime/multipart`/Writer#Close().() |
| 325 | return nil, "", err |
| 326 | } |
| 327 | err = writer.Closescip-go gomod github.com/golang/go/src go1.23.0 `mime/multipart`/Writer#Close().() |
| 328 | if err != nil { |
| 329 | return nil, "", err |
| 330 | } |
| 331 | return buf.Bytesscip-go gomod github.com/golang/go/src go1.23.0 bytes/Buffer#Bytes().(), writer.FormDataContentTypescip-go gomod github.com/golang/go/src go1.23.0 `mime/multipart`/Writer#FormDataContentType().(), nil |
| 332 | } |
| 333 | |
| 334 | type BetaSkillVersionGetParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams# struct { |
| 335 | // Unique identifier for the skill. |
| 336 | // |
| 337 | // The format and length of IDs may change over time. |
| 338 | SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#SkillID. string `path:"skill_id" api:"required" json:"-"` |
| 339 | // Optional header to specify the beta version(s) you want to use. |
| 340 | Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#Betas. []AnthropicBetascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBeta# `header:"anthropic-beta,omitzero" json:"-"` |
| 341 | paramObjscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#paramObj. |
| 342 | } |
| 343 | |
| 344 | type BetaSkillVersionListParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams# struct { |
| 345 | // Number of items to return per page. |
| 346 | // |
| 347 | // Defaults to `20`. Ranges from `1` to `1000`. |
| 348 | Limitscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#Limit. paramscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/param`/.Optscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/param`/Opt#[int64] `query:"limit,omitzero" json:"-"` |
| 349 | // Optionally set to the `next_page` token from the previous response. |
| 350 | Pagescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#Page. paramscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/param`/.Optscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/packages/param`/Opt#[string] `query:"page,omitzero" json:"-"` |
| 351 | // Optional header to specify the beta version(s) you want to use. |
| 352 | Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#Betas. []AnthropicBetascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBeta# `header:"anthropic-beta,omitzero" json:"-"` |
| 353 | paramObjscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#paramObj. |
| 354 | } |
| 355 | |
| 356 | // URLQuery serializes [BetaSkillVersionListParams]'s query parameters as |
| 357 | // `url.Values`. |
| 358 | func (r BetaSkillVersionListParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#) URLQueryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#URLQuery().() (v urlscip-go gomod github.com/golang/go/src go1.23.0 `net/url`/.Valuesscip-go gomod github.com/golang/go/src go1.23.0 `net/url`/Values#, err error) { |
| 359 | return apiqueryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/.MarshalWithSettingsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/MarshalWithSettings().(r, apiqueryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/.QuerySettingsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/QuerySettings#{ |
| 360 | ArrayFormatscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/QuerySettings#ArrayFormat.: apiqueryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/.ArrayQueryFormatCommascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/ArrayQueryFormatComma., |
| 361 | NestedFormatscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/QuerySettings#NestedFormat.: apiqueryscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/.NestedQueryFormatBracketsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apiquery`/NestedQueryFormatBrackets., |
| 362 | }) |
| 363 | } |
| 364 | |
| 365 | type BetaSkillVersionDeleteParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams# struct { |
| 366 | // Unique identifier for the skill. |
| 367 | // |
| 368 | // The format and length of IDs may change over time. |
| 369 | SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#SkillID. string `path:"skill_id" api:"required" json:"-"` |
| 370 | // Optional header to specify the beta version(s) you want to use. |
| 371 | Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#Betas. []AnthropicBetascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBeta# `header:"anthropic-beta,omitzero" json:"-"` |
| 372 | paramObjscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#paramObj. |
| 373 | } |