Get Messages • Rust AI Agent SDK

get_messages: Get session message history.

get_messages

Method

</div>

This is a method of the GatewaySessionProtocol class in the gateway module.

Get session message history.

Signature

python
def get_messages(&self, limit: Option<usize>) -> Vec<GatewayMessage>

Parameters

ParamField Option&lt;usize&gt;

No description available.

Returns

PreviousNext