pub fn serialize_conversation(messages: &[Value]) -> StringExpand 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.