diff --git a/m08_langgraph_basics/s03_conditional_router.py b/m08_langgraph_basics/s03_conditional_router.py index 46aef7d..4f1b39d 100644 --- a/m08_langgraph_basics/s03_conditional_router.py +++ b/m08_langgraph_basics/s03_conditional_router.py @@ -19,9 +19,9 @@ llm = ChatOpenAI( # 工具定义 @tool -def get_weather(loaction): +def get_weather(location): """模拟获取天气""" - return f'{loaction}当前天气:23℃,晴,风力2级' + return f'{location}当前天气:23℃,晴,风力2级' tools = [get_weather]