loadRecentInteractionData

abstract suspend fun loadRecentInteractionData(userId: String, limit: Int, type: String? = null): List<InteractionData>(source)

Loads recent interaction data for a user, optionally filtered by type. Useful for providing context to the LearningEngine for prediction.

Return

A list of recent InteractionData.

Parameters

userId

The ID of the user.

limit

The maximum number of interactions to load.

type

Optional type to filter by.