summarizecli

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DirectOpenRouterToolName = "openrouter-direct"
View Source
const DirectSummaryToolName = "ollama-direct"
View Source
const ToolName = "summarize"

Variables

This section is empty.

Functions

func PreferredCLIProvider

func PreferredCLIProvider() string

func ResolveCLIProvider

func ResolveCLIProvider(cli, model string) string

func SummaryToolName

func SummaryToolName(model string) string

func SummaryToolVersion

func SummaryToolVersion(ctx context.Context, binary string, model string) string

func UsesDirectSummary

func UsesDirectSummary(model string) bool

func Version

func Version(ctx context.Context, binary string) string

Types

type Options

type Options struct {
	Binary    string
	Input     string
	Stdin     string
	Env       map[string]string
	Args      []string
	Summarize bool
	Model     string
	CLI       string
	Prompt    string
	Length    string
	Language  string
	Timeout   time.Duration
	RootDir   string
}

type Result

type Result struct {
	Extract model.ExtractResult
	Summary model.SummaryResult
}

func Run

func Run(ctx context.Context, opts Options) (Result, error)

Jump to

Keyboard shortcuts

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