Documentation
¶
Index ¶
- type ChatApplication
- func (app *ChatApplication) ApproveToolCall() tea.Cmd
- func (app *ChatApplication) DenyToolCall() tea.Cmd
- func (app *ChatApplication) GetConversationView() ui.ConversationRenderer
- func (app *ChatApplication) GetInputView() ui.InputComponent
- func (app *ChatApplication) GetPageSize() int
- func (app *ChatApplication) GetServices() *container.ServiceContainer
- func (app *ChatApplication) GetStateManager() *services.StateManager
- func (app *ChatApplication) GetStatusView() ui.StatusComponent
- func (app *ChatApplication) HasPendingApproval() bool
- func (app *ChatApplication) Init() tea.Cmd
- func (app *ChatApplication) SendMessage() tea.Cmd
- func (app *ChatApplication) ToggleToolResultExpansion()
- func (app *ChatApplication) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (app *ChatApplication) View() string
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(services *container.ServiceContainer, models []string, defaultModel string) *ChatApplication
NewChatApplication creates a new chat application with all dependencies injected
func (*ChatApplication) ApproveToolCall ¶ added in v0.27.0
func (app *ChatApplication) ApproveToolCall() tea.Cmd
ApproveToolCall approves the current tool call
func (*ChatApplication) DenyToolCall ¶ added in v0.27.0
func (app *ChatApplication) DenyToolCall() tea.Cmd
DenyToolCall denies the current tool call
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) GetServices ¶
func (app *ChatApplication) GetServices() *container.ServiceContainer
GetServices returns the service container (for testing or extensions)
func (*ChatApplication) GetStateManager ¶ added in v0.27.0
func (app *ChatApplication) GetStateManager() *services.StateManager
GetStateManager returns the current state manager (for testing or extensions)
func (*ChatApplication) GetStatusView ¶ added in v0.27.0
func (app *ChatApplication) GetStatusView() ui.StatusComponent
GetStatusView returns the status view
func (*ChatApplication) HasPendingApproval ¶ added in v0.27.0
func (app *ChatApplication) HasPendingApproval() bool
HasPendingApproval checks if there's a pending approval
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 ¶
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