MCPcopy Create free account
hub / github.com/RunanywhereAI/RCLI / rcli_get_info

Function rcli_get_info

src/api/rcli_api.cpp:2876–2891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2874}
2875
2876const 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
2893float rcli_get_audio_level(RCLIHandle handle) {
2894 if (!handle) return 0.0f;

Callers 1

test_apiFunction · 0.85

Calls 1

num_actionsMethod · 0.80

Tested by 1

test_apiFunction · 0.68