increment_state

Increment a numeric state value. Creates the key with default if it doesn't exist.

Method

</div>

This is a method of the Agents class in the agents module.

Increment a numeric state value. Creates the key with default if it doesn’t exist.

Signature

python
def increment_state(key: str, amount: float, default: float) -> float

Parameters

ParamField str

No description available.

ParamField float

No description available.

ParamField float

No description available.

Returns

ResponseField float

The result of the operation.