You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When getting the value of a matched parameter in a state body, e.g. temperature = predicted_intent.get_parameter('temperature').value
we always obtain a str object, therefore, we cannot do if temperature > 0, since it is a string object. We can simply cast the object to its proper type, but it adds complexity to the body of the state.
We could implement a flexible type value, at least for the following basic types:
str
int
float
datetime
bool (can a user actually write a bool value in a message?)
The text was updated successfully, but these errors were encountered:
When getting the value of a matched parameter in a state body, e.g.
temperature = predicted_intent.get_parameter('temperature').value
we always obtain a
str
object, therefore, we cannot doif temperature > 0
, since it is a string object. We can simply cast the object to its proper type, but it adds complexity to the body of the state.We could implement a flexible type value, at least for the following basic types:
The text was updated successfully, but these errors were encountered: