Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func New ¶
New constructs the App. sessionID may be empty when the caller plans to create a new session after wiring the App as the agent's UI (so the new session's tool list includes ask_user); use App.SetSessionID to attach the freshly-minted id before App.Run.
func (*App) Ask ¶
Ask implements code.UI. Invoked from a tool-execution goroutine (ask_user); blocks until the user types an answer and submits, or the context is cancelled.
func (*App) Confirm ¶
Confirm implements code.UI. Invoked from a tool-execution goroutine (e.g. shell.Tools for dangerous commands); blocks until the user answers y/n in the input area or the context is cancelled.
func (*App) SetSessionID ¶
SetSessionID binds the active session id once it's known. Call once, before App.Run, after the agent has created or loaded the session.
type PhaseConfig ¶
func GetPhaseConfig ¶
func GetPhaseConfig(phase AppPhase) PhaseConfig