Add callback to UI binding for AIDA client event

We want to be able to handle error that come from the API.

Back end CL:
https://chromium-review.googlesource.com/c/chromium/src/+/5713262

Bug: 352678676
Change-Id: If8031b3f8a97244abd5a82762752ae833438998c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5714672
Commit-Queue: Nikolay Vitkov <[email protected]>
Reviewed-by: Alex Rudenko <[email protected]>
diff --git a/front_end/devtools_compatibility.js b/front_end/devtools_compatibility.js
index 3d65358..72fe169 100644
--- a/front_end/devtools_compatibility.js
+++ b/front_end/devtools_compatibility.js
@@ -1146,10 +1146,10 @@
 
   /**
    * @param {string} request
-   * @param {function(!InspectorFrontendHostAPI.DoAidaConversationResult): void} cb
+   * @param {function(!InspectorFrontendHostAPI.AidaClientResult): void} cb
    */
-  registerAidaClientEvent(request) {
-    DevToolsAPI.sendMessageToEmbedder('registerAidaClientEvent', [request]);
+  registerAidaClientEvent(request, cb) {
+    DevToolsAPI.sendMessageToEmbedder('registerAidaClientEvent', [request], cb);
   }
 };