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, p render.Presenter, 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.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
full
Package full implements render.Presenter for nib's full-screen surface: the alt-screen mode with mouse reporting enabled.
|
Package full implements render.Presenter for nib's full-screen surface: the alt-screen mode with mouse reporting enabled. |
|
inline
Package inline implements render.Presenter for nib's default surface: the fzf-style inline widget that lives in the normal terminal scrollback (no alt screen, no mouse reporting).
|
Package inline implements render.Presenter for nib's default surface: the fzf-style inline widget that lives in the normal terminal scrollback (no alt screen, no mouse reporting). |
Click to show internal directories.
Click to hide internal directories.