// Create a session and send some messages
var session = client.newSession(new NewSessionRequest(".", List.of()));
client.prompt(new PromptRequest(session.sessionId(),
List.of(new TextContent("Remember: my favorite color is blue."))));
// Later: resume the same session by ID
var loadResponse = client.loadSession(
new LoadSessionRequest(session.sessionId(), ".", List.of()));
// Continue the conversation with context preserved
client.prompt(new PromptRequest(session.sessionId(),
List.of(new TextContent("What is my favorite color?"))));
// The agent remembers the previous conversation