| Sketch🕴️ | 305f817 | 2026-02-27 13:58:43 +0400 | [diff] [blame^] | 1 | package loop |
| 2 | |||||
| 3 | import ( | ||||
| 4 | "github.com/anthropics/anthropic-sdk-go" | ||||
| 5 | "github.com/anthropics/anthropic-sdk-go/option" | ||||
| 6 | ) | ||||
| 7 | |||||
| 8 | type Client struct { | ||||
| 9 | c anthropic.Client | ||||
| 10 | } | ||||
| 11 | |||||
| 12 | func NewClient(key string) *Client { | ||||
| 13 | return &Client{ | ||||
| 14 | c: anthropic.NewClient( | ||||
| 15 | option.WithAPIKey(key), | ||||
| 16 | ), | ||||
| 17 | } | ||||
| 18 | } | ||||