Files
task-6a1867fa8a94f887e50d52bd/models.py
T
2026-05-28 17:02:09 +00:00

24 lines
667 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
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]