Skip to main content
Overview > Inworld Graph Runtime Data > Inworld Graph Runtime Data Event History Class: UInworldGraphRuntimeData_EventHistory | Inherits from: UInworldGraphRuntimeData Runtime data class for managing event history in Inworld graphs. This class creates and manages an event history system that tracks various types of events (primarily speech events) during graph execution. It provides functionality for adding, retrieving, and formatting event history with configurable capacity and formatting options.

Methods

Reference

AddGenericEvent

Adds a generic event to the event history. This function stores the provided text event and appends it to the history. If the history reaches its capacity, the oldest event is removed. AddGenericEvent Blueprint Node

Examples

void AddGenericEvent(const FString& Event)

Parameters

ParameterTypeDescription
Eventconst FString&The text event to be added to the history.

AddSpeechEvent

Adds a speech event to the event history. This function records a speech event, storing the agent’s name and utterance. The event is formatted based on the SpeechEventFormatter and appended to the history. If the history reaches its capacity, the oldest event is removed. AddSpeechEvent Blueprint Node

Examples

void AddSpeechEvent(const FInworldEventSpeech& Speech)

Parameters

ParameterTypeDescription
Speechconst FInworldEventSpeech&The speech event data containing the agent’s name and utterance.

Clear

Clear the event history. This function removes all stored events and resets the history string. Clear Blueprint Node

Examples

void Clear()

DebugDumpEventHistory

Outputs debug information about the event history to the console. This function prints detailed information about the current event history state, including all stored events, for debugging and development purposes. DebugDumpEventHistory Blueprint Node

Examples

void DebugDumpEventHistory()

GetHistoryEventData

Retrieves the speech event history as structured data. GetHistoryEventData Blueprint Node

Examples

FInworldHistoryEventData GetHistoryEventData()

Returns

Type: FInworldHistoryEventData Description: Structured event history data containing all speech events

GetHistoryString

Retrieves the full event history as a formatted string. This function returns a concatenated string representation of all stored events. GetHistoryString Blueprint Node

Examples

const FString& GetHistoryString()

Returns

Type: const FString& Description: A reference to the history string containing all recorded events.

GetSpeechEvents

Retrieves the speech event history. This function returns a representation of all stored speech events. GetSpeechEvents Blueprint Node

Examples

const TArray<FInworldEventSpeech>& GetSpeechEvents()

Returns

Type: const TArray<FInworldEventSpeech>& Description: A reference to the history containing all recorded speech events.

Set

Sets the initial event history data table. Set Blueprint Node

Examples

void Set(UDataTable* InEventHistoryTable)

Parameters

ParameterTypeDescription
InEventHistoryTableUDataTable*The data table containing initial event history entries