diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 405a18d2f..2bff40fc4 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -382,12 +382,11 @@ def create_react_agent( Use with a simple tool: ```pycon - >>> from datetime import datetime >>> from langchain_openai import ChatOpenAI >>> from langgraph.prebuilt import create_react_agent - ... def check_weather(location: str, at_time: datetime | None = None) -> str: + ... def check_weather(location: str) -> str: ... '''Return the weather forecast for the specified location.''' ... return f"It's always sunny in {location}" >>> @@ -595,7 +594,7 @@ def create_react_agent( ```pycon >>> import time - ... def check_weather(location: str, at_time: datetime | None = None) -> float: + ... def check_weather(location: str) -> str: ... '''Return the weather forecast for the specified location.''' ... time.sleep(2) ... return f"It's always sunny in {location}"