@@ -4394,23 +4394,55 @@ class DialogNodeOutputOptionsElementValue(object):
43944394 user selects the corresponding option.
43954395
43964396 :attr MessageInput input: (optional) An input object that includes the input text.
4397+ :attr list[RuntimeIntent] intents: (optional) An array of intents to be used while
4398+ processing the input.
4399+ **Note:** This property is supported for backward compatibility with applications that
4400+ use the v1 **Get response to user input** method.
4401+ :attr list[RuntimeEntity] entities: (optional) An array of entities to be used while
4402+ processing the user input.
4403+ **Note:** This property is supported for backward compatibility with applications that
4404+ use the v1 **Get response to user input** method.
43974405 """
43984406
4399- def __init__ (self , input = None ):
4407+ def __init__ (self , input = None , intents = None , entities = None ):
44004408 """
44014409 Initialize a DialogNodeOutputOptionsElementValue object.
44024410
44034411 :param MessageInput input: (optional) An input object that includes the input
44044412 text.
4413+ :param list[RuntimeIntent] intents: (optional) An array of intents to be used
4414+ while processing the input.
4415+ **Note:** This property is supported for backward compatibility with applications
4416+ that use the v1 **Get response to user input** method.
4417+ :param list[RuntimeEntity] entities: (optional) An array of entities to be used
4418+ while processing the user input.
4419+ **Note:** This property is supported for backward compatibility with applications
4420+ that use the v1 **Get response to user input** method.
44054421 """
44064422 self .input = input
4423+ self .intents = intents
4424+ self .entities = entities
44074425
44084426 @classmethod
44094427 def _from_dict (cls , _dict ):
44104428 """Initialize a DialogNodeOutputOptionsElementValue object from a json dictionary."""
44114429 args = {}
4430+ validKeys = ['input' , 'intents' , 'entities' ]
4431+ badKeys = set (_dict .keys ()) - set (validKeys )
4432+ if badKeys :
4433+ raise ValueError (
4434+ 'Unrecognized keys detected in dictionary for class DialogNodeOutputOptionsElementValue: '
4435+ + ', ' .join (badKeys ))
44124436 if 'input' in _dict :
44134437 args ['input' ] = MessageInput ._from_dict (_dict .get ('input' ))
4438+ if 'intents' in _dict :
4439+ args ['intents' ] = [
4440+ RuntimeIntent ._from_dict (x ) for x in (_dict .get ('intents' ))
4441+ ]
4442+ if 'entities' in _dict :
4443+ args ['entities' ] = [
4444+ RuntimeEntity ._from_dict (x ) for x in (_dict .get ('entities' ))
4445+ ]
44144446 return cls (** args )
44154447
44164448 def _to_dict (self ):
0 commit comments