GitHub
github.com › anthropics › anthropic-sdk-go
GitHub - anthropics/anthropic-sdk-go: Access to Anthropic's safety-first language model APIs via Go
The Anthropic Go library provides convenient access to the Anthropic REST API from applications written in Go. import ( "github.com/anthropics/anthropic-sdk-go" // imported as anthropic )
Starred by 650 users
Forked by 81 users
Languages Go
Go Packages
pkg.go.dev › github.com › anthropics › anthropic-sdk-go
anthropic package - github.com/anthropics/anthropic-sdk-go - Go Packages
package main import ( "context" "encoding/json" "fmt" "github.com/anthropics/anthropic-sdk-go" "github.com/invopop/jsonschema" ) func main() { client := anthropic.NewClient() content := "Where is San Francisco?" println("[user]: " + content) messages := []anthropic.MessageParam{ anthropic.NewUserMessage(anthropic.NewTextBlock(content)), } toolParams := []anthropic.ToolParam{ { Name: "get_coordinates", Description: anthropic.String("Accepts a place as an address, then returns the latitude and longitude coordinates."), InputSchema: GetCoordinatesInputSchema, }, } tools := make([]anthropic.ToolUn
Videos
GitHub
github.com › unfunco › anthropic-sdk-go
GitHub - unfunco/anthropic-sdk-go: Go client library for interacting with the Anthropic safety-first language model REST APIs.
Go client library for interacting with the Anthropic safety-first language model REST APIs. - unfunco/anthropic-sdk-go
Author unfunco
Go Packages
pkg.go.dev › github.com › adamchol › go-anthropic-sdk
anthropic package - github.com/adamchol/go-anthropic-sdk - Go Packages
github.com/adamchol/go-anthropic-sdk · Open Source Insights · This library provides unofficial Go clients for Anthropic API. It is heavily inspired by the Unofficial Go SDK for OpenAI API by @sashabaranov · go get github.com/adamchol/go-anthropic-sdk ·
Go Packages
pkg.go.dev › github.com › modeledge › anthropic-sdk-go › v2
anthropic package - github.com/modeledge/anthropic-sdk-go/v2 - Go Packages
package main import ( "fmt" "github.com/modeledge/anthropic-sdk-go/v2" "github.com/modeledge/anthropic-sdk-go/v2/resp" "github.com/modeledge/anthropic-sdk-go/v2/data" ) func main() { c, err := anthropic.New(&anthropic.Config{Key: "your keys", DefaultModel: data.ModelFullInstant}) if err != nil { panic(err) } d, err := c.Send(&anthropic.Sender{ Message: data.MessageModule{ Human: "Do you know Golang, please answer me in the shortest possible way.", }, Sender: &resp.Sender{MaxToken: 1200}, }) if err != nil { panic(err) } fmt.Println(d.Response.String()) ds, err := c.Send(&anthropic.Sender{ Message: data.MessageModule{ Human: "What is its current version number?", }, SessionID: d.ID, Sender: &resp.Sender{MaxToken: 1200}, }) if err != nil { panic(err) } fmt.Println(ds.Response.String()) }
GitHub
github.com › anthropics › anthropic-sdk-python
GitHub - anthropics/anthropic-sdk-python
This SDK provides support for tool use, aka function calling. More details can be found in the documentation. This library also provides support for the Anthropic Bedrock API if you install this library with the bedrock extra, e.g.
Starred by 2.6K users
Forked by 415 users
Languages Python
Go Packages
pkg.go.dev › github.com › 3JoB › anthropic-sdk-go
anthropic package - github.com/3JoB/anthropic-sdk-go - Go Packages
package main import ( "fmt" "github.com/3JoB/anthropic-sdk-go" "github.com/3JoB/anthropic-sdk-go/data" ) func main() { c, err := anthropic.New("api keys","modules") if err != nil { panic(err) } d, err := c.Send(&anthropic.Opts{ Message: data.MessageModule{ Human: "Do you know Golang, please answer me in the shortest possible way.", }, Sender: anthropic.Sender{MaxToken: 1200}, }) if err != nil { panic(err) } fmt.Println(d.Response.String()) }
GitHub
github.com › 3JoB › anthropic-sdk-go
GitHub - 3JoB/anthropic-sdk-go: (Need to be maintained) Golang SDK for AnthRopic Claude AI. Provide complete encapsulated interfaces that are easy to quickly get started with.
package main import ( "fmt" "github.com/3JoB/anthropic-sdk-go/v2" "github.com/3JoB/anthropic-sdk-go/v2/resp" "github.com/3JoB/anthropic-sdk-go/v2/data" ) func main() { c, err := anthropic.New(&anthropic.Config{Key: "your keys", DefaultModel: data.ModelFullInstant}) if err != nil { panic(err) } d, err := c.Send(&anthropic.Sender{ Message: data.MessageModule{ Human: "Do you know Golang, please answer me in the shortest possible way.", }, Sender: &resp.Sender{MaxToken: 1200}, }) if err != nil { panic(err) } fmt.Println(d.Response.String()) ds, err := c.Send(&anthropic.Sender{ Message: data.MessageModule{ Human: "What is its current version number?", }, SessionID: d.ID, Sender: &resp.Sender{MaxToken: 1200}, }) if err != nil { panic(err) } fmt.Println(ds.Response.String()) }
Starred by 38 users
Forked by 6 users
Languages Go
GitHub
github.com › madebywelch › anthropic-go
GitHub - madebywelch/anthropic-go: Go SDK for Anthropic's Claude, a next-generation AI assistant for your tasks, no matter the scale.
Go SDK for Anthropic's Claude, a next-generation AI assistant for your tasks, no matter the scale. - madebywelch/anthropic-go
Starred by 36 users
Forked by 18 users
Languages Go
Go Packages
pkg.go.dev › github.com › staropshq › go-anthropic
go-anthropic module - github.com/staropshq/go-anthropic - Go Packages
This is a golang SDK for anthropic claude API.
Go Packages
pkg.go.dev › github.com › anthropics › anthropic-sdk-go › option
option package - github.com/anthropics/anthropic-sdk-go/option - Go Packages
github.com/anthropics/anthropic-sdk-go · Open Source Insights · type HTTPClient · type Middleware · type MiddlewareNext · type RequestOption · func WithAPIKey(value string) RequestOption · func WithAuthToken(value string) RequestOption · func WithBaseURL(base string) RequestOption ·
GitHub
github.com › liushuangls › go-anthropic
GitHub - liushuangls/go-anthropic: Anthropic Claude API wrapper for Go
Anthropic Claude API wrapper for Go. Contribute to liushuangls/go-anthropic development by creating an account on GitHub.
Starred by 161 users
Forked by 24 users
Languages Go
GitHub
github.com › DatraAI › anthropic-sdk-go
GitHub - DatraAI/anthropic-sdk-go: Access to Anthropic's safety-first language model APIs via Go
The Anthropic Go library provides convenient access to the Anthropic REST API from applications written in Go. import ( "github.com/anthropics/anthropic-sdk-go" // imported as anthropic )
Author DatraAI
GitHub
github.com › anthropics › anthropic-sdk-go › releases
Releases · anthropics/anthropic-sdk-go
Access to Anthropic's safety-first language model APIs via Go - Releases · anthropics/anthropic-sdk-go
Author anthropics
GitHub
github.com › anthropics › anthropic-sdk-go › blob › main › CHANGELOG.md
anthropic-sdk-go/CHANGELOG.md at main · anthropics/anthropic-sdk-go
Access to Anthropic's safety-first language model APIs via Go - anthropic-sdk-go/CHANGELOG.md at main · anthropics/anthropic-sdk-go
Author anthropics
GitHub
github.com › anthropics › anthropic-sdk-go › blob › main › client.go
anthropic-sdk-go/client.go at main · anthropics/anthropic-sdk-go
Access to Anthropic's safety-first language model APIs via Go - anthropic-sdk-go/client.go at main · anthropics/anthropic-sdk-go
Author anthropics
Go Packages
pkg.go.dev › github.com › fabiustech › anthropic
anthropic package - github.com/fabiustech/anthropic - Go Packages
Model Model `json:"model,omitempty"` // MaxTokensToSample is the maximum number of tokens to generate before stopping. Required. MaxTokensToSample int `json:"max_tokens_to_sample"` // StopSequences specifies a list of sequences to stop sampling at. Anthropic's models stop on "\n\nHuman:", and // may include additional built-in stop sequences in the future.
GitHub
github.com › anthropics › anthropic-sdk-go › blob › main › examples › tools › main.go
anthropic-sdk-go/examples/tools/main.go at main · anthropics/anthropic-sdk-go
Access to Anthropic's safety-first language model APIs via Go - anthropic-sdk-go/examples/tools/main.go at main · anthropics/anthropic-sdk-go
Author anthropics
Go Packages
pkg.go.dev › github.com › staropshq › go-anthropic › sdk
sdk package - github.com/staropshq/go-anthropic/sdk - Go Packages
NewAnthropic instantiates an Anthropic object with provided parameters. It is possible to pass in an override api root.