Skip to main content

project_turns_from_events

Function project_turns_from_events 

Source
pub fn project_turns_from_events(
    thread_id: &ThreadId,
    events: &[EventEnvelope],
) -> Vec<TurnRecord>
Expand description

Projects raw runtime event envelopes into per-turn transcript records.

Thread stores that persist EventEnvelope logs can use this to populate a snapshot’s turns field without duplicating the runtime replay rules.