Get Chat History • Rust AI Agent SDK
get_chat_history: Get chat history in LLM-compatible format
get_chat_history
Method
</div>
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
ParamField
Option<usize>No description available.