Increment State • AI Agent SDK

increment_state: Increment a numeric state value

increment_state

Method

</div>

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

Increment a numeric state value

Signature

python
def increment_state(key: str, increment: int, default: int) -> None

Parameters

ParamField str

No description available.

ParamField int

No description available.

ParamField int

No description available.

Uses

  • get_state
  • set_state

Source

View on GitHub

praisonaiagents/session.py at line 367