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

python
def get_message_count() -> int

Returns

ResponseField int

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/runtime/turn_context.py at line 247