File size: 466 Bytes
43e7de8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import annotations

from typing import Any, Dict, List, Optional, TypedDict


class LegalRagState(TypedDict, total=False):
    question: str
    graph: Dict[str, Any]
    filters: Dict[str, Any]
    query_profile: Dict[str, Any]
    retrieval_result: Dict[str, Any]
    passages: List[Dict[str, Any]]
    context_grade: Dict[str, Any]
    answer: str
    sources: List[Dict[str, Any]]
    citation_validation: Dict[str, Any]
    error: Optional[str]