| 2874 | } |
| 2875 | |
| 2876 | const char* rcli_get_info(RCLIHandle handle) { |
| 2877 | if (!handle) return "{}"; |
| 2878 | auto* engine = static_cast<RCLIEngine*>(handle); |
| 2879 | |
| 2880 | int num_actions = engine->actions.num_actions(); |
| 2881 | |
| 2882 | engine->last_info = "{" |
| 2883 | "\"name\": \"RCLI\"," |
| 2884 | "\"version\": \"0.1.0\"," |
| 2885 | "\"engine\": \"llama.cpp + sherpa-onnx\"," |
| 2886 | "\"actions\": " + std::to_string(num_actions) + "," |
| 2887 | "\"on_device\": true" |
| 2888 | "}"; |
| 2889 | |
| 2890 | return engine->last_info.c_str(); |
| 2891 | } |
| 2892 | |
| 2893 | float rcli_get_audio_level(RCLIHandle handle) { |
| 2894 | if (!handle) return 0.0f; |