Skip to content

Quickstart

from swarms import Agent
agent = Agent(
agent_name="docs_summarizer",
system_prompt="You summarize technical notes clearly and briefly.",
model_name="gpt-4o-mini",
max_loops=1,
)
result = agent.run("Write three practical checks before adopting a new agent framework.")
print(result)

The first run proves the basic path: the tool starts, reaches the model, and returns an inspectable result. Do not begin with production data, remote entry points, or high-risk tools.

SignalMeaning
Command or script runsEnvironment and package installation are probably correct.
Model call succeedsProvider configuration is usable.
Output is boundedThe loop or session did not run away.
State can be foundYou can recover or debug later.

Run one Agent with one prompt and one output. Do not add a workflow, memory, tools, or routing until the single script returns a result you can inspect.

Terminal window
python first_agent.py
If this failsLook here first
Command or import failsInstallation and active environment.
Provider auth failsKey source, model name, and provider account.
Output is too broadPrompt, loop limit, and output instruction.
State is hard to findSession, logs, and working directory.