Increment State • AI Agent SDK
increment_state: Increment a numeric state value. Creates the key with default if it doesn't exist.
increment_state
Method
</div>
This is a method of the AgentTeam 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) -> floatParameters
ParamField
strNo description available.
ParamField
floatNo description available.
ParamField
floatNo description available.
Returns
ResponseField
floatThe result of the operation.
Uses
TypeError
Source
View on GitHubpraisonaiagents/agents/agents.py at line 3155