getPlan method

String? getPlan({
  1. required String sessionId,
  2. String? agentId,
})

Get the plan content for a session.

Implementation

String? getPlan({required String sessionId, String? agentId}) {
  final filePath = getPlanFilePath(sessionId: sessionId, agentId: agentId);
  try {
    return File(filePath).readAsStringSync();
  } on FileSystemException {
    return null;
  }
}