tui

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Launch

func Launch(ctx *lmcli.Context, options ...LaunchOption) error

Types

type LaunchOption

type LaunchOption func(*LaunchOptions)

func WithInitialConversation

func WithInitialConversation(conv *conversation.Conversation) LaunchOption

func WithInitialMessage

func WithInitialMessage(msg string) LaunchOption

func WithInitialView

func WithInitialView(view types.View) LaunchOption

func WithMaxTokens

func WithMaxTokens(tokens int) LaunchOption

func WithTemperature

func WithTemperature(temp float32) LaunchOption

type LaunchOptions

type LaunchOptions struct {
	InitialConversation *conversation.Conversation
	InitialMessage      string
	InitialView         types.View
	Temperature         *float32
	MaxTokens           *int
}

type Model

type Model struct {
	TUI *app.TUI
	// contains filtered or unexported fields
}

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

Main TUI view

Directories

Path Synopsis
views

Jump to

Keyboard shortcuts

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