clear • Rust AI Agent SDK

clear: Clear all messages

clear

Method

</div>

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

Clear all messages

Signature

python
def clear(&mut self) -> ()

Returns

ResponseField ()

The result of the operation.