Documentation
¶
Index ¶
- func IsTokenLimitError(err error) bool
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTokenLimitError ¶
IsTokenLimitError reports whether err is an Anthropic API error indicating that the prompt exceeds the model's context window.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an Anthropic Messages API client.
func New ¶
New creates an Anthropic API client. It resolves the API key via config (env > config file) and reads ANTHROPIC_BASE_URL from the environment.
func (*Client) AnalyzeReviews ¶
AnalyzeReviews sends review data to Claude for pattern analysis.
Click to show internal directories.
Click to hide internal directories.