Dinesh310 commited on
Commit
ee784d3
·
verified ·
1 Parent(s): 4432a1c

Create core/state.py

Browse files
Files changed (1) hide show
  1. src/core/state.py +7 -0
src/core/state.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from typing import List, TypedDict
2
+ from langchain_core.documents import Document
3
+
4
+ class GraphState(TypedDict):
5
+ question: str
6
+ context: List[Document]
7
+ answer: str