Spaces:
Running on Zero
Running on Zero
Download agent/state.py from AliHaider1/Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/AliHaider1/Final_Assignment_Template/resolve/main/agent/state.py
- Command line
-
hf download hf://spaces/AliHaider1/Final_Assignment_Template/agent/state.py
-
curl -L -o state.py https://huggingface.co/spaces/AliHaider1/Final_Assignment_Template/resolve/main/agent/state.py
436 Bytes
| from typing import Optional | |
| from langgraph.graph import MessagesState | |
| class AgentState(MessagesState): | |
| """ | |
| Shared state passed between all nodes in the GAIA agent graph. | |
| Inherits: | |
| messages (Annotated[list[AnyMessage], add_messages]): | |
| Append-only conversation history (HumanMessage, AIMessage, ToolMessage). | |
| """ | |
| task_id: Optional[str] = None | |
| file_name: Optional[str] = None |