Help us shape the future of Go! Take the 2026 Go Developer Survey

external

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableModels

func AvailableModels(ctx context.Context, options *Options) (map[string]bool, error)

func IsAnthropic

func IsAnthropic(id string) bool

func IsGoogle

func IsGoogle(id string) bool

func IsOpenAI

func IsOpenAI(id string) bool

func LookupPath added in v0.8.3

func LookupPath(tool, fallback string) string

func MergeEnv added in v0.17.9

func MergeEnv(parent []string, overrides map[string]string, remove ...string) []string

MergeEnv replaces launcher-owned variables and removes obsolete overrides. A nil parent inherits the current environment; an empty parent stays empty.

func Models

func Models(ctx context.Context, options *Options, modelOpts *ModelOptions) ([]string, error)

func Run added in v0.17.9

func Run(ctx context.Context, path string, args, env []string) error

Run starts a CLI with the caller's terminal streams.

Types

type ModelFilter

type ModelFilter func(id string) bool

type ModelKind

type ModelKind int
const (
	ModelDefault ModelKind = iota
	ModelFast
)

type ModelOptions

type ModelOptions struct {
	Kind   ModelKind
	Filter ModelFilter
}

type Options

type Options struct {
	Path string
	Env  []string

	WingmanURL   string
	WingmanToken string
}

func WithDefaults

func WithDefaults(options *Options) *Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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