Expand description
Runner lifecycle helpers for background agent execution.
Provides shared implementations for:
- Runner reservation (check existing → create new with cancel token)
- Runner finalization (map execution result to
AgentStatus) - Status mapping
Functions§
- finalize_
runner - Update a runner’s terminal status and completion timestamp.
- status_
from_ execution_ result - Map an execution result to
AgentStatus. - try_
reserve_ runner - Try to reserve a runner for the given session.