Versions in this module Expand all Collapse all v1 v1.0.0 Oct 7, 2026 Changes in this version + var ErrUnsupported = errors.New("interaction not supported by this frontend") + var Modes = []Mode + type Answers struct + Cancelled bool + Notes map[string]string + Selected map[string][]string + type Approval struct + Confirm bool + Edit bool + OutsideRoots bool + Reason string + Remember string + Summary string + Tool string + ToolID string + Warning string + type Choice string + const AllowAlways + const AllowOnce + const Deny + type Mode string + const ModeAcceptEdits + const ModeBalanced + const ModeStrict + const ModeTrust + func ParseMode(raw string) (Mode, error) + type Option struct + Description string + Label string + Preview string + type Question struct + Custom *bool + Header string + MultiSelect bool + Options []Option + Question string + func (q Question) AllowsCustom() bool + type UI interface + Approve func(ctx context.Context, req Approval) (Verdict, error) + Ask func(ctx context.Context, qs []Question) (Answers, error) + type Verdict struct + Choice Choice + Feedback string