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/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/models/states.py
- Command line
-
hf download hf://spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog@717452f69ec32394dea2a8fc11aba47eebe5bc53/src/models/states.py
-
curl -L -o states.py https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/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 | |