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.
12 lines
356 B
12 lines
356 B
from swarms.tools.agent.singletool import load_single_tools, STQuestionAnswerer
|
|
|
|
tool_name, tool_url = 'shell', "http://127.0.0.1:8079/tools/shell/"
|
|
tools_name, tools_config = load_single_tools(tool_name, tool_url)
|
|
print(tools_name, tools_config)
|
|
|
|
qa = STQuestionAnswerer()
|
|
|
|
agent = qa.load_tools(tools_name, tools_config)
|
|
|
|
agent("print 'Hello World!'")
|