Skip to main content

render_transcript_preview

Function render_transcript_preview 

Source
pub fn render_transcript_preview(
    history: &[ChatMessage],
    max_chars: usize,
) -> String
Expand description

Render the first max_chars characters of the conversation (skipping the system prompt at index 0) as the titling input — bounded so a huge session doesn’t blow up the side-call’s own request size.