File size: 351 Bytes
363cda9
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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."""