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/simple_agent.py

18 lines
379 B

from swarms import Agent
agent = Agent(
name="Research Agent",
description="A research agent that can answer questions",
model_name="groq/moonshotai/kimi-k2-instruct",
verbose=True,
streaming_on=True,
max_loops=2,
interactive=True,
)
out = agent.run(
"What are the best AI wechat groups in hangzhou and beijing? give me the links"
)
print(out)