Skip to main content

reserve_session_execution

Function reserve_session_execution 

Source
pub async fn reserve_session_execution(
    agent: &Arc<Agent>,
    runners: &Arc<RwLock<HashMap<String, AgentRunner>>>,
    senders: &Arc<RwLock<HashMap<String, Sender<AgentEvent>>>>,
    session_id: &str,
    event_sender: &Sender<AgentEvent>,
) -> SessionExecutionReserveOutcome
Expand description

Reserve the shared runner slot and logical-session router as one handoff.

The raw runner reservation remains the common low-level primitive used by the router’s own two-phase activation protocol. Every manual/server entry point uses this wrapper so an SDK owner or another entry surface collides before approved tools, workspace state, persistence, relays, or a background execution task can run.