@@ -1219,17 +1219,19 @@ class MessageContextSkill():
12191219
12201220 :attr dict user_defined: (optional) Arbitrary variables that can be read and
12211221 written by a particular skill.
1222- :attr dict system: (optional) For internal use only .
1222+ :attr dict system: (optional) System context data used by the skill .
12231223 """
12241224
1225- def __init__ (self , * , user_defined : dict = None ,
1225+ def __init__ (self ,
1226+ * ,
1227+ user_defined : dict = None ,
12261228 system : dict = None ) -> None :
12271229 """
12281230 Initialize a MessageContextSkill object.
12291231
12301232 :param dict user_defined: (optional) Arbitrary variables that can be read
12311233 and written by a particular skill.
1232- :param dict system: (optional) For internal use only .
1234+ :param dict system: (optional) System context data used by the skill .
12331235 """
12341236 self .user_defined = user_defined
12351237 self .system = system
@@ -1488,49 +1490,68 @@ class MessageInputOptions():
14881490 Optional properties that control how the assistant responds.
14891491
14901492 :attr bool debug: (optional) Whether to return additional diagnostic
1491- information. Set to `true` to return additional information under the
1492- `output.debug` key.
1493+ information. Set to `true` to return additional information in the
1494+ `output.debug` property. If you also specify **return_context**=`true`, the
1495+ returned skill context includes the `system.state` property.
14931496 :attr bool restart: (optional) Whether to restart dialog processing at the root
14941497 of the dialog, regardless of any previously visited nodes. **Note:** This does
14951498 not affect `turn_count` or any other context variables.
14961499 :attr bool alternate_intents: (optional) Whether to return more than one intent.
14971500 Set to `true` to return all matching intents.
14981501 :attr bool return_context: (optional) Whether to return session context with the
1499- response. If you specify `true`, the response will include the `context`
1500- property.
1502+ response. If you specify `true`, the response includes the `context` property.
1503+ If you also specify **debug**=`true`, the returned skill context includes the
1504+ `system.state` property.
1505+ :attr bool export: (optional) Whether to return session context, including full
1506+ conversation state. If you specify `true`, the response includes the `context`
1507+ property, and the skill context includes the `system.state` property.
1508+ **Note:** If **export**=`true`, the context is returned regardless of the value
1509+ of **return_context**.
15011510 """
15021511
15031512 def __init__ (self ,
15041513 * ,
15051514 debug : bool = None ,
15061515 restart : bool = None ,
15071516 alternate_intents : bool = None ,
1508- return_context : bool = None ) -> None :
1517+ return_context : bool = None ,
1518+ export : bool = None ) -> None :
15091519 """
15101520 Initialize a MessageInputOptions object.
15111521
15121522 :param bool debug: (optional) Whether to return additional diagnostic
1513- information. Set to `true` to return additional information under the
1514- `output.debug` key.
1523+ information. Set to `true` to return additional information in the
1524+ `output.debug` property. If you also specify **return_context**=`true`, the
1525+ returned skill context includes the `system.state` property.
15151526 :param bool restart: (optional) Whether to restart dialog processing at the
15161527 root of the dialog, regardless of any previously visited nodes. **Note:**
15171528 This does not affect `turn_count` or any other context variables.
15181529 :param bool alternate_intents: (optional) Whether to return more than one
15191530 intent. Set to `true` to return all matching intents.
15201531 :param bool return_context: (optional) Whether to return session context
1521- with the response. If you specify `true`, the response will include the
1522- `context` property.
1532+ with the response. If you specify `true`, the response includes the
1533+ `context` property. If you also specify **debug**=`true`, the returned
1534+ skill context includes the `system.state` property.
1535+ :param bool export: (optional) Whether to return session context, including
1536+ full conversation state. If you specify `true`, the response includes the
1537+ `context` property, and the skill context includes the `system.state`
1538+ property.
1539+ **Note:** If **export**=`true`, the context is returned regardless of the
1540+ value of **return_context**.
15231541 """
15241542 self .debug = debug
15251543 self .restart = restart
15261544 self .alternate_intents = alternate_intents
15271545 self .return_context = return_context
1546+ self .export = export
15281547
15291548 @classmethod
15301549 def from_dict (cls , _dict : Dict ) -> 'MessageInputOptions' :
15311550 """Initialize a MessageInputOptions object from a json dictionary."""
15321551 args = {}
1533- valid_keys = ['debug' , 'restart' , 'alternate_intents' , 'return_context' ]
1552+ valid_keys = [
1553+ 'debug' , 'restart' , 'alternate_intents' , 'return_context' , 'export'
1554+ ]
15341555 bad_keys = set (_dict .keys ()) - set (valid_keys )
15351556 if bad_keys :
15361557 raise ValueError (
@@ -1544,6 +1565,8 @@ def from_dict(cls, _dict: Dict) -> 'MessageInputOptions':
15441565 args ['alternate_intents' ] = _dict .get ('alternate_intents' )
15451566 if 'return_context' in _dict :
15461567 args ['return_context' ] = _dict .get ('return_context' )
1568+ if 'export' in _dict :
1569+ args ['export' ] = _dict .get ('export' )
15471570 return cls (** args )
15481571
15491572 @classmethod
@@ -1563,6 +1586,8 @@ def to_dict(self) -> Dict:
15631586 _dict ['alternate_intents' ] = self .alternate_intents
15641587 if hasattr (self , 'return_context' ) and self .return_context is not None :
15651588 _dict ['return_context' ] = self .return_context
1589+ if hasattr (self , 'export' ) and self .export is not None :
1590+ _dict ['export' ] = self .export
15661591 return _dict
15671592
15681593 def _to_dict (self ):
@@ -1836,8 +1861,8 @@ class MessageResponse():
18361861
18371862 :attr MessageOutput output: Assistant output to be rendered or processed by the
18381863 client.
1839- :attr MessageContext context: (optional) State information for the conversation.
1840- The context is stored by the assistant on a per-session basis. You can use this
1864+ :attr MessageContext context: (optional) Context data for the conversation. The
1865+ context is stored by the assistant on a per-session basis. You can use this
18411866 property to access context variables.
18421867 **Note:** The context is included in message responses only if
18431868 **return_context**=`true` in the message request.
@@ -1852,7 +1877,7 @@ def __init__(self,
18521877
18531878 :param MessageOutput output: Assistant output to be rendered or processed
18541879 by the client.
1855- :param MessageContext context: (optional) State information for the
1880+ :param MessageContext context: (optional) Context data for the
18561881 conversation. The context is stored by the assistant on a per-session
18571882 basis. You can use this property to access context variables.
18581883 **Note:** The context is included in message responses only if
@@ -3191,7 +3216,9 @@ class SearchResultMetadata():
31913216 indicates a greater match to the query parameters.
31923217 """
31933218
3194- def __init__ (self , * , confidence : float = None ,
3219+ def __init__ (self ,
3220+ * ,
3221+ confidence : float = None ,
31953222 score : float = None ) -> None :
31963223 """
31973224 Initialize a SearchResultMetadata object.
0 commit comments