| 1 |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
| 2 |
|
| 3 |
package anthropic_testscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go_test`/ |
| 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 |
"ioscip-go gomod github.com/golang/go/src go1.23.0 io/" |
| 10 |
"osscip-go gomod github.com/golang/go/src go1.23.0 os/" |
| 11 |
"testingscip-go gomod github.com/golang/go/src go1.23.0 testing/" |
| 12 |
|
| 13 |
"github.com/anthropics/anthropic-sdk-goscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/" |
| 14 |
"github.com/anthropics/anthropic-sdk-go/internal/testutilscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/" |
| 15 |
"github.com/anthropics/anthropic-sdk-go/optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/" |
| 16 |
) |
| 17 |
|
| 18 |
func TestBetaSkillVersionNewWithOptionalParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go_test`/TestBetaSkillVersionNewWithOptionalParams().(t *testingscip-go gomod github.com/golang/go/src go1.23.0 testing/.Tscip-go gomod github.com/golang/go/src go1.23.0 testing/T#) { |
| •19 |
t.Skipscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Skip().("This test needs a mock server (Steady from NPM)") |
| 20 |
baseURL := "http://localhost:4010" |
| 21 |
if envURL, ok := osscip-go gomod github.com/golang/go/src go1.23.0 os/.LookupEnvscip-go gomod github.com/golang/go/src go1.23.0 os/LookupEnv().("TEST_API_BASE_URL"); ok { |
| 22 |
baseURL = envURL |
| 23 |
} |
| 24 |
if !testutilscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/.CheckTestServerscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/CheckTestServer().(t, baseURL) { |
| 25 |
return |
| 26 |
} |
| 27 |
client := anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.NewClientscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/NewClient().( |
| 28 |
optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithBaseURLscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithBaseURL().(baseURL), |
| 29 |
optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithAPIKeyscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithAPIKey().("my-anthropic-api-key"), |
| 30 |
) |
| 31 |
_, err := client.Betascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Client#Beta..Skillsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaService#Skills..Versionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillService#Versions..Newscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#New().( |
| 32 |
contextscip-go gomod github.com/golang/go/src go1.23.0 context/.TODOscip-go gomod github.com/golang/go/src go1.23.0 context/TODO().(), |
| 33 |
"skill_id", |
| 34 |
anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.BetaSkillVersionNewParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#{ |
| 35 |
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#{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#(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().([]byte("Example data")))}, |
| 36 |
Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionNewParams#Betas.: []anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.AnthropicBetascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBeta#{anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.AnthropicBetaMessageBatches2024_09_24scip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBetaMessageBatches2024_09_24.}, |
| 37 |
}, |
| 38 |
) |
| 39 |
if err != nil { |
| 40 |
var apierr *anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.Errorscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Error# |
| 41 |
if errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Asscip-go gomod github.com/golang/go/src go1.23.0 errors/As().(err, &apierr) { |
| 42 |
t.Logscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Log().(string(apierr.DumpRequestscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apierror`/Error#DumpRequest().(true))) |
| 43 |
} |
| 44 |
t.Fatalfscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Fatalf().("err should be nil: %s", err.Error()) |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
func TestBetaSkillVersionGetWithOptionalParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go_test`/TestBetaSkillVersionGetWithOptionalParams().(t *testingscip-go gomod github.com/golang/go/src go1.23.0 testing/.Tscip-go gomod github.com/golang/go/src go1.23.0 testing/T#) { |
| •49 |
t.Skipscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Skip().("This test needs a mock server (Steady from NPM)") |
| 50 |
baseURL := "http://localhost:4010" |
| 51 |
if envURL, ok := osscip-go gomod github.com/golang/go/src go1.23.0 os/.LookupEnvscip-go gomod github.com/golang/go/src go1.23.0 os/LookupEnv().("TEST_API_BASE_URL"); ok { |
| 52 |
baseURL = envURL |
| 53 |
} |
| 54 |
if !testutilscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/.CheckTestServerscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/CheckTestServer().(t, baseURL) { |
| 55 |
return |
| 56 |
} |
| 57 |
client := anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.NewClientscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/NewClient().( |
| 58 |
optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithBaseURLscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithBaseURL().(baseURL), |
| 59 |
optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithAPIKeyscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithAPIKey().("my-anthropic-api-key"), |
| 60 |
) |
| 61 |
_, err := client.Betascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Client#Beta..Skillsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaService#Skills..Versionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillService#Versions..Getscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Get().( |
| 62 |
contextscip-go gomod github.com/golang/go/src go1.23.0 context/.TODOscip-go gomod github.com/golang/go/src go1.23.0 context/TODO().(), |
| 63 |
"version", |
| 64 |
anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.BetaSkillVersionGetParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#{ |
| 65 |
SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#SkillID.: "skill_id", |
| 66 |
Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionGetParams#Betas.: []anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.AnthropicBetascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBeta#{anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.AnthropicBetaMessageBatches2024_09_24scip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBetaMessageBatches2024_09_24.}, |
| 67 |
}, |
| 68 |
) |
| 69 |
if err != nil { |
| 70 |
var apierr *anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.Errorscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Error# |
| 71 |
if errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Asscip-go gomod github.com/golang/go/src go1.23.0 errors/As().(err, &apierr) { |
| 72 |
t.Logscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Log().(string(apierr.DumpRequestscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apierror`/Error#DumpRequest().(true))) |
| 73 |
} |
| 74 |
t.Fatalfscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Fatalf().("err should be nil: %s", err.Error()) |
| 75 |
} |
| 76 |
} |
| 77 |
|
| 78 |
func TestBetaSkillVersionListWithOptionalParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go_test`/TestBetaSkillVersionListWithOptionalParams().(t *testingscip-go gomod github.com/golang/go/src go1.23.0 testing/.Tscip-go gomod github.com/golang/go/src go1.23.0 testing/T#) { |
| •79 |
t.Skipscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Skip().("This test needs a mock server (Steady from NPM)") |
| 80 |
baseURL := "http://localhost:4010" |
| 81 |
if envURL, ok := osscip-go gomod github.com/golang/go/src go1.23.0 os/.LookupEnvscip-go gomod github.com/golang/go/src go1.23.0 os/LookupEnv().("TEST_API_BASE_URL"); ok { |
| 82 |
baseURL = envURL |
| 83 |
} |
| 84 |
if !testutilscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/.CheckTestServerscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/CheckTestServer().(t, baseURL) { |
| 85 |
return |
| 86 |
} |
| 87 |
client := anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.NewClientscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/NewClient().( |
| 88 |
optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithBaseURLscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithBaseURL().(baseURL), |
| 89 |
optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithAPIKeyscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithAPIKey().("my-anthropic-api-key"), |
| 90 |
) |
| 91 |
_, err := client.Betascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Client#Beta..Skillsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaService#Skills..Versionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillService#Versions..Listscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#List().( |
| 92 |
contextscip-go gomod github.com/golang/go/src go1.23.0 context/.TODOscip-go gomod github.com/golang/go/src go1.23.0 context/TODO().(), |
| 93 |
"skill_id", |
| 94 |
anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.BetaSkillVersionListParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#{ |
| 95 |
Limitscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#Limit.: anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.Intscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Int().(0), |
| 96 |
Pagescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#Page.: anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.Stringscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/String().("page"), |
| 97 |
Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionListParams#Betas.: []anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.AnthropicBetascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBeta#{anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.AnthropicBetaMessageBatches2024_09_24scip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBetaMessageBatches2024_09_24.}, |
| 98 |
}, |
| 99 |
) |
| 100 |
if err != nil { |
| 101 |
var apierr *anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.Errorscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Error# |
| 102 |
if errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Asscip-go gomod github.com/golang/go/src go1.23.0 errors/As().(err, &apierr) { |
| 103 |
t.Logscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Log().(string(apierr.DumpRequestscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apierror`/Error#DumpRequest().(true))) |
| 104 |
} |
| 105 |
t.Fatalfscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Fatalf().("err should be nil: %s", err.Error()) |
| 106 |
} |
| 107 |
} |
| 108 |
|
| 109 |
func TestBetaSkillVersionDeleteWithOptionalParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go_test`/TestBetaSkillVersionDeleteWithOptionalParams().(t *testingscip-go gomod github.com/golang/go/src go1.23.0 testing/.Tscip-go gomod github.com/golang/go/src go1.23.0 testing/T#) { |
| •110 |
t.Skipscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Skip().("This test needs a mock server (Steady from NPM)") |
| 111 |
baseURL := "http://localhost:4010" |
| 112 |
if envURL, ok := osscip-go gomod github.com/golang/go/src go1.23.0 os/.LookupEnvscip-go gomod github.com/golang/go/src go1.23.0 os/LookupEnv().("TEST_API_BASE_URL"); ok { |
| 113 |
baseURL = envURL |
| 114 |
} |
| 115 |
if !testutilscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/.CheckTestServerscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/testutil`/CheckTestServer().(t, baseURL) { |
| 116 |
return |
| 117 |
} |
| 118 |
client := anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.NewClientscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/NewClient().( |
| 119 |
optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithBaseURLscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithBaseURL().(baseURL), |
| 120 |
optionscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/.WithAPIKeyscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/option`/WithAPIKey().("my-anthropic-api-key"), |
| 121 |
) |
| 122 |
_, err := client.Betascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Client#Beta..Skillsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaService#Skills..Versionsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillService#Versions..Deletescip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionService#Delete().( |
| 123 |
contextscip-go gomod github.com/golang/go/src go1.23.0 context/.TODOscip-go gomod github.com/golang/go/src go1.23.0 context/TODO().(), |
| 124 |
"version", |
| 125 |
anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.BetaSkillVersionDeleteParamsscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#{ |
| 126 |
SkillIDscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#SkillID.: "skill_id", |
| 127 |
Betasscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/BetaSkillVersionDeleteParams#Betas.: []anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.AnthropicBetascip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBeta#{anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.AnthropicBetaMessageBatches2024_09_24scip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/AnthropicBetaMessageBatches2024_09_24.}, |
| 128 |
}, |
| 129 |
) |
| 130 |
if err != nil { |
| 131 |
var apierr *anthropicscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/.Errorscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go`/Error# |
| 132 |
if errorsscip-go gomod github.com/golang/go/src go1.23.0 errors/.Asscip-go gomod github.com/golang/go/src go1.23.0 errors/As().(err, &apierr) { |
| 133 |
t.Logscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Log().(string(apierr.DumpRequestscip-go gomod github.com/anthropics/anthropic-sdk-go . `github.com/anthropics/anthropic-sdk-go/internal/apierror`/Error#DumpRequest().(true))) |
| 134 |
} |
| 135 |
t.Fatalfscip-go gomod github.com/golang/go/src go1.23.0 testing/common#Fatalf().("err should be nil: %s", err.Error()) |
| 136 |
} |
| 137 |
} |