@@ -1388,14 +1388,17 @@ class MessageOutput(object):
13881388 actions requested by the dialog node.
13891389 :attr MessageOutputDebug debug: (optional) Additional detailed information about a
13901390 message response and how it was generated.
1391+ :attr object user_defined: (optional) Arbitrary variables that can be read and written
1392+ to by a particular skill within the Assistant.
13911393 """
13921394
13931395 def __init__ (self ,
13941396 generic = None ,
13951397 intents = None ,
13961398 entities = None ,
13971399 actions = None ,
1398- debug = None ):
1400+ debug = None ,
1401+ user_defined = None ):
13991402 """
14001403 Initialize a MessageOutput object.
14011404
@@ -1410,12 +1413,15 @@ def __init__(self,
14101413 any actions requested by the dialog node.
14111414 :param MessageOutputDebug debug: (optional) Additional detailed information about
14121415 a message response and how it was generated.
1416+ :param object user_defined: (optional) Arbitrary variables that can be read and
1417+ written to by a particular skill within the Assistant.
14131418 """
14141419 self .generic = generic
14151420 self .intents = intents
14161421 self .entities = entities
14171422 self .actions = actions
14181423 self .debug = debug
1424+ self .user_defined = user_defined
14191425
14201426 @classmethod
14211427 def _from_dict (cls , _dict ):
@@ -1440,6 +1446,8 @@ def _from_dict(cls, _dict):
14401446 ]
14411447 if 'debug' in _dict :
14421448 args ['debug' ] = MessageOutputDebug ._from_dict (_dict .get ('debug' ))
1449+ if 'user_defined' in _dict :
1450+ args ['user_defined' ] = _dict .get ('user_defined' )
14431451 return cls (** args )
14441452
14451453 def _to_dict (self ):
@@ -1455,6 +1463,8 @@ def _to_dict(self):
14551463 _dict ['actions' ] = [x ._to_dict () for x in self .actions ]
14561464 if hasattr (self , 'debug' ) and self .debug is not None :
14571465 _dict ['debug' ] = self .debug ._to_dict ()
1466+ if hasattr (self , 'user_defined' ) and self .user_defined is not None :
1467+ _dict ['user_defined' ] = self .user_defined
14581468 return _dict
14591469
14601470 def __str__ (self ):
0 commit comments