AgentSessionManager.Rendering.Sinks.JSONLSink
(AgentSessionManager v0.8.0)
Copy Markdown
View Source
A sink that writes events as JSON Lines (one JSON object per line).
Ignores rendered text (write/2) and instead serializes the raw event
in write_event/3. Supports two modes:
:full— Complete event data with ISO 8601 timestamp (default):compact— Abbreviated fields with millisecond epoch timestamp
Options
:path— File path to write to. Required.:mode—:fullor:compact. Default:full.
Full Mode Format
{"ts":"2026-02-09T12:00:00Z","type":"run_started","data":{"model":"..."}}Compact Mode Format
{"t":1707464400123,"e":{"t":"rs","m":"sonnet"}}