Documentation ¶
Index ¶
- Constants
- type GithubRepoClient
- func (grc *GithubRepoClient) DeleteComment(comment *github.PullRequestComment) error
- func (grc *GithubRepoClient) GetPrComments(prId int) ([]*github.PullRequestComment, error)
- func (grc *GithubRepoClient) GetPrDiff(prId int) (string, error)
- func (grc *GithubRepoClient) GetPrs() ([]*github.PullRequest, error)
- func (grc *GithubRepoClient) Init()
- func (grc *GithubRepoClient) PostComment(prId int, comment *github.PullRequestComment) error
- func (grc *GithubRepoClient) ReplyToComment(prId int, comment *github.PullRequestComment, body string) error
- type OpenAiClient
Constants ¶
View Source
const CODE_PREVIEW_SIZE = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubRepoClient ¶
type GithubRepoClient struct {
// contains filtered or unexported fields
}
func (*GithubRepoClient) DeleteComment ¶
func (grc *GithubRepoClient) DeleteComment(comment *github.PullRequestComment) error
func (*GithubRepoClient) GetPrComments ¶
func (grc *GithubRepoClient) GetPrComments(prId int) ([]*github.PullRequestComment, error)
func (*GithubRepoClient) GetPrDiff ¶
func (grc *GithubRepoClient) GetPrDiff(prId int) (string, error)
func (*GithubRepoClient) GetPrs ¶
func (grc *GithubRepoClient) GetPrs() ([]*github.PullRequest, error)
func (*GithubRepoClient) Init ¶
func (grc *GithubRepoClient) Init()
func (*GithubRepoClient) PostComment ¶
func (grc *GithubRepoClient) PostComment(prId int, comment *github.PullRequestComment) error
func (*GithubRepoClient) ReplyToComment ¶
func (grc *GithubRepoClient) ReplyToComment(prId int, comment *github.PullRequestComment, body string) error
type OpenAiClient ¶
type OpenAiClient struct {
// contains filtered or unexported fields
}
func (*OpenAiClient) GetCompletion ¶
func (oac *OpenAiClient) GetCompletion(prompt string, debug bool) (*string, error)
func (*OpenAiClient) Init ¶
func (oac *OpenAiClient) Init()
func (*OpenAiClient) RequestCompletion ¶
func (oac *OpenAiClient) RequestCompletion(messages []openai.ChatCompletionMessage) (string, error)
Click to show internal directories.
Click to hide internal directories.