Documentation
¶
Overview ¶
Package summarizer provides interfaces and implementations for generating human-readable summaries of repository changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LLMSummarizer ¶
type LLMSummarizer struct{}
LLMSummarizer implements the Summarizer interface using a large language model.
func (*LLMSummarizer) GenerateNotificationMessage ¶
GenerateNotificationMessage generates a notification message using the LLM.
type StaticSummarizer ¶
type StaticSummarizer struct{}
StaticSummarizer implements Summarizer with a static message generator.
func (StaticSummarizer) GenerateNotificationMessage ¶
GenerateNotificationMessage generates a static notification message from repository diffs.
type Summarizer ¶
type Summarizer interface {
GenerateNotificationMessage(jar *diff.Jar, cfg Config) (string, error)
}
Summarizer generates human-readable notification messages from repository diffs.
func NewLLMSummarizer ¶
func NewLLMSummarizer() Summarizer
NewLLMSummarizer returns a new Summarizer that uses a large language model.
func NewStaticSummarizer ¶
func NewStaticSummarizer() Summarizer
NewStaticSummarizer returns a new Summarizer that generates static messages.