File size: 872 Bytes
0827183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

from typing import List
from msrest.serialization import Model
from .query_result import QueryResult


class QueryResults(Model):
    """Contains answers for a user query."""

    _attribute_map = {
        "answers": {"key": "answers", "type": "[QueryResult]"},
        "active_learning_enabled": {"key": "activeLearningEnabled", "type": "bool"},
    }

    def __init__(
        self, answers: List[QueryResult], active_learning_enabled: bool = None, **kwargs
    ):
        """
        Parameters:
        -----------

        answers: The answers for a user query.

        active_learning_enabled: The active learning enable flag.
        """
        super().__init__(**kwargs)
        self.answers = answers
        self.active_learning_enabled = active_learning_enabled