4 from dialogflow_ros
import DialogflowClient
6 from dialogflow_v2beta1.types
import EventInput, QueryInput
7 from google.protobuf
import struct_pb2
10 if __name__ ==
'__main__':
11 rospy.init_node(
'test_intent_text', log_level=rospy.DEBUG)
12 dc = DialogflowClient()
27 event_name =
'objects_found' 28 parameters = DialogflowParameter(param_name=
'objects', value=[
'snack',
'milk'])
29 event_input = DialogflowEvent(event_name=event_name,
30 parameters=[parameters])
31 print(dc.event_intent(event_input))