Get State • AI Agent SDK

get_state: Get a state value

get_state

Method

</div>

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

Get a state value

Signature

python
def get_state(key: str, default: Any) -> Any

Parameters

ParamField str

No description available.

ParamField Any

No description available.

Returns

ResponseField Any

The result of the operation.

Source

View on GitHub

praisonaiagents/agents/agents.py at line 3209