Skip to main content

append_marker

Function append_marker 

Source
pub fn append_marker(
    messages: &mut Vec<SharedMessage>,
    reason: InterruptReason,
) -> bool
Expand description

Append the marker for reason unless the history already ends with a marker (a second interruption with no turn in between records nothing new). Returns whether a message was appended.