cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set via ldflags at build time (GoReleaser, Makefile).

Functions

func NewRootCommand

func NewRootCommand() *cobra.Command

Types

type ChatOptions

type ChatOptions struct {
	Interactive  bool
	Model        string
	Temperature  float32
	MaxTokens    int
	TopP         float32
	ProviderURL  string
	ListModels   bool
	SystemPrompt string
	MaxHistory   int
	PresetPrompt string
	Output       string                // "text" or "json"
	NoSave       bool                  // disable auto-save in interactive mode
	SessionName  string                // custom session name (instead of auto-generated ID)
	ContinueID   string                // resume an existing session
	ProviderType provider.ProviderType // registry key, set by newProviderCommand
}

Jump to

Keyboard shortcuts

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