tui

package
v0.0.0-...-f56615f Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, modelProvider provider.Provider, options Options, input io.Reader, output io.Writer) error

Types

type Options

type Options struct {
	Model               string
	Instructions        string
	InitialPrompt       string
	InitialImages       []provider.Image
	InitialImageLabels  []string
	Stream              bool
	Timeout             time.Duration
	MaxTurns            int
	ContextWindowTokens int
	AutoCompactTokens   int
	UsableContextTokens int
	ToolOutputTokens    int
	Approval            agent.ApprovalMode
	Permissions         *permission.Manager
	ApprovalCategories  map[tool.Category]bool
	ModelCatalog        *modelcatalog.Catalog
	Workspace           string
	Tools               *tool.Registry
	SessionStore        *session.Store
	Session             session.Session
	Skills              *skill.Catalog
	Memory              *memory.Store
	TaskState           *taskstate.State
	Hook                agent.Hook
	Collaboration       *collaboration.Manager
	GoalAutoContinue    bool
	AlternateScreen     bool
	Models              []string
	ModelInfos          []provider.ModelInfo
	ReasoningEffort     string
	ServiceTier         string
	FallbackModels      []string
	ConfigSummary       string
	SandboxStatus       string
	Policy              *policy.Store
	UserInput           *userinput.Manager
	Plugins             []string
	HookSummary         []string
	Theme               string
	Keymap              string
	Notification        string
	TerminalTitle       string
	OnEvent             func(agent.Event)
	StartupWarnings     []string
}

Jump to

Keyboard shortcuts

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