Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessage ¶
type ChatMessage struct {
Role string
Content string
Name string // tool name, for Role == "tool"
Arguments string // marshaled call args, for Role == "tool"
AgentID string // issuing sub-agent, for Role == "tool" (empty = root agent)
}
ChatMessage represents a message in the chat history
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the TUI state
func NewModel ¶
func NewModel(ctx context.Context, cfg types.Config, height int, shellJobs *wizmcp.ShellJobs, transports ...mcp.Transport) Model
NewModel creates a new TUI model
func (Model) SessionUsage ¶ added in v0.7.0
func (m Model) SessionUsage() chat.SessionUsage
SessionUsage reports what the session spent, for the exit summary RunTUI prints once the program has stopped rendering.
Click to show internal directories.
Click to hide internal directories.