Documentation
¶
Overview ¶
Package approvaloverride classifies explicit author override requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrompt ¶
BuildPrompt returns the deterministic prompt for one override classification.
Types ¶
type Candidate ¶
type Candidate struct {
ID string
Source string
Author gitprovider.Identity
Body string
URL string
CreatedAt time.Time
UpdatedAt time.Time
EffectiveAt time.Time
}
Candidate is one PR-author-authored comment eligible for override classification.
type Classifier ¶
Classifier decides whether filtered comments request approval override.
type LLMClassifier ¶
type LLMClassifier struct {
// contains filtered or unexported fields
}
LLMClassifier implements Classifier with structured output.
func NewLLMClassifier ¶
func NewLLMClassifier(adapter llm.Adapter, model, effort string) *LLMClassifier
NewLLMClassifier builds an LLM-backed approval override classifier.
func (*LLMClassifier) ClassifyApprovalOverride ¶
ClassifyApprovalOverride classifies explicit approval override requests.
type Request ¶
type Request struct {
PR gitprovider.PR
PostingIdentity gitprovider.Identity
LatestMarkerAt time.Time
Candidates []Candidate
LogPath string
LLMTasksDir string
Now func() time.Time
NewSessionRowID func() string
}
Request is the full classifier input after deterministic Go filtering.
Click to show internal directories.
Click to hide internal directories.