[智能体-134]:LangChain预定义工具大全 下面把LangChain 官方 / 社区预定义工具按类别做一份大全清单含用途、工具名、导入路径 /load_tools 别名便于直接复制使用。一、基础通用工具最常用1数学 计算CalculatorToolllm-math用途数学表达式计算、单位换算、公式求解导入langchain_community.tools.calculator.CalculatorToolload_tools 别名llm-mathWolframAlphaQueryRun用途符号计算、高数、物理 / 化学公式、专业数学导入langchain_community.tools.wolfram_alpha.WolframAlphaQueryRunLangchain2代码执行PythonREPLTool用途执行任意 Python 代码、数据处理、绘图、脚本导入langchain_community.tools.python.tool.PythonREPLToolShellToolTerminal用途执行系统 Shell 命令Linux/macOS/Windows导入langchain_community.tools.shell.tool.ShellTool3文件系统ReadFileTool/WriteFileTool/ListDirectoryTool/CopyFileTool/DeleteFileTool用途本地文件读写、目录浏览、增删改导入langchain_community.tools.file_management.*4时间 / 睡眠SleepTool用途延时等待秒级导入langchain_community.tools.sleep.SleepToolLangchain5人机交互HumanInputRun用途向用户提问、获取人工输入导入langchain_community.tools.human.tool.HumanInputRunLangchain二、搜索 知识库工具信息获取1通用网页搜索DuckDuckGoSearchRun免费无 KEY导入langchain_community.tools.duckduckgo_search.DuckDuckGoSearchRunTavilySearchResults免费额度 付费质量高导入langchain_community.tools.tavily_search.TavilySearchResultsSerpAPI / GoogleSearch需 KEY别名serpapiBingSearch / BraveSearch / SearxSearch导入langchain_community.tools.searx_search.*2百科 知识WikipediaQueryRun维基百科支持多语言导入langchain_community.tools.wikipedia.WikipediaQueryRunMerriamWebsterQueryRun韦氏词典导入langchain_community.tools.merriam_webster.MerriamWebsterQueryRunLangchain3学术文献ArxivQueryRunarxiv 论文导入langchain_community.tools.arxiv.ArxivQueryRunLangchainPubmedQueryRun生物医学文献导入langchain_community.tools.pubmed.PubmedQueryRunLangchain4问答社区StackExchangeToolStack Overflow 等导入langchain_community.tools.stackexchange.StackExchangeToolLangchain三、API HTTP 工具接口调用Requests 工具包最常用RequestsGetTool/RequestsPostTool/RequestsPutTool/RequestsDeleteTool/RequestsPatchTool用途发送 HTTP 请求、调用 REST API导入langchain_community.tools.requests.tool.*Langchain天气OpenWeatherMapQueryRun天气查询导入langchain_community.tools.openweathermap.OpenWeatherMapQueryRunLangchainOpenMeteoAPI免费天气 API别名open-meteo-apilangchain-doc.readthedocs.io新闻NewsAPI头条新闻别名news-apilangchain-doc.readthedocs.io四、社交媒体 内容平台RedditSearchRunReddit 搜索导入langchain_community.tools.reddit_search.RedditSearchRunLangchainYouTubeSearchToolYouTube 视频搜索导入langchain_community.tools.youtube_search.YouTubeSearchToolTwitter / X、Discord、Slack、Gmail、Google Calendar等在langchain_community.tools或对应 toolkit五、数据库 数据处理SQLDatabaseToolkitSQL 查询、表结构、执行包含SQLQueryTool、SQLDatabaseSchemaTool等导入langchain_community.agent_toolkits.sql.toolkit.SQLDatabaseToolkitJSONToolJSON 解析、提取、格式化导入langchain_community.tools.json.tool.JSONTool六、云 企业服务工具包ToolkitsAWS Lambda ToolkitSalesforce ToolkitPowerBI ToolkitSlack ToolkitNotion ToolkitGitHub ToolkitZapier ToolkitMicrosoft 365 ToolkitOutlook、OneDrive 等Langchain七、Agent 常用快捷别名load_toolspython运行from langchain_community.agent_toolkits import load_tools tools load_tools([ llm-math, # Calculator python_repl, # PythonREPLTool terminal, # ShellTool wikipedia, duckduckgo_search, serpapi, openweathermap, arxiv, pubmed, stackexchange ], llmllm)八、安全与使用建议高风险工具PythonREPLTool、ShellTool、文件写操作 ——生产环境必须做沙箱 / 权限控制。需 API KeySerpAPI、Tavily、WolframAlpha、OpenWeatherMap 等。中文优先DuckDuckGo、Wikipedialangzh、Tavily 较稳定。