mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-22 23:11:05 +08:00
* 支持了agentlm * 支持了agentlm和相关提示词 * 修改了Agent的一些功能,加入了Embed方面的一个优化 * 修改了部分Agent的工具 * 增加一些Langchain的自带工具 --------- Co-authored-by: zR <zRzRzRzRzRzRzR>
7 lines
152 B
Python
7 lines
152 B
Python
# LangChain 的 Shell 工具
|
|
from langchain.tools import ShellTool
|
|
def shell(query: str):
|
|
tool = ShellTool()
|
|
return tool.run(tool_input=query)
|
|
|