Skip to main content

serialize_conversation

Function serialize_conversation 

Source
pub fn serialize_conversation(messages: &[Message]) -> String
Expand description

Serialize a conversation to labeled text for the summary prompt. Tool results are capped so summarization stays cheap.