| 10 | namespace mnncli { |
| 11 | |
| 12 | std::string GetCurrentTimeAsString() { |
| 13 | // Get the current time since epoch |
| 14 | auto now = std::chrono::system_clock::now(); |
| 15 | auto duration = now.time_since_epoch(); |
| 16 | auto seconds = std::chrono::duration_cast<std::chrono::seconds>(duration).count(); |
| 17 | |
| 18 | // Convert to string |
| 19 | return std::to_string(seconds); |
| 20 | } |
| 21 | |
| 22 | bool FromJson(const json& j, PromptItem& item) { |
| 23 | if (!j.is_object()) { |