chat

package
v0.0.0-...-aee1b1c Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Role    string
	Content string
}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(userInputChan chan<- string, ollamaOutputChan <-chan string) *Model

func (Model) Init

func (model Model) Init() tea.Cmd

func (*Model) Quitting

func (myModel *Model) Quitting() bool

func (*Model) Update

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

func (*Model) View

func (myModel *Model) View() string

type OutputDoneMsg

type OutputDoneMsg struct{}

type OutputMsg

type OutputMsg string

type Styles

type Styles struct {
	BorderColor lipgloss.Color
	InputStyle  lipgloss.Style
	PromptStyle lipgloss.Style
	ChatStyle   lipgloss.Style
}

func DefaultStyles

func DefaultStyles() *Styles

Jump to

Keyboard shortcuts

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