pull/160/head
Kye 2 years ago
parent 9b3ac2ebd5
commit ba7a031e7b

@ -1,18 +1,14 @@
import logging
from swarms.tools.agent_tools import * from swarms.tools.agent_tools import *
from swarms.agents.workers.worker import WorkerNode, worker_tool from swarms.agents.workers.worker import WorkerNode
from swarms.agents.boss.boss_agent import BossNode from swarms.agents.boss.boss_agent import BossNode
# from swarms.tools.main import RequestsGet # from swarms.agents.workers.omni_worker import OmniWorkerAgent
# from swarms.tools.main import RequestsGet, ExitConversation
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') # visual agent
from swarms.agents.workers.worker import worker_tool
import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
class Swarms: class Swarms:
def __init__(self, openai_api_key): def __init__(self, openai_api_key):
@ -103,6 +99,29 @@ class Swarms:
# usage # usage
def swarm(api_key, objective): def swarm(api_key, objective):
swarms = Swarms(api_key) swarms = Swarms(api_key)

Loading…
Cancel
Save