llm

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Summarize

func Summarize(ctx context.Context, cfg Config, input SummaryInput) (string, error)

Summarize generates a summary using GitHub Models API

Types

type Config

type Config struct {
	Model   string
	Lang    string
	Prompt  string // User's custom prompt injection
	Timeout time.Duration
}

Config holds the LLM summarization configuration

type IssueEntry

type IssueEntry struct {
	Title string
	URL   string
	Body  string
	PRs   []PREntry
}

IssueEntry represents an issue with its linked PRs

type PREntry

type PREntry struct {
	Title string
	URL   string
	Body  string
}

PREntry represents a pull request

type ReviewEntry

type ReviewEntry struct {
	PRTitle string
	PRURL   string
	States  []string
}

ReviewEntry represents reviews submitted on a PR

type SummaryInput

type SummaryInput struct {
	DateLabel     string
	IssueGroups   []IssueEntry
	StandalonePRs []PREntry
	Reviews       []ReviewEntry
}

SummaryInput contains the data to summarize

Jump to

Keyboard shortcuts

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