UInworldGraphRuntimeData_Intent | Inherits from: UInworldGraphRuntimeData
Runtime data class for managing intent recognition in Inworld graphs. This class compiles and stores all necessary data for intent matching operations, including text embeddings for intent recognition, enable/disable states, and asset management. It supports dynamic adding, removing, and toggling of intents during graph execution.
Methods
- AddIntentTextEmbeddingAsset
- AddIntentTextEmbeddings
- DisableIntent
- EnableIntent
- GetIntentMapKeys
- RemoveIntent
- Set
Reference
AddIntentTextEmbeddingAsset
Adds a new intent to the runtime data, with an option to replace an existing set.
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Id | FName | The unique identifier of the intent set to be added. | 
| Intent | const UInworldTextEmbeddingAsset* | The intent to be added. | 
| Replace | bool | If true, replaces an existing intent with the same ID. Defaults to false. | 
AddIntentTextEmbeddings
Adds a new intent to the runtime data, with an option to replace an existing set.
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Id | FName | The unique identifier of the intent set to be added. | 
| Intent | const TArray<FInworldTextEmbedding>& | The intent to be added. | 
| Replace | bool | If true, replaces an existing intent with the same ID. Defaults to false. | 
DisableIntent
Disables a specific intent within the runtime data.
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Id | FName | The unique identifier for the intent to be disabled. | 
EnableIntent
Enables a specific intent within the runtime data.
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Id | FName | The unique identifier for the intent to be enabled. | 
GetIntentMapKeys
Retrieves all intent set IDs currently stored in the runtime data.
Examples
Returns
Type:TArray<FName>
RemoveIntent
Removes a specific intent identified by its unique ID.
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Id | FName | The unique identifier of the intent to be removed. | 
Set
Sets the initial intent assets for the runtime data.
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| IntentAssets | const TMap<FName, UInworldTextEmbeddingAsset*>& | Map of intent identifiers to their corresponding text embedding assets |