1. 标准模型接口(Standard model interface)2. 易用且灵活的智能体(Easy to use, highly flexible agent)3. 基于 LangGraph 构建(Built on top of LangGraph)4. LangSmith 调试支持(Debug with LangSmith)
# 定义工具函数(示例:获取天气)defget_weather(city:str)->str:"""Get weather for a given city.(获取指定城市天气)"""returnf"It's always sunny in {city}!"# 示例返回,实际可对接真实天气 API# 创建智能体