from typing import TypedDict, List, Optional class PlanningState(TypedDict): task: str plan: Optional[List[str]] current_step: int results: List[str]