Get Message Count • AI Agent SDK
get_message_count: Get the number of messages in the transcript window.
get_message_count
Method
</div>
This is a method of the PreparedTurnContext class in the turn_context module.
Get the number of messages in the transcript window.
Signature
def get_message_count() -> intReturns
ResponseField
intThe result of the operation.
Used By
Source
View on GitHubpraisonaiagents/runtime/turn_context.py at line 247