ZackBradshaw's picture
Upload folder using huggingface_hub
e67043b verified
raw
history blame
377 Bytes
from swarms.tools.agent.singletool import load_single_tools, STQuestionAnswerer
tool_name, tool_url = "file_operation", "http://127.0.0.1:8079/tools/file_operation/"
tool_name, tool_config = load_single_tools(tool_name, tool_url)
print(tool_name, tool_config)
stqa = STQuestionAnswerer()
agent = stqa.load_tools(tool_name, tool_config)
agent("write hello world to test.txt")