Skip to main content

quit_self

Function quit_self 

Source
fn quit_self(
    state: &AppState,
    block_id: &str,
    agent: &str,
    via: &str,
    reason: &str,
    user_instruction: &str,
) -> Response
Expand description

An agent ending its own session — QuitSelf, or ClosePane with no arguments (§7), which has no quote and so always asks the user. A user-started, untainted turn with the user’s quote quits when the turn ends; anything else waits 15 s for the user to keep it (§6.5).