(
state: State<'_, AppState>,
agent_type: String,
)
| 91 | |
| 92 | #[tauri::command] |
| 93 | pub async fn get_agent_config( |
| 94 | state: State<'_, AppState>, |
| 95 | agent_type: String, |
| 96 | ) -> AppResult<Option<AgentConfig>> { |
| 97 | agent_service::get_agent_config(state.pool(), &agent_type).await |
| 98 | } |
| 99 | |
| 100 | #[tauri::command] |
| 101 | pub async fn upsert_agent_config( |