Skip to main content

increment_state

Method
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

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

Parameters

key
str
required
No description available.
amount
float
default:"1"
No description available.
default
float
default:"0"
No description available.

Returns

Returns
float
The result of the operation.