Import Sessions
import_sessionsImport sessions from a LoreConvo export file (JSON/JSONL). Preserves session UUIDs. Choose to skip or replace existing sessions, or validate with a dry run before making changes.
Instructions
Import sessions from a LoreConvo export file (JSON or JSONL).
Reads an export created by export_sessions and saves sessions into the local database. Session UUIDs are preserved so re-importing is safe.
Args: file_path: Path to the export file (JSON or JSONL format). on_conflict: What to do if a session ID already exists. 'skip' (default) -- leave the existing session unchanged. 'replace' -- overwrite with the imported version. dry_run: If True, parse and validate the file but make no DB changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| file_path | Yes | ||
| on_conflict | No | skip |