MCPcopy Create free account
hub / github.com/GCWing/BitFun / test_ai_connection

Function test_ai_connection

src/apps/desktop/src/api/commands.rs:1087–1090  ·  view source on GitHub ↗
(state: State<'_, AppState>)

Source from the content-addressed store, hash-verified

1085
1086#[tauri::command]
1087pub async fn test_ai_connection(state: State<'_, AppState>) -> Result<bool, String> {
1088 let ai_client = state.ai_client.read().await;
1089 Ok(ai_client.is_some())
1090}
1091
1092#[tauri::command]
1093pub async fn initialize_ai(state: State<'_, AppState>) -> Result<String, String> {

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected