Download src/models/states.py from DataEyond/Agentic-Service-Data-Eyond-Catalog: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/refs%2Fpr%2F21/src/models/states.py
- Command line
-
hf download hf://spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog@refs/pr/21/src/models/states.py
-
curl -L -o states.py https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/refs%2Fpr%2F21/src/models/states.py
418 Bytes
| """LangGraph state definitions for agent workflows.""" | |
| from typing import TypedDict, List, Annotated, Optional | |
| from langgraph.graph.message import add_messages | |
| from langchain_core.messages import BaseMessage | |
| class AgentState(TypedDict): | |
| """State for agent graph.""" | |
| messages: Annotated[List[BaseMessage], add_messages] | |
| user_id: str | |
| room_id: str | |
| retrieved_docs: List[dict] | |
| needs_search: bool | |