Skip to main content
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. AddIntentTextEmbeddingAsset Blueprint Node

Examples

void AddIntentTextEmbeddingAsset(
    FName Id,
    const UInworldTextEmbeddingAsset* Intent,
    bool Replace
)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier of the intent set to be added.
Intentconst UInworldTextEmbeddingAsset*The intent to be added.
ReplaceboolIf 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. AddIntentTextEmbeddings Blueprint Node

Examples

void AddIntentTextEmbeddings(
    FName Id,
    const TArray<FInworldTextEmbedding>& Intent,
    bool Replace
)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier of the intent set to be added.
Intentconst TArray<FInworldTextEmbedding>&The intent to be added.
ReplaceboolIf true, replaces an existing intent with the same ID. Defaults to false.

DisableIntent

Disables a specific intent within the runtime data. DisableIntent Blueprint Node

Examples

void DisableIntent(FName Id)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier for the intent to be disabled.

EnableIntent

Enables a specific intent within the runtime data. EnableIntent Blueprint Node

Examples

void EnableIntent(FName Id)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier for the intent to be enabled.

GetIntentMapKeys

Retrieves all intent set IDs currently stored in the runtime data. GetIntentMapKeys Blueprint Node

Examples

TArray<FName> GetIntentMapKeys()

Returns

Type: TArray<FName>

RemoveIntent

Removes a specific intent identified by its unique ID. RemoveIntent Blueprint Node

Examples

void RemoveIntent(FName Id)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier of the intent to be removed.

Set

Sets the initial intent assets for the runtime data. Set Blueprint Node

Examples

void Set(const TMap<FName, UInworldTextEmbeddingAsset*>& IntentAssets)

Parameters

ParameterTypeDescription
IntentAssetsconst TMap<FName, UInworldTextEmbeddingAsset*>&Map of intent identifiers to their corresponding text embedding assets