File size: 979 Bytes
f27bb68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from dataclasses import dataclass
from typing import Dict, List, Optional


@dataclass
class Section:
    section_id: str
    title: str
    parent_id: Optional[str]


@dataclass
class PageMeta:
    page_id: str
    guideline_id: str
    section_id: str
    title: str
    summary: str
    intent_ids: List[str]


@dataclass
class Passage:
    passage_id: str
    guideline_id: str
    page_id: str
    section_id: str
    order_in_section: int
    text: str
    source_page: int
    source_lines: List[int]
    tags: List[str]


@dataclass
class IntentMeta:
    intent_id: str
    name: str
    description: str
    topic_group: str
    guideline_ids: List[str]
    primary_section_ids: List[str]
    example_questions: List[str]


@dataclass
class ClarifyingChoice:
    id: str
    text: str
    update_state: Dict[str, object]


@dataclass
class ClarifyingQuestion:
    question_id: str
    applies_to_topic_groups: List[str]
    text: str
    choices: List[ClarifyingChoice]