1# @ohos.app.ability.insightIntent (insightIntent)
2
3The **insightIntent** module provides APIs for InsightIntent calls.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8>
9> The APIs of this module can be used only in the stage model.
10
11## Modules to Import
12
13```ts
14import { insightIntent } from '@kit.AbilityKit';
15```
16
17## ExecuteMode
18
19Enumerates the InsightIntent call execution modes.
20
21**System capability**: SystemCapability.Ability.AbilityRuntime.Core
22
23| Name| Value| Description|
24| -------- | -------- | -------- |
25| UI_ABILITY_FOREGROUND | 0 | Display a UIAbility in the foreground.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
26| UI_ABILITY_BACKGROUND | 1 | Start a UIAbility in the background.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
27| UI_EXTENSION_ABILITY | 2 | Start a UIExtensionAbility.|
28
29## ExecuteResult
30
31Defines the InsightIntent call execution result.
32
33**Atomic service API**: This API can be used in atomic services since API version 11.
34
35**System capability**: SystemCapability.Ability.AbilityRuntime.Core
36
37| Name| Type| Read-only| Optional| Description|
38| -------- | -------- | -------- | -------- | -------- |
39| code | number | No| No| Error code returned.|
40| result | Record<string, Object> | No| Yes| Execution result returned.|
41