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

python
def get_session_spill_dir() -> Path

Returns

ResponseField Path

Path to &lt;state&gt;/state/session_spill/

Uses

  • get_state_dir

Source

View on GitHub

praisonaiagents/paths.py at line 238


Related Documentation