Skip to contents

Serialises all turns in chat to a JSONL file under ~/.codeagent/projects/<project_hash>/<session_id>.jsonl.

Usage

save_session(chat, cwd = getwd(), session_id = NULL, title = NULL)

Arguments

chat

An ellmer::Chat object.

cwd

Character. Working directory (used to key the project).

session_id

Character or NULL. UUID; generated if NULL.

title

Character or NULL. Optional human-readable title.

Value

Character(1). The session UUID.