Documentation
¶
Index ¶
- func ConfiguredValue(cfg config.Config, agent string, kind Kind) string
- func DiscoverModels(agent string, req DiscoveryRequest) ([]string, error)
- func HasModelDiscovery(agent string) bool
- func ParseModelCommandOutput(agent string, output []byte) ([]string, error)
- func Supports(agent string, kind Kind) bool
- func Values(agent string, kind Kind, req DiscoveryRequest) []string
- type DiscoveryRequest
- type Kind
- type OptionSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfiguredValue ¶
ConfiguredValue returns the configured value for an agent field.
func DiscoverModels ¶ added in v0.20.0
func DiscoverModels(agent string, req DiscoveryRequest) ([]string, error)
DiscoverModels queries the harness without sync or inference. It uses the same project environment and provider configuration helpers as launch and dispatch. A returned catalog describes selectable models, not guaranteed account access.
func HasModelDiscovery ¶ added in v0.20.0
HasModelDiscovery reports whether the installed harness can supply a catalog.
func ParseModelCommandOutput ¶ added in v0.20.0
ParseModelCommandOutput validates native non-protocol model output. Remote executors can transport the bytes without maintaining a second model parser.
Types ¶
type DiscoveryRequest ¶
type DiscoveryRequest struct {
Context context.Context
Project *config.ProjectConfig
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 OptionSet ¶
type OptionSet struct {
OverrideSupported bool
Configured string
Suggestions []string
AllowCustom bool
// Source is harness for discovered models, not_requested when skipped,
// unavailable on discovery failure, and catalog for non-model options only.
Source string
DiscoveryError string
}
OptionSet is the shared option metadata used by wizard and dispatch.