Export your OpenAI API key
For Agents
Last N Messages
This example demonstrates how to configure agents to search through previous sessions and limit the number of historical sessions included in context. This helps manage context length while maintaining relevant conversation history.