Skip to main content

serialize_conversation

Function serialize_conversation 

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

serializeConversation: LLM messages (see convert_to_llm) as [Role]: ... text, so the summarizer reads the transcript instead of continuing it. Tool results are cut to 2000 characters.