Spaces:
Paused
Paused
Download app/agent/state.py from tianyajum/python-agent: direct link, hf CLI and curl.
- Browser
- Download file 275 Bytes
-
https://huggingface.co/spaces/tianyajum/python-agent/resolve/main/app/agent/state.py
- Command line
-
hf download hf://spaces/tianyajum/python-agent/app/agent/state.py
-
curl -L -o state.py https://huggingface.co/spaces/tianyajum/python-agent/resolve/main/app/agent/state.py
275 Bytes
| from typing import TypedDict, Annotated, List, Union | |
| from langchain_core.messages import BaseMessage | |
| import operator | |
| class AgentState(TypedDict): | |
| messages: Annotated[List[BaseMessage], operator.add] | |
| context: str | |
| current_step: str | |
| tool_outputs: dict | |