File size: 361 Bytes
7a4d005
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from typing import List, TypedDict


class GraphState(TypedDict):
    """
    Represents state of a graph
    Attributes:
        question: question
        generation: LLM generation
        web_search: whether to add search or not
        documents: list of documents
    """
    question: str
    generation: str
    web_search: bool
    documents: List[str]