File size: 322 Bytes
ebb8326
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""State schema definitions for the RAG pipeline graph."""

from typing import TypedDict


class GraphState(TypedDict, total=False):
    """State schema for the RAG pipeline graph."""

    question_id: str
    question: str
    all_choices: list[str]
    route: str
    context: str
    answer: str
    raw_response: str