File size: 324 Bytes
b1d65a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from typing import TypedDict, Optional

class GraphState(TypedDict):
    query: str
    doc_id:str

    route: Optional[str]

    context: Optional[str]
    sources: Optional[str]

    history: Optional[str]

    evaluation: Optional[dict]

    general_answer: Optional[str]

    final_answer: Optional[str]