File size: 1,688 Bytes
a7fd580
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eab0119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b5897db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b690278
 
d7e3980
b690278
2568a5f
b690278
b5897db
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
from __future__ import annotations

from dataclasses import dataclass
from typing import Any, Dict, List, Optional


@dataclass(frozen=True)
class RunSummary:
    run_id: str
    mode: str
    status: str
    created_at: str
    ended_at: str
    title: Optional[str] = None
    input_summary: Optional[str] = None


@dataclass(frozen=True)
class RunRecord:
    run_id: str
    mode: str
    status: str
    created_at: str
    ended_at: str
    sealed_at: str
    config: Dict[str, Any]
    messages: List[Dict[str, Any]]
    analyses: Dict[str, Dict[str, Any]]
    persona_snapshots: Dict[str, Dict[str, Any]]
    title: Optional[str] = None
    input_summary: Optional[str] = None


@dataclass(frozen=True)
class PersonaSummary:
    persona_id: str
    kind: str
    name: str
    is_default: bool = False
    is_deleted: bool = False


@dataclass(frozen=True)
class PersonaRecord:
    persona_id: str
    kind: str
    name: str
    is_default: bool
    is_deleted: bool
    current_version_id: str
    created_at: str
    updated_at: str
    attributes: List[str]
    question_bank_items: List[str]


@dataclass(frozen=True)
class AnalysisTemplateSummary:
    template_id: str
    name: str
    is_default: bool = False
    is_deleted: bool = False


@dataclass(frozen=True)
class AnalysisTemplateRecord:
    template_id: str
    name: str
    is_default: bool
    is_deleted: bool
    current_version_id: str
    created_at: str
    updated_at: str
    bottom_up_instructions: str
    bottom_up_attributes: List[str]
    rubric_instructions: str
    rubric_attributes: List[str]
    top_down_instructions: str
    top_down_attributes: List[str]
    categories: List[Dict[str, str]]