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 ¶
Update handles all application messages using the message router pattern
func (*ChatApplication) View ¶
func (app *ChatApplication) View() string
View renders the current application view
Click to show internal directories.
Click to hide internal directories.