diff --git a/swarms/swarms.py b/swarms/swarms.py index 409908c5..1cca8c55 100644 --- a/swarms/swarms.py +++ b/swarms/swarms.py @@ -3,7 +3,7 @@ import logging from swarms.tools.agent_tools import * from swarms.agents.workers.worker import WorkerNode, worker_tool from swarms.agents.boss.boss_agent import BossNode -from swarms.tools.main import RequestsGet +# from swarms.tools.main import RequestsGet logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') @@ -103,6 +103,20 @@ class Swarms: +# usage +def swarm(api_key, objective): + swarms = Swarms(api_key) + return swarms.run_swarms(objective) + +# # Use the function +# api_key = "APIKEY" +# objective = "What is the capital of the UK?" +# result = swarm(api_key, objective) +# print(result) # Prints: "The capital of the UK is London." + + + + @@ -335,21 +349,6 @@ class Swarms: -# usage -def swarm(api_key, objective): - swarms = Swarms(api_key) - return swarms.run_swarms(objective) - -# # Use the function -# api_key = "APIKEY" -# objective = "What is the capital of the UK?" -# result = swarm(api_key, objective) -# print(result) # Prints: "The capital of the UK is London." - - - - -