@@ -98,7 +98,7 @@ To start with, [configure dependency](https://developer.harmonyos.com/cn/docs/do
After configuring the dependency on the HAR, you can reference ArkUI components exported from the HAR by using **import**. The sample code is as follows:
```js
// entry/src/main/ets/pages/index.ets
import{MainPage}from"@ohos/library"
import{MainPage}from"library"
@Entry
@Component
...
...
@@ -123,8 +123,8 @@ struct Index {
To reference the TS classes and methods exported from the HAR, use **import** as follows:
@@ -183,6 +183,7 @@ The AI subsystem is the part of OpenHarmony that provides native distributed AI
* returns a non-zero value otherwise.
*/
int32_t Destroy();
}
```
>**Note**: The sequence for the SDK to call client APIs of the AI engine is as follows: AieClientInit -\> AieClientPrepare -\> AieClientSyncProcess/AieClientAsyncProcess -\> AieClientRelease -\> AieClientDestroy. An exception will be thrown if the call sequence is violated. In addition, all these APIs must be called. Otherwise, a memory leakage may occur.
In a JavaScript project paradigm, component functions are configured in HML files. To reference an HML page in an HAR, first import the page through the **<element>** tag in the HML file of the project. The sample code is as follows: