app

package
v0.48.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 18 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 using state management

func NewChatApplication

func NewChatApplication(
	models []string,
	defaultModel string,
	agentService domain.AgentService,
	conversationRepo domain.ConversationRepository,
	modelService domain.ModelService,
	configService *config.Config,
	toolService domain.ToolService,
	fileService domain.FileService,
	shortcutRegistry *shortcuts.Registry,
	stateManager *services.StateManager,
	themeService domain.ThemeService,
	toolRegistry *tools.Registry,
	configPath string,
) *ChatApplication

NewChatApplication creates a new chat application

func (*ChatApplication) GetAgentService added in v0.48.0

func (app *ChatApplication) GetAgentService() domain.AgentService

GetAgentService returns the agent service

func (*ChatApplication) GetConfig added in v0.36.0

func (app *ChatApplication) GetConfig() *config.Config

GetConfig returns the configuration for keybinding context

func (*ChatApplication) GetConversationRepository added in v0.36.0

func (app *ChatApplication) GetConversationRepository() domain.ConversationRepository

GetServices returns the service container

func (*ChatApplication) GetConversationView added in v0.27.0

func (app *ChatApplication) GetConversationView() ui.ConversationRenderer

GetConversationView returns the conversation view

func (*ChatApplication) GetInputView added in v0.27.0

func (app *ChatApplication) GetInputView() ui.InputComponent

GetInputView returns the input view

func (*ChatApplication) GetPageSize added in v0.27.0

func (app *ChatApplication) GetPageSize() int

GetPageSize returns the current page size for scrolling

func (*ChatApplication) GetStateManager added in v0.27.0

func (app *ChatApplication) GetStateManager() *services.StateManager

GetStateManager returns the current state manager

func (*ChatApplication) GetStatusView added in v0.27.0

func (app *ChatApplication) GetStatusView() ui.StatusComponent

GetStatusView returns the status view

func (*ChatApplication) Init

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

Init initializes the application

func (*ChatApplication) SendMessage added in v0.27.0

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

SendMessage sends the current message

func (*ChatApplication) ToggleToolResultExpansion added in v0.27.0

func (app *ChatApplication) ToggleToolResultExpansion()

ToggleToolResultExpansion toggles tool result expansion

func (*ChatApplication) Update

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

Update handles all application messages using the state management system

func (*ChatApplication) View

func (app *ChatApplication) View() string

View renders the current application view using state management

Jump to

Keyboard shortcuts

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