sections

package
v0.11.18 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 8 Imported by: 9

Documentation

Index

Constants

View Source
const ProfileSettingsSectionSlug = "profile-settings"

Variables

This section is empty.

Functions

func CreateGeppettoSections

func CreateGeppettoSections(opts ...CreateOption) ([]schema.Section, error)

CreateGeppettoSections returns settings sections for Geppetto AI settings. If no InferenceSettings are provided via WithInferenceSettings, default settings.NewInferenceSettings() is used.

func NewProfileSettingsSection added in v0.10.18

func NewProfileSettingsSection(opts ...ProfileSettingsSectionOption) (schema.Section, error)

Types

type CreateOption

type CreateOption func(*createOptions)

CreateOption configures behavior of CreateGeppettoSections.

func WithDefaultsFromInferenceSettings added in v0.10.17

func WithDefaultsFromInferenceSettings(s *settings.InferenceSettings) CreateOption

WithDefaultsFromInferenceSettings uses the given InferenceSettings for layer defaults.

type ProfileSettings added in v0.10.18

type ProfileSettings struct {
	Profile           string   `glazed:"profile"`
	ProfileRegistries []string `glazed:"profile-registries"`
}

type ProfileSettingsSectionOption added in v0.10.18

type ProfileSettingsSectionOption func(*profileSettingsSectionOptions)

func WithProfileDefault added in v0.10.18

func WithProfileDefault(profile string) ProfileSettingsSectionOption

func WithProfileRegistriesDefault added in v0.10.18

func WithProfileRegistriesDefault(entries ...string) ProfileSettingsSectionOption

Jump to

Keyboard shortcuts

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