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

Function reload_subagents

src/apps/desktop/src/api/subagent_api.rs:375–386  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    request: ReloadSubagentsRequest,
)

Source from the content-addressed store, hash-verified

373
374#[tauri::command]
375pub async fn reload_subagents(
376 state: State<'_, AppState>,
377 request: ReloadSubagentsRequest,
378) -> Result<(), String> {
379 let workspace_root = workspace_root_from_request(request.workspace_path.as_deref())
380 .ok_or_else(|| "workspacePath is required to reload project subagents".to_string())?;
381 state
382 .agent_registry
383 .load_custom_subagents(workspace_root.as_path())
384 .await;
385 Ok(())
386}
387
388#[tauri::command]
389pub async fn list_agent_tool_names(state: State<'_, AppState>) -> Result<Vec<String>, String> {

Callers

nothing calls this directly

Calls 2

load_custom_subagentsMethod · 0.80

Tested by

no test coverage detected