add models.py

This commit is contained in:
2026-05-28 17:02:09 +00:00
parent e6aef1e49c
commit 088d01bc0a
+23
View File
@@ -0,0 +1,23 @@
"""
Shared data structures for the Planning Agent.
The module contains a TypedDict that represents the state used by LangGraph.
It is imported in ``main.py`` to keep type hints consistent across files.
"""
from typing import List, TypedDict
class PlanningState(TypedDict):
"""State of the planning agent.
Attributes:
task: The original naturallanguage description.
plan: Optional list of steps produced by the LLM.
current_step: Index of the next step to execute.
results: Accumulated textual results for each executed step.
"""
task: str
plan: List[str] | None
current_step: int
results: List[str]