Skip to main content

append_session_entry

Function append_session_entry 

Source
pub async fn append_session_entry(
    session_id: &str,
    entry: &SessionEntry,
) -> Result<(), AgentError>
Expand description

Append one NDJSON session entry to the transcript file.

Creates the session directory if needed, opens the file in append mode, and writes one NDJSON-safe line. This is O(1) per message.