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

features

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

type Features struct {
	Inferences             []api.InferenceProvider `json:"inferences"`             // List of available inference providers
	InferencesNotAvailable []api.InferenceProvider `json:"inferencesNotAvailable"` // List of not available inference providers
	// TODO: should this be exposed in the outputs?
	InferencesDisabledByPolicy []api.InferenceProvider `json:"-"`                 // List of inference providers disabled
	Inference                  *api.InferenceProvider  `json:"inference"`         // The selected inference provider based on user preferences or auto-detection, or nil if no inference provider is selected
	Tools                      []api.ToolsProvider     `json:"tools"`             // List of available tools
	ToolsNotAvailable          []api.ToolsProvider     `json:"toolsNotAvailable"` // List of not available tools
	// TODO: should this be exposed in the outputs?
	ToolsDisabledByPolicy []api.ToolsProvider `json:"-"` // List of tools providers disabled
}

func Discover

func Discover(ctx context.Context) (features *Features)

func (*Features) ToHumanReadable

func (f *Features) ToHumanReadable() string

ToHumanReadable converts the features to a human-readable string representation.

func (*Features) ToJSON

func (f *Features) ToJSON() (string, error)

ToJSON converts the features to a generic JSON string representation.

Jump to

Keyboard shortcuts

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