File size: 349 Bytes
1c1e321
 
 
 
abb1a7f
 
 
 
 
1c1e321
abb1a7f
1c1e321
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from typing import List, Optional
from pydantic import BaseModel, HttpUrl


class LinkInfo(BaseModel):
    file_name: str
    link: HttpUrl


class EditorRequest(BaseModel):
    links: Optional[List[LinkInfo]]  # List of LinkInfo objects
    script: str


class TaskInfo(BaseModel):
    task_id: str
    progress: int
    completed_tasks: List[str]