Running an agent¶
Create the agent¶
You can create your first μAgent by building a Python script with the following steps:
It is optional but useful to include a
seed parameter when creating an agent to set fixed addresses. Otherwise, random addresses will be generated every time you run the agent.
Give the agent something to do¶
Let's start with a simple task of saying hello every 2 seconds:
Contextobject is a collection of data and functions related to the agent. In this case, we just use the agent's name.
Run the agent¶
You can now run your first μAgent!
After a few lines in the agent's logs, you should see the following text printed on your terminal: