| package loop | |
| import ( | |
| "github.com/anthropics/anthropic-sdk-go" | |
| "github.com/anthropics/anthropic-sdk-go/option" | |
| ) | |
| type Client struct { | |
| c anthropic.Client | |
| } | |
| func NewClient(key string) *Client { | |
| return &Client{ | |
| c: anthropic.NewClient( | |
| option.WithAPIKey(key), | |
| ), | |
| } | |
| } |