Source code for azure.cognitiveservices.knowledge.qnamaker.models.query_context_dto_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class QueryContextDTO(Model): """Context object with previous QnA's information. :param previous_qna_id: Previous QnA Id - qnaId of the top result. :type previous_qna_id: int :param previous_user_query: Previous user query. :type previous_user_query: str """ _attribute_map = { 'previous_qna_id': {'key': 'previousQnaId', 'type': 'int'}, 'previous_user_query': {'key': 'previousUserQuery', 'type': 'str'}, } def __init__(self, *, previous_qna_id: int=None, previous_user_query: str=None, **kwargs) -> None: super(QueryContextDTO, self).__init__(**kwargs) self.previous_qna_id = previous_qna_id self.previous_user_query = previous_user_query