Skip to main content

get_history

Method
This is a method of the Session class in the session module.
Get chat history as LLM messages

Signature

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

Parameters

max_messages
Option<usize>
required
No description available.

Returns

Returns
Vec<Message>
The result of the operation.