Jovo Speech Context Types


#1

Hi Jovo Team,
just a small question upon the speech and reprompt i get from my prev context:
jovo.$user.$context.prev[0].response.speech is from type “string” or “speechBuilder” according to the compiler. We are using the speechBuilder but the type of prev speech still is string. Is there a possibility that prev speech will return a speech builder (my code would fail in this case)?
One more thing: jovo.$user.getPrevReprompt(0) says that it is deprecated and i should get the according property from the prev request object. But the reprompt is on the response right?
Thanks =)
André


#2

I think it will always be a string because data is stored in a database which doesn’t know the speechBuilder type.