hal_reset: Reset the hal session

View source: R/session.R

hal_resetR Documentation

Reset the hal session

Description

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

## Not run: 
hal_reset()               # fresh session on the same backend
hal_reset(mode = "plan")  # restart in plan mode (copilot backend)

## End(Not run)

hal documentation built on Oct. 6, 2026, 5:07 p.m.