Set State • AI Agent SDK

set_state: Set a specific state value

set_state

Method

</div>

This is a method of the Session class in the session module.

Set a specific state value

Signature

python
def set_state(key: str, value: Any) -> None

Parameters

ParamField str

No description available.

ParamField Any

No description available.

Uses

  • restore_state
  • save_state

Used By

Source

View on GitHub

praisonaiagents/session.py at line 361