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

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.

Uses

  • TypeError

Source

View on GitHub

praisonaiagents/agents/agents.py at line 3155