Documentation
¶
Overview ¶
Package native provides a reusable Forma chat panel, rendered entirely in Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Panel ¶
type Panel struct {
// contains filtered or unexported fields
}
Panel owns a conversation. View and SetWindow run on the UI thread; model and tools run on a worker. Close is nonblocking and safe from any goroutine.
func New ¶
New constructs a panel. When no approval callback is supplied, protected tools require an explicit choice in the native panel before they execute.
func (*Panel) Configure ¶
Configure replaces an idle conversation and clears its history. Validation happens before replacing the old conversation. Call on the UI thread.
func (*Panel) SetHeaderActions ¶
SetHeaderActions adds non-draggable application controls on the UI thread.