Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaudeClient ¶
type ClaudeClient struct {
// contains filtered or unexported fields
}
ClaudeClient는 Anthropic Claude API를 사용하는 클라이언트입니다
func NewClaudeClient ¶
func NewClaudeClient(apiKey, model string, maxTokens int) *ClaudeClient
NewClaudeClient는 새로운 Claude 클라이언트를 생성합니다
func (*ClaudeClient) GenerateCommitMessage ¶
func (c *ClaudeClient) GenerateCommitMessage(systemPrompt, userPrompt string, opts GenerateOptions) (string, error)
GenerateCommitMessage는 Claude API를 사용하여 커밋 메시지를 생성합니다
type Client ¶
type Client interface {
GenerateCommitMessage(systemPrompt, userPrompt string, opts GenerateOptions) (string, error)
}
Client는 AI 클라이언트 인터페이스입니다
type GenerateOptions ¶ added in v1.1.8
type GenerateOptions struct {
Temperature float64 // AI 생성 다양성 (0.0 ~ 2.0)
PreviousMessage string // 이전에 생성된 메시지 (재생성 시 사용)
}
GenerateOptions는 커밋 메시지 생성 옵션입니다
func DefaultGenerateOptions ¶ added in v1.1.8
func DefaultGenerateOptions() GenerateOptions
DefaultGenerateOptions는 기본 생성 옵션을 반환합니다
func RegenerateOptions ¶ added in v1.1.8
func RegenerateOptions(previousMessage string) GenerateOptions
RegenerateOptions는 재생성 시 사용할 옵션을 반환합니다
type OpenAIClient ¶
type OpenAIClient struct {
// contains filtered or unexported fields
}
OpenAIClient는 OpenAI API를 사용하는 클라이언트입니다
func NewOpenAIClient ¶
func NewOpenAIClient(apiKey, model string, maxTokens int) *OpenAIClient
NewOpenAIClient는 새로운 OpenAI 클라이언트를 생성합니다
func (*OpenAIClient) GenerateCommitMessage ¶
func (c *OpenAIClient) GenerateCommitMessage(systemPrompt, userPrompt string, opts GenerateOptions) (string, error)
GenerateCommitMessage는 OpenAI API를 사용하여 커밋 메시지를 생성합니다
Click to show internal directories.
Click to hide internal directories.