Restore State • AI Agent SDK
restore_state: Restore session state from memory.
restore_state
Method
</div>
This is a method of the Session class in the session module.
Restore session state from memory.
Signature
def restore_state() -> Dict[str, Any]Returns
ResponseField
Dict[str, Any]Dictionary of restored state data
Exceptions
ValueError
If this is a remote session
Uses
ValueErrorsearch_short_term
Used By
Source
View on GitHubpraisonaiagents/session.py at line 232