Skip to content

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

anthropic: add image read and stream tool use ability

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

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

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 5 warnings
lint: llms/anthropic/internal/anthropicclient/messages.go#L103
Comment should end in a period (godot)
lint: llms/anthropic/internal/anthropicclient/messages.go#L124
Comment should end in a period (godot)
lint: llms/anthropic/internal/anthropicclient/messages.go#L468
`if payload.StreamingFunc != nil` has complex nested blocks (complexity: 6) (nestif)
lint: llms/anthropic/internal/anthropicclient/messages.go#L423
calculated cyclomatic complexity for function handleContentBlockDeltaEvent is 16, max is 12 (cyclop)
lint: llms/anthropic/internal/anthropicclient/messages.go#L413
Error return value of `encoding/json.Marshal` is not checked: unsafe type `any` found (errchkjson)
lint: llms/anthropic/internal/anthropicclient/messages.go#L476
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#L454
var-naming: var partialJson should be partialJSON (revive)
lint: llms/anthropic/internal/anthropicclient/messages.go#L146
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/