getContent method
Get the current session memory content.
Implementation
Future<String?> getContent() async {
try {
final path = getSessionMemoryPath();
if (!await fileExists(path)) return null;
final content = await readFile(path);
logEvent('tengu_session_memory_loaded', {
'content_length': content.length,
});
return content;
} catch (_) {
return null;
}
}