Get History • Rust AI Agent SDK

get_history: Get chat history as LLM messages

get_history

Method

</div>

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

Get chat history as LLM messages

Signature

python
def get_history(&self, max_messages: Option<usize>) -> Vec<Message>

Parameters

ParamField Option&lt;usize&gt;

No description available.

Returns

PreviousNext