Skip to content

anthropic: add image read and stream tool use ability #2166

anthropic: add image read and stream tool use ability

anthropic: add image read and stream tool use ability #2166

Triggered via pull request July 7, 2024 11:09
Status Failure
Total duration 2m 48s
Artifacts

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
lint: llms/anthropic/internal/anthropicclient/messages.go#L196
string `tool_use` has 3 occurrences, make it a constant (goconst)
lint: llms/anthropic/internal/anthropicclient/messages.go#L98
Comment should end in a period (godot)
lint: llms/anthropic/internal/anthropicclient/messages.go#L119
Comment should end in a period (godot)
lint: llms/anthropic/internal/anthropicclient/messages.go#L381
`if len(response.Content) <= index` has complex nested blocks (complexity: 6) (nestif)
lint: llms/anthropic/internal/anthropicclient/messages.go#L461
`if payload.StreamingFunc != nil` has complex nested blocks (complexity: 6) (nestif)
lint: llms/anthropic/internal/anthropicclient/messages.go#L416
calculated cyclomatic complexity for function handleContentBlockDeltaEvent is 16, max is 12 (cyclop)
lint: llms/anthropic/internal/anthropicclient/messages.go#L406
Error return value of `encoding/json.Marshal` is not checked: unsafe type `any` found (errchkjson)
lint: llms/anthropic/internal/anthropicclient/messages.go#L469
Error return value of `encoding/json.Marshal` is not checked: unsafe type `interface{}` found (errchkjson)
lint: llms/anthropic/anthropicllm.go#L296
named return "data" with type "string" found (nonamedreturns)
lint
issues found
lint: llms/anthropic/internal/anthropicclient/messages.go#L447
var-naming: var partialJson should be partialJSON (revive)
lint: llms/anthropic/internal/anthropicclient/messages.go#L141
receiver-naming: receiver name tuc should be consistent with previous receiver name t for ToolUseContent (revive)
build-test
The following actions uses Node.js version which is deprecated 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
build-examples
The following actions uses Node.js version which is deprecated 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/