Quickstart
Build and run your first agent in a few lines.
Get your first AI agent running in less than a minute.
Open the generated main.py file created by abagentsdk setup, or create a new Python file and paste the following code.
main.py
from dotenv import load_dotenv
load_dotenv()
from abagentsdk import Agent, Memory
agent = Agent(
name="Assistant",
instructions="You are a helpful assistant.",
model="gemini-2.0-flash",
memory=Memory(),
)
result = agent.run("What is the capital of France?")
print(result.content)After that, run:
terminal
python main.pyIf everything is configured correctly, you'll receive an AI-generated response.
🎉 Congratulations!
You've successfully built and executed your first AI agent using ABZ Agent SDK.
Next Step#
Continue to the Agents documentation to learn how agents work and how to customize them.