len • Rust AI Agent SDK

len: Get the number of messages

len

Method

</div>

This is a method of the ConversationHistory class in the memory module.

Get the number of messages

Signature

python
def len(&self) -> usize

Returns

ResponseField usize

The result of the operation.