Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix example in docs of state_schema in create_react_agent (#2109)
because in ```python def call_model( state: AgentState, config: RunnableConfig, ) ... if ( ( "remaining_steps" not in state and state["is_last_step"] and has_tool_calls ) ``` https://github.com/langchain-ai/langgraph/blob/c0b56bf60d84ed435609c35b0691cd0305ceae78/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py#L543 the AgentState requires is_last_step to have a default value, like `False`, and `IsLastStep` can satisfy it. --------- Co-authored-by: Vadym Barda <[email protected]>
- Loading branch information