Delete State • AI Agent SDK

delete_state: Delete a state key if it exists. Returns True if deleted, False if key didn't exist.

delete_state

Method

</div>

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

Delete a state key if it exists. Returns True if deleted, False if key didn’t exist.

Signature

python
def delete_state(key: str) -> bool

Parameters

ParamField str

No description available.

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/agents/agents.py at line 3147