Spaces:
Sleeping
Sleeping
Download app/agents/state.py from ShetyeRupa/DocIntel: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/spaces/ShetyeRupa/DocIntel/resolve/main/app/agents/state.py
- Command line
-
hf download hf://spaces/ShetyeRupa/DocIntel/app/agents/state.py
-
curl -L -o state.py https://huggingface.co/spaces/ShetyeRupa/DocIntel/resolve/main/app/agents/state.py
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] |