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/examples/agents/use_cases/code_gen/api_requester_agent.py

19 lines
443 B

from swarms import Agent
from swarm_models import 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)