Skip to main content

Module writer

Module writer 

Source
Expand description

Streaming JSONL writer for .agentlog files.

Records are serialized with serde_json (struct-field order, not canonical — SPEC §5 canonical form applies to the payload hash, not to wire representation). One \n is emitted after each record, including the last, so the file always ends with a newline.

Functions§

write_all
Write an iterator of records, one per line.
write_record
Write a single record followed by a newline.