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

python
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

  • ValueError
  • search_short_term

Used By

Source

View on GitHub

praisonaiagents/session.py at line 232