Package ai.acolite.agentsdk.examples
Class MemorySessionExample
java.lang.Object
ai.acolite.agentsdk.examples.MemorySessionExample
MemorySessionExample
Demonstrates in-memory session storage for conversation memory.
This example shows: - Creating a MemorySession for in-memory conversation storage - Running multiple turns with conversation context - How the agent remembers previous interactions - Accessing session history
MemorySession is ideal for: - Development and testing - Short-lived conversations - Applications where persistence isn't needed
Note: Data is lost when the JVM exits.
Usage: OPENAI_API_KEY=sk-... java ai.acolite.agentsdk.examples.MemorySessionExample
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MemorySessionExample
public MemorySessionExample()
-
-
Method Details
-
main
-