features

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultPolicies

func GetDefaultPolicies() map[string]any

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
	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
}

func Discover

func Discover(ctx context.Context) *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