Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

build-a-tool-using-agent changedagents-and-tools/tool-use/build-a-tool-using-agent

Nearest release: v2.1.309, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+6added
Lines−6removed
From line 377 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits14to this page, all time

The whole hunk

from line 377, old and new numbered
/
lines
from line 377
377377 "fmt"
378378 "log"
379379 
380 "github.com/anthropics/anthropic-sdk-go"
380 "github.com/anthropics/anthropic-sdk-go/v2"
381381 )
382382 
383383 func main() {
from line 1172
11721172 "fmt"
11731173 "log"
11741174 
1175 "github.com/anthropics/anthropic-sdk-go"
1175 "github.com/anthropics/anthropic-sdk-go/v2"
11761176 )
11771177 
11781178 func runTool(name string, input map[string]any) string {
from line 1965
19651965 "fmt"
19661966 "log"
19671967 
1968 "github.com/anthropics/anthropic-sdk-go"
1968 "github.com/anthropics/anthropic-sdk-go/v2"
19691969 )
19701970 
19711971 func runTool(name string, input map[string]any) string {
from line 2813
28132813 "log"
28142814 "strings"
28152815 
2816 "github.com/anthropics/anthropic-sdk-go"
2816 "github.com/anthropics/anthropic-sdk-go/v2"
28172817 )
28182818 
28192819 func runTool(name string, input map[string]any) (string, error) {
from line 3586
35863586 "fmt"
35873587 "log"
35883588 
3589 "github.com/anthropics/anthropic-sdk-go"
3590 "github.com/anthropics/anthropic-sdk-go/toolrunner"
3589 "github.com/anthropics/anthropic-sdk-go/v2"
3590 "github.com/anthropics/anthropic-sdk-go/v2/toolrunner"
35913591 )
35923592 
35933593 // The input structs define each tool's schema. The tool runner generates the
Feedback