Skip to main content

to_jsonl

Function to_jsonl 

Source
pub fn to_jsonl(records: &[UsageRecord]) -> Result<String>
Expand description

Serialize records as JSONL (one UsageRecord per line) — the same shape every other append-log in this crate uses (the transcript, the sidecar). Never fails on an empty slice (produces an empty string).