Skip to content

anthropic: improve handling of multipart tool responses #2237

anthropic: improve handling of multipart tool responses

anthropic: improve handling of multipart tool responses #2237

Triggered via pull request September 12, 2024 21:23
Status Failure
Total duration 2m 51s
Artifacts

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
lint: llms/anthropic/anthropicllm.go#L305
typeSwitchVar: 2 cases can benefit from type switch with assignment (gocritic)
lint: llms/anthropic/anthropicllm.go#L347
typeSwitchVar: 2 cases can benefit from type switch with assignment (gocritic)
lint: llms/anthropic/anthropicllm.go#L335
File is not `gofumpt`-ed (gofumpt)
lint: llms/anthropic/anthropicllm.go#L329
getToolResponse - result 1 (error) is always nil (unparam)
lint: llms/anthropic/anthropicllm.go#L336
unnecessary trailing newline (whitespace)
lint: llms/anthropic/anthropicllm.go#L307
type assertion must be checked (forcetypeassert)
lint: llms/anthropic/anthropicllm.go#L349
type assertion must be checked (forcetypeassert)
lint: llms/anthropic/anthropicllm.go#L309
S1034(related information): could eliminate this type assertion (gosimple)
lint: llms/anthropic/anthropicllm.go#L351
S1034(related information): could eliminate this type assertion (gosimple)
lint
issues found
build-examples
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-test
Restore cache failed: Dependencies file is not found in /home/runner/work/langchaingo/langchaingo. Supported file pattern: go.sum