ai

package
v3.1.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExplainCode

func ExplainCode(ctx context.Context, repo *repo_model.Repository, filePath, code string, startLine, endLine int, question string) (*ai.ExplainCodeResponse, error)

ExplainCode provides an AI explanation of code

func GenerateCommitMessage

func GenerateCommitMessage(ctx context.Context, repo *repo_model.Repository, gitRepo *git.Repository, style string) (*ai.GenerateCommitMessageResponse, error)

GenerateCommitMessage generates a commit message for staged changes

func GenerateDocumentation

func GenerateDocumentation(ctx context.Context, repo *repo_model.Repository, filePath, code, docType, language, style string) (*ai.GenerateDocumentationResponse, error)

GenerateDocumentation generates documentation for code

func IsEnabled

func IsEnabled() bool

IsEnabled returns true if AI features are enabled

func ReviewPullRequest

ReviewPullRequest performs an AI review of a pull request

func SuggestLabels

func SuggestLabels(ctx context.Context, issue *issues_model.Issue) (*ai.SuggestLabelsResponse, error)

SuggestLabels suggests labels for an issue

func TriageIssue

func TriageIssue(ctx context.Context, issue *issues_model.Issue) (*ai.TriageIssueResponse, error)

TriageIssue performs AI triage on an issue

Types

This section is empty.

Source Files

  • ai.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL