diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 1f0eb67b7..d7d42ded6 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -67,7 +67,7 @@ class AgentState(TypedDict): is_last_step: NotRequired[IsLastStep] - remaining_steps: RemainingSteps + remaining_steps: NotRequired[RemainingSteps] class AgentStatePydantic(BaseModel): @@ -964,3 +964,4 @@ __all__ = [ ] +