Skip to main content

render_transcript

Function render_transcript 

Source
pub fn render_transcript(session: &Session, format: HumanExportFormat) -> String
Expand description

Render session’s conversation (session.messages, in order) for a human, in format. Pure/read-only: session is untouched, and calling this twice on the same session is idempotent (same output both times). System messages are included — they’re part of the honest record of what happened (e.g. compaction markers, context_injections blocks).