Skip to main content
Version: 0.21.0

Function: togglePlanMode()

function togglePlanMode(control): Mode | null;

Defined in: core/modeControl.ts:73

What the chats' /plan does: switches control into plan mode, or, when it's already there, back to the mode it was entered from ("guided" if it started in plan mode). Returns the new mode, or null when this session can't be in plan mode (an autonomous one).

Parameters​

ParameterType
controlModeControl

Returns​

Mode | null