Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIClient ¶
type AIClient interface {
GetCommitMessage(ctx context.Context, prompt string) (string, error)
SanitizeResponse(message, commitType string) string
ProviderName() string
MaybeSummarizeDiff(diff string, maxLength int) (string, bool)
}
AIClient defines the interface for AI providers.
type BaseAIClient ¶
type BaseAIClient struct {
Provider string
}
func (*BaseAIClient) MaybeSummarizeDiff ¶
func (b *BaseAIClient) MaybeSummarizeDiff(diff string, maxLength int) (string, bool)
func (*BaseAIClient) ProviderName ¶
func (b *BaseAIClient) ProviderName() string
func (*BaseAIClient) SanitizeResponse ¶
func (b *BaseAIClient) SanitizeResponse(message, commitType string) string
Click to show internal directories.
Click to hide internal directories.