Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExecuteMode ¶
func IsExecuteMode(mode ExecutionMode) bool
IsExecuteMode returns true if the execution mode executes tools.
func IsExecuteModeString ¶
IsExecuteModeString returns true if the execution mode string is execute mode. Matches both "execute" and "" (empty string treated as default execute mode).
func IsPairProgrammingMode ¶
func IsPairProgrammingMode(mode ExecutionMode) bool
IsPairProgrammingMode returns true if the execution mode is pair programming mode.
func IsPairProgrammingModeString ¶
IsPairProgrammingModeString returns true if the execution mode string is pair programming mode.
func IsPlanMode ¶
func IsPlanMode(mode ExecutionMode) bool
IsPlanMode returns true if the execution mode is plan mode.
func IsPlanModeString ¶
IsPlanModeString returns true if the execution mode string is plan mode.
Types ¶
type ExecutionMode ¶
type ExecutionMode string
ExecutionMode determines: - Whether tools are actually executed or just described - How the agent behaves (plan, execute, etc.)
const ( // ExecutionModeExecute is the default mode - tools are executed normally. ExecutionModeExecute ExecutionMode = "execute" // ExecutionModePlan is planning mode - tools are described but not executed. // In this mode, the agent only provides descriptions/plans without running them. // This is useful for letting users review before actual execution. ExecutionModePlan ExecutionMode = "plan" // ExecutionModePairProgramming is collaborative mode - the AI works alongside the user // with more interactive feedback and suggestions rather than autonomous execution. // This mode focuses on collaboration and real-time code review. ExecutionModePairProgramming ExecutionMode = "pair_programming" )