Skip to main content

save_turn_log

Function save_turn_log 

Source
pub fn save_turn_log(
    session_ctx: &SessionContext,
    turn: u32,
    events: &[RuntimeEvent],
    user_input: &str,
) -> Result<()>
Expand description

Save all events from a turn to a JSONL file.

Performs synchronous file I/O. Callers should invoke this via tokio::task::spawn_blocking.