Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

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.