Create core/state.py
Browse files- 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
|