anthropic: improve handling of multipart tool responses #2237
Annotations
10 errors
golangci-lint:
llms/anthropic/anthropicllm.go#L305
typeSwitchVar: 2 cases can benefit from type switch with assignment (gocritic)
|
golangci-lint:
llms/anthropic/anthropicllm.go#L347
typeSwitchVar: 2 cases can benefit from type switch with assignment (gocritic)
|
golangci-lint:
llms/anthropic/anthropicllm.go#L335
File is not `gofumpt`-ed (gofumpt)
|
golangci-lint:
llms/anthropic/anthropicllm.go#L329
getToolResponse - result 1 (error) is always nil (unparam)
|
golangci-lint:
llms/anthropic/anthropicllm.go#L336
unnecessary trailing newline (whitespace)
|
golangci-lint:
llms/anthropic/anthropicllm.go#L307
type assertion must be checked (forcetypeassert)
|
golangci-lint:
llms/anthropic/anthropicllm.go#L349
type assertion must be checked (forcetypeassert)
|
golangci-lint:
llms/anthropic/anthropicllm.go#L309
S1034(related information): could eliminate this type assertion (gosimple)
|
golangci-lint:
llms/anthropic/anthropicllm.go#L351
S1034(related information): could eliminate this type assertion (gosimple)
|
golangci-lint
issues found
|
Loading