Skip to main content

current_system_message

Function current_system_message 

Source
pub fn current_system_message(messages: &[Message]) -> Option<SystemMessage>
Expand description

All system messages folded into one: their text joined, sections merged (a removed then re-added section moves to the end), and the current tools. None when the transcript has no system message and no tools.