Skip to main content

serialize_conversation

Function serialize_conversation 

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

messages as labeled text, so the model reads them rather than continues them. Thinking is left out, and tool results are cut to 2000 characters.