A blog to discuss all things Ai Agent Frameworks and Platforms
Used the following versions when writing this blog
python - 3.12.8 (had issues with 3.13.1)
poetry - 1.8.5
Check out my GitHub repository for the source code: Zerepy Hello World
git clone --branch ollama https://github.com/wale-e/ZerePy.git # clone repository
cd zerepy # change to the zerepy direction
# install python 3.12.8 (instructions below)
# install poetry 1.8.5 (instructions below)
poetry env use python3.12 # ensure poetry the correct Python version
poetry install --no-root # install dependencies
poetry shell # activate the virtual environment"
# follow step from "Run the agent below"
First install python (version 3.12.8) if you haven’t, Python downloads
python3 --version
should return Python 3.12.8
Follow the steps here to use the official installation
git clone https://github.com/blorm-network/ZerePy.git
cd zerepy
poetry install --no-root
This will create a virtual environment and install all required dependencies.
poetry env use python3.12
touch ./src/connections/ollama_connection.py
Change the section below
# Extract Twitter config
twitter_config = next((config for config in agent_dict["config"] if config["name"] == "twitter"), None)
if not twitter_config:
raise KeyError("Twitter configuration is required")
# TODO: These should probably live in the related task parameters
self.tweet_interval = twitter_config.get("tweet_interval", 900)
self.own_tweet_replies_count = twitter_config.get("own_tweet_replies_count", 2)
To
# Extract Twitter config
twitter_config = next((config for config in agent_dict["config"] if config["name"] == "twitter"), None)
if twitter_config:
# Set Twitter-specific variables only if the config exists
self.tweet_interval = twitter_config.get("tweet_interval", 900)
self.own_tweet_replies_count = twitter_config.get("own_tweet_replies_count", 2)
else:
logger.info("No Twitter configuration found. Skipping Twitter integration.")
Change the section below
if not self.username:
raise ValueError("Twitter username is required")
To
if not self.username:
logger.info("Twitter username not configured. Skipping Twitter-specific functionality.")
After
from src.connections.farcaster_connection import FarcasterConnection
Add
from src.connections.ollama_connection import OllamaConnection
After
elif class_name == "eternalai":
return EternalAIConnection
Add
elif class_name == "ollama":
return OllamaConnection
#assumes you are at the root of project (zerepy)
touch ./agents/ollama.json
{
"default_agent": "ollama"
}
poetry shell
poetry run python main.py
ZerePy-CLI (ollama) > chat
You: What is quantum computing

This completes your hello world Zerepy introduction
Congratulations you have successful run your first Zerepy Ai Agent