forms

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUserAborted = huh.ErrUserAborted

ErrUserAborted exposes the huh user-abort sentinel for callers.

Functions

func AIConfig added in v1.7.4

func AIConfig(result *AIConfigFormResult) error

AIConfig prompts for the server-side AI configuration stored in ai.yaml.

func EditAIConfig added in v1.7.4

func EditAIConfig(result *AIConfigFormResult) error

EditAIConfig prompts for the provider-independent and provider-specific AI settings.

func SelectAIProvider added in v1.7.4

func SelectAIProvider(result *AIConfigFormResult) error

SelectAIProvider prompts for the AI provider to edit.

func SelectOperator

func SelectOperator(title string, operators []string, value *string) error

SelectOperator prompts for a single operator selection.

Types

type AIConfigFormResult added in v1.7.4

type AIConfigFormResult struct {
	Provider        string
	Models          []string
	ThinkingLevel   string
	SystemPrompt    string
	APIKey          string
	BaseURL         string
	UserAgent       string
	Organization    string
	Project         string
	Location        string
	UseResponsesAPI bool
	SkipAuth        bool
	UseBedrock      bool
}

AIConfigFormResult captures the server-side AI configuration collected from the form.

Jump to

Keyboard shortcuts

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