Versions in this module Expand all Collapse all v0 v0.1.0 Apr 5, 2026 Changes in this version + const DefaultModel + func BuildPrompt(scope Scope, prTitle, prBody, diff string) string + func BuildSystemPrompt() string + func BuildUserPrompt(scope Scope, prTitle, prBody, diff string) string + func GetModelFromEnv() string + func IsValidScope(s string) bool + type Config struct + MaxTokens int + Model string + Scope Scope + func DefaultConfig() Config + type ReviewInput struct + Body string + Diff string + Title string + type ReviewOutput struct + Content string + TokensUsed int + Verdict string + type Reviewer struct + func NewReviewer(cfg Config) (*Reviewer, error) + func (r *Reviewer) Close() error + func (r *Reviewer) Review(ctx context.Context, input ReviewInput) (*ReviewOutput, error) + type Scope string + const ScopeFull + const ScopePerformance + const ScopeSecurity + const ScopeStyle + func GetScopeFromEnv() Scope + func ValidScopes() []Scope