File size: 363 Bytes
800af66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from typing import TypedDict

class RecommendationState(TypedDict):
    """State that flows through the graph"""
    user_query: str
    session_id: str

    available_columns: list
    available_categories: list
    sample_products: list

    sql_query: str

    validation_errors: list
    query_results: list

    formatted_response: str
    error_message: str