Skip to main content

get_chat_history

Method
This is a method of the SessionData class in the session module.
Get chat history in LLM-compatible format

Signature

def get_chat_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.