Skip to main content

start_fresh_after_switch

Function start_fresh_after_switch 

Source
pub(crate) fn start_fresh_after_switch(
    state: &AppState,
    block_id: &str,
    first_message: String,
) -> bool
Expand description

Start block_id’s fresh session after a model change: when its turn ends its session ends, and first_message starts the new one on the model the agent is set to now. false when there is no async runtime to run it on.