Usage
Methods
Updates the conversation state for the current user.Parameters:
keyValue(object): Key-value pairs to merge into the user’s state
Promise<void>Retrieves a specific value from the user’s state. Supports nested properties using dot notation.Parameters:
prop(string): Property name or path (e.g., “user.preferences.theme”)
anyReturns the entire state object for the current user.Returns:
objectClears all state data for the current user.Returns:
void