Message Count • Rust AI Agent SDK

message_count: Get message count

message_count

Method

</div>

This is a method of the Session class in the session module.

Get message count

Signature

python
def message_count(&self) -> usize

Returns

ResponseField usize

The result of the operation.