File size: 302 Bytes
9cccf74 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from typing import TypedDict, Literal
import pandas as pd
from PIL import Image
class AgentState(TypedDict, total=False):
question: str
sql: str
df: pd.DataFrame
chart_pil: Image.Image
narrative: str
route: Literal["sql", "chat"]
history: list[tuple[str, str]]
|