DocIntel / app /agents /state.py
Rupali Ravindra Shetye
DocIntel v1.0 - Full production release
905e3b7
Raw History Blame Contribute Delete
339 Bytes
from typing import TypedDict, List, Optional, Dict, Any
class AgentState(TypedDict):
"""State for the LangGraph agent"""
query: str
intent: str # "qa", "summary", "email", "extract"
documents: List[Dict[str, Any]]
response: str
confidence: float
validated: bool
actions: List[str]
error: Optional[str]