Documentation Index
Fetch the complete documentation index at: https://dev.docs.inworld.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview > Inworld Graph Runtime Data > Inworld Graph Runtime Data Intent
Class: 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
Reference
AddIntentTextEmbeddingAsset
Adds a new intent to the runtime data, with an option to replace an existing set.
Examples
void AddIntentTextEmbeddingAsset(
FName Id,
const UInworldTextEmbeddingAsset* Intent,
bool Replace
)
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
void AddIntentTextEmbeddings(
FName Id,
const TArray<FInworldTextEmbedding>& Intent,
bool Replace
)
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
void DisableIntent(FName Id)
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
void EnableIntent(FName Id)
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
TArray<FName> GetIntentMapKeys()
Returns
Type: TArray<FName>
RemoveIntent
Removes a specific intent identified by its unique ID.
Examples
void RemoveIntent(FName Id)
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
void Set(const TMap<FName, UInworldTextEmbeddingAsset*>& IntentAssets)
Parameters
| Parameter | Type | Description |
|---|
| IntentAssets | const TMap<FName, UInworldTextEmbeddingAsset*>& | Map of intent identifiers to their corresponding text embedding assets |