Updated
On this page
Session handoff: check_handoff_needed flags when token usage nears the model's context limit; perform_handoff summarizes the old session and starts a fresh one seeded with that summary.
#overseer.src.orxtra.overseer._handoff
#overseer.src.orxtra.overseer._handoff
#check_handoff_needed
python
async def check_handoff_needed(session: Session, model_context_limit: int) -> bool#perform_handoff
python
async def perform_handoff(session: Session, trace_writer: TraceWriter, run_id: UUID, run_principal_id: UUID) -> Session