Skip to contents

Destroys the current session and starts fresh.

Usage

hal_reset(mode = NULL)

Arguments

mode

Session mode: "agent" (default), "plan", or "autopilot". If NULL, uses the default (agent).

Value

Invisibly returns NULL, called for its side effect.

Examples

if (FALSE) { # \dontrun{
hal_reset()               # fresh session on the same backend
hal_reset(mode = "plan")  # restart in plan mode (copilot backend)
} # }