Get State Dir • AI Agent SDK

get_state_dir: Get PraisonAI state directory (machine-local: MRU model, logs, spill).

get_state_dir

Function

</div>

This function is defined in the paths module.

Get PraisonAI state directory (machine-local: MRU model, logs, spill).

Precedence:

  1. `PRAISONAI_HOME` / existing legacy home (single root, back-compat)
  2. `$XDG_STATE_HOME/praisonai (else ~/.local/state/praisonai`)

Signature

python
def get_state_dir() -> Path

Returns

ResponseField Path

Path to state directory

Used By

Source

View on GitHub

praisonaiagents/paths.py at line 211