Versions in this module Expand all Collapse all v1 v1.0.0 Jan 19, 2025 Changes in this version + type AIResponse struct + Answer string + Confidence float64 + RelevantFiles []string + type AIService interface + func NewAIService(aiType AIType, apiKey string) AIService + type AIType string + const AITypeClaude + const AITypeOpenAI + func ToAIType(s string) AIType + type Claude struct + func (c *Claude) AnalyzeCode(ctx context.Context, question string, files []github.GitHubFile) (answer string, confidence float64, err error) + func (c *Claude) AnalyzeLabels(ctx context.Context, title, body string, availableLabels string) (github.LabelAnalysis, error) + type CodeAnalyzer interface + AnalyzeCode func(ctx context.Context, question string, files []github.GitHubFile) (answer string, confidence float64, err error) + type LabelAnalyzer interface + AnalyzeLabels func(ctx context.Context, title, body string, availableLabels string) (labelAnalysis github.LabelAnalysis, err error) + type OpenAI struct + func (a *OpenAI) AnalyzeCode(ctx context.Context, question string, files []github.GitHubFile) (answer string, confidence float64, err error) + func (a *OpenAI) AnalyzeLabels(ctx context.Context, title, body string, availableLabels string) (github.LabelAnalysis, error)