Get Session Spill Dir • AI Agent SDK
get_session_spill_dir: Get the session spill directory (last-resort salvage on write failure).
get_session_spill_dir
Function
</div>
This function is defined in the paths module.
Get the session spill directory (last-resort salvage on write failure).
When a durable session write fails (disk-full / corruption / permission), the already-produced turn is spilled here atomically and re-ingested on the next load (Issue #3597).
Signature
def get_session_spill_dir() -> PathReturns
ResponseField
PathPath to <state>/state/session_spill/
Uses
get_state_dir
Source
View on GitHubpraisonaiagents/paths.py at line 238