Get State • AI Agent SDK
get_state: Get a specific state value
get_state
Method
</div>
This is a method of the Session class in the session module.
Get a specific state value
Signature
def get_state(key: str, default: Any) -> AnyParameters
ParamField
strNo description available.
ParamField
AnyNo description available.
Returns
ResponseField
AnyThe result of the operation.
Uses
restore_state
Used By
Source
View on GitHubpraisonaiagents/session.py at line 356