File size: 378 Bytes
7516245
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from typing_extensions import TypedDict
from typing import List, Annotated
import operator
from LLMS.models import Section

class BlogState(TypedDict):
    content: str
    sections: List[Section]
    completed_sections: Annotated[List, operator.add]
    final_report: str

class WorkerState(TypedDict):
    section: Section
    completed_sections: Annotated[List, operator.add]