from langgraph.graph import END, START, MessagesState from typing import Optional, Any class CodeActState(MessagesState): """State for CodeAct agent.""" script: Optional[str] """The Python code script to be executed.""" context: dict[str, Any] """Dictionary containing the execution context with available tools and variables."""