Spaces:
Sleeping
Sleeping
Download agent_plan_solve/graph/state.py from Ashmit003/Research_Agent: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/spaces/Ashmit003/Research_Agent/resolve/main/agent_plan_solve/graph/state.py
- Command line
-
hf download hf://spaces/Ashmit003/Research_Agent/agent_plan_solve/graph/state.py
-
curl -L -o state.py https://huggingface.co/spaces/Ashmit003/Research_Agent/resolve/main/agent_plan_solve/graph/state.py
412 Bytes
| # agent_plan_solve/graph/state.py | |
| from typing import Annotated, TypedDict | |
| import operator | |
| from pydantic import BaseModel, Field | |
| class Plan(BaseModel): | |
| """Plan to follow in future""" | |
| steps: list[str] = Field(..., description="Different steps to follow, in sorted order") | |
| class PlanState(TypedDict): | |
| task: str | |
| plan: Plan | |
| past_steps: Annotated[list[str], operator.add] | |
| final_response: str |