File size: 285 Bytes
4adaa35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from typing import List

from pydantic import BaseModel
from typing_extensions import TypedDict


class SummaryReq(BaseModel):
    key: str
    id: str
    text: str


class Page(TypedDict):
    id: str
    text: str


class SummariesReq(BaseModel):
    key: str
    pages: List[Page]