Spaces:
Sleeping
Sleeping
File size: 388 Bytes
703a80e b1d65a7 703a80e b1d65a7 703a80e b1d65a7 e8cbb38 b1d65a7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # app/graph/state.py
from typing import Optional, List, TypedDict
class GraphState(TypedDict):
query: str
doc_id: str
route: Optional[str]
context: Optional[str]
sources: Optional[List]
score: Optional[float]
history: Optional[str]
evaluation: Optional[dict]
general_answer: Optional[str]
final_answer: Optional[str] |