ai

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultModel = "claude-sonnet-4-20250514"

Variables

This section is empty.

Functions

func AnalyzePR

func AnalyzePR(ctx context.Context, client *Client, data *model.PRData, risks []model.RiskFlag) (*model.AIAnalysis, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(apiKey, model string) *Client

func (*Client) Call

func (c *Client) Call(ctx context.Context, system, prompt string) (string, error)

Jump to

Keyboard shortcuts

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