Download agent/__init__.py from mnoorchenar/langgraph-support-agent: direct link, hf CLI and curl.
- Browser
- Download file 958 Bytes
-
https://huggingface.co/spaces/mnoorchenar/langgraph-support-agent/resolve/main/agent/__init__.py
- Command line
-
hf download hf://spaces/mnoorchenar/langgraph-support-agent/agent/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/mnoorchenar/langgraph-support-agent/resolve/main/agent/__init__.py
958 Bytes
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # FILE: agent/state.py | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| from typing import TypedDict, Annotated, List, Optional | |
| from langchain_core.messages import BaseMessage | |
| import operator | |
| class AgentState(TypedDict): | |
| messages: Annotated[List[BaseMessage], operator.add] | |
| current_node: str | |
| model_name: str | |
| session_id: str | |
| hf_token: str | |
| iteration_count: int | |
| should_end: bool | |
| final_answer: Optional[str] | |
| error: Optional[str] | |
| conversation_history: List[dict] | |
| pending_tool: Optional[dict] |