Get History Size • AI Agent SDK
get_history_size: Get the current number of messages in chat history.
get_history_size
Method
</div>
Get the current number of messages in chat history.
Signature
def get_history_size() -> intReturns
ResponseField
intThe result of the operation.
Source
View on GitHubpraisonaiagents/agent/agent.py at line 4273