Skip to main content

compacted_transcript

Function compacted_transcript 

Source
pub fn compacted_transcript(
    parent_session_id: &str,
    summary: &str,
) -> Vec<MessageParam>
Expand description

Build a two-message transcript representing a compacted session.

The first message is a user message containing the compaction context template, and the second is an assistant message carrying the handoff summary.