(ai_client_factory: Arc<AIClientFactory>)
| 1457 | } |
| 1458 | |
| 1459 | async fn init_function_agents(ai_client_factory: Arc<AIClientFactory>) -> anyhow::Result<()> { |
| 1460 | let _ = bitfun_core::function_agents::git_func_agent::GitFunctionAgent::new( |
| 1461 | ai_client_factory.clone(), |
| 1462 | ); |
| 1463 | |
| 1464 | let _ = bitfun_core::function_agents::startchat_func_agent::StartchatFunctionAgent::new( |
| 1465 | ai_client_factory.clone(), |
| 1466 | ); |
| 1467 | |
| 1468 | Ok(()) |
| 1469 | } |
| 1470 | |
| 1471 | fn init_mcp_servers(app_handle: tauri::AppHandle) { |
| 1472 | tokio::spawn(async move { |