llm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LLMClient

type LLMClient struct {
	Endpoint string
	APIKey   string
	Model    string
	Timeout  time.Duration
}

LLMClient sends diff content to a configured LLM endpoint for summarization.

func NewLLMClient

func NewLLMClient(cfg *config.LLMConfig) *LLMClient

NewLLMClient creates an LLMClient from config. Returns nil if not configured.

func (*LLMClient) Summarize

func (c *LLMClient) Summarize(diffContent string) (string, error)

Summarize sends diff content to the LLM and returns a plain-English summary.

Jump to

Keyboard shortcuts

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