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/playground/agents/multion_agent.py

43 lines
807 B

from swarms.agents.multion_agent import MultiOnAgent
from swarms.structs.agent import Agent
11 months ago
from swarms.structs.concurrent_workflow import ConcurrentWorkflow
from swarms.structs.task import Task
# model
model = MultiOnAgent(
multion_api_key=""
)
# out = model.run("search for a recipe")
agent = Agent(
agent_name="MultiOnAgent",
description="A multi-on agent that performs browsing tasks.",
llm=model,
max_loops=1,
system_prompt=None,
)
# Task
task = Task(
agent=agent,
description=(
"send an email to vyom on superhuman for a partnership with"
" multion"
),
)
# Swarm
workflow = ConcurrentWorkflow(
max_workers=21,
autosave=True,
print_results=True,
return_results=True,
)
# Add task to workflow
workflow.add(task)
workflow.run()