Download src/state/state.py from bpratik/Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/spaces/bpratik/Chatbot/resolve/main/src/state/state.py
- Command line
-
hf download hf://spaces/bpratik/Chatbot/src/state/state.py
-
curl -L -o state.py https://huggingface.co/spaces/bpratik/Chatbot/resolve/main/src/state/state.py
261 Bytes
| from typing import Annotated | |
| from typing_extensions import TypedDict | |
| from langgraph.graph.message import add_messages | |
| class State(TypedDict): | |
| """ | |
| State for the graph. | |
| """ | |
| messages: Annotated[list, add_messages] # List of messages in the graph | |