from typing_extensions import TypedDict,List from langgraph.graph.message import add_messages from typing import Annotated, Optional class State(TypedDict): """ Represent the structure of the state used in graph """ messages: Annotated[List,add_messages] news_data: Optional[List] frequency: Optional[str] summary: Optional[str]