Skip to main content

compact_conversation

Function compact_conversation 

Source
pub async fn compact_conversation(
    api_messages: &[Value],
    runtime: &Runtime,
    custom_instructions: Option<&str>,
) -> Result<String>
Expand description

Serialize the in-memory API message history into a readable transcript and ask the LLM to produce a structured summary. Called by /compact.