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
pythondef get_history(&self, max_messages: Option<usize>) -> Vec<Message>
Parameters
ParamField Option<usize>No description available.
Returns
PreviousNext