Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) AnalyzeReviews(ctx context.Context, prompt, model string) (string, error)
- func (c *Client) Ask(ctx context.Context, model string, maxTokens int, prompt string, ...) (string, error)
- func (c *Client) GenerateReviewPrompt(ctx context.Context, analysis, model string, includeAttribution bool) (string, error)
- type Config
- type StatusError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrKeyNotFound indicates no Anthropic API key was found in env or config. ErrKeyNotFound = errors.New("api key not found") // ErrTokenLimit indicates the prompt exceeds the model's context window. ErrTokenLimit = errors.New("prompt exceeds context window") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an Anthropic Messages API client.
func (*Client) AnalyzeReviews ¶
AnalyzeReviews sends review data to Claude for pattern analysis.
type StatusError ¶ added in v0.7.29
StatusError represents an HTTP error from the Anthropic API without exposing httpcl internals.
func (*StatusError) Error ¶ added in v0.7.29
func (e *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.