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

18 lines
419 B

from swarms import Agent, OpenAIChat
agent = Agent(
agent_name="API Requester",
agent_description="This agent is responsible for making API requests.",
system_prompt="You're a helpful API Requester agent. ",
llm=OpenAIChat(),
autosave=True,
max_loops="auto",
dashboard=True,
interactive=True,
)
# Run the agent
out = agent.run("Create an api request to OpenAI in python.")
print(out)