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:
- `
PRAISONAI_HOME` / existing legacy home (single root, back-compat) - `
$XDG_STATE_HOME/praisonai(else~/.local/state/praisonai`)
Signature
def get_state_dir() -> PathReturns
ResponseField
PathPath to state directory
Used By
Source
View on GitHubpraisonaiagents/paths.py at line 211