Skip to main content

reset_session_uuid

Function reset_session_uuid 

Source
pub async fn reset_session_uuid(
    store: &TaskStore,
    session_name: &str,
) -> Result<()>
Expand description

Reset the session UUID so the next message starts a fresh conversation.

Called when agent or model changes, since the new agent won’t share the previous agent’s session state. Deletes the stored UUID so the next get_or_create_session_uuid call generates a fresh one.