agentoptions

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfiguredValue

func ConfiguredValue(cfg config.Config, agent string, kind Kind) string

ConfiguredValue returns the configured value for an agent field.

func Supports

func Supports(agent string, kind Kind) bool

Supports reports whether an agent exposes the requested option surface.

func Values

func Values(agent string, kind Kind, req DiscoveryRequest) []string

Values returns suggested values for an agent field.

Types

type DiscoveryRequest

type DiscoveryRequest struct {
	Env      []string
	LookPath func(string) (string, error)
	Live     bool
	// Timeout bounds live discovery commands. Zero uses the client default.
	Timeout time.Duration
}

DiscoveryRequest controls live option discovery.

func DefaultDiscoveryRequest

func DefaultDiscoveryRequest() DiscoveryRequest

DefaultDiscoveryRequest enables live option discovery with the current process environment and PATH lookup.

type Kind

type Kind string

Kind identifies a configurable agent option surface.

const (
	// KindModel selects an agent model field.
	KindModel Kind = "model"
	// KindReasoningEffort selects an agent reasoning-effort field.
	KindReasoningEffort Kind = "reasoning_effort"
)

type OptionSet

type OptionSet struct {
	OverrideSupported bool
	Configured        string
	Suggestions       []string
	AllowCustom       bool
}

OptionSet is the shared option metadata used by wizard and dispatch.

func Resolve

func Resolve(cfg config.Config, agent string, kind Kind, req DiscoveryRequest) OptionSet

Resolve returns the option metadata for an agent field, including live suggestions when available and catalog fallback otherwise.

Jump to

Keyboard shortcuts

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