pub fn dispatch(
backend_name: &str,
req: &Request,
config: &AiConfig,
ctx: &BackendCtx<'_>,
registry: &Registry,
) -> Result<Response, String>Expand description
Resolves the named backend (built-in or config-defined cmd) and
invokes it. Returns the Response or a tagged error string.