app

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatApplication

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

ChatApplication represents the main application model following SOLID principles

func NewChatApplication

func NewChatApplication(services *container.ServiceContainer, models []string, defaultModel string) *ChatApplication

NewChatApplication creates a new chat application with all dependencies injected

func (*ChatApplication) GetServices

func (app *ChatApplication) GetServices() *container.ServiceContainer

GetServices returns the service container (for testing or extensions)

func (*ChatApplication) GetState

func (app *ChatApplication) GetState() *handlers.AppState

GetState returns the current application state (for testing or extensions)

func (*ChatApplication) Init

func (app *ChatApplication) Init() tea.Cmd

Init initializes the application

func (*ChatApplication) Update

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

Update handles all application messages using the message router pattern

func (*ChatApplication) View

func (app *ChatApplication) View() string

View renders the current application view

Jump to

Keyboard shortcuts

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