You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarms/tools/file_operation/test.py

10 lines
379 B

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")