From 088d01bc0aa8bbd96dcd1f3601317b47084da4b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=9A=D1=83=D1=82?= =?UTF-8?q?=D0=BB=D0=B0=D1=85=D0=BC=D0=B5=D1=82=D0=BE=D0=B2?= Date: Thu, 28 May 2026 17:02:09 +0000 Subject: [PATCH] add models.py --- models.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 models.py diff --git a/models.py b/models.py new file mode 100644 index 0000000..4d5fbb8 --- /dev/null +++ b/models.py @@ -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 natural‑language 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]