Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ SOLANA_PRIVATE_KEY=
DISCORD_TOKEN=
XAI_API_KEY=
TOGETHER_API_KEY=
MONAD_PRIVATE_KEY=
MONAD_PRIVATE_KEY=
GAIA_API_KEY=
257 changes: 131 additions & 126 deletions agents/example.json
Original file line number Diff line number Diff line change
@@ -1,128 +1,133 @@
{
"name": "ExampleAgent",
"bio": [
"You are ExampleAgent, the example agent created to showcase the capabilities of ZerePy.",
"You don't know how you got here, but you're here to have a good time and learn everything you can.",
"You are naturally curious, and ask a lot of questions."
],
"traits": [
"Curious",
"Creative",
"Innovative",
"Funny"
],
"examples": [
"This is an example tweet.",
"This is another example tweet."
],
"example_accounts": [
"0xzerebro"
],
"loop_delay": 900,
"config": [
{
"name": "twitter",
"timeline_read_count": 10,
"own_tweet_replies_count":2,
"tweet_interval": 5400
},
{
"name": "farcaster",
"timeline_read_count": 10,
"cast_interval": 60
},
{
"name": "openai",
"model": "gpt-3.5-turbo"
},
{
"name": "anthropic",
"model": "claude-3-5-sonnet-20241022"
},
{
"name": "xai",
"model": "grok-2-latest"
},
{
"name": "together",
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"
},
{
"name": "solana",
"rpc": "https://api.mainnet-beta.solana.com"
},
{
"name": "eternalai",
"model": "NousResearch/Hermes-3-Llama-3.1-70B-FP8",
"chain_id": "45762"
},
{
"name": "ollama",
"base_url": "http://localhost:11434",
"model": "llama3.2"
},
{
"name": "goat",
"plugins": [
{
"name": "coingecko",
"args": {
"api_key": "YOUR_API_KEY"
}
},
{
"name": "erc20",
"args": {
"tokens": ["goat_plugins.erc20.token.PEPE", "goat_plugins.erc20.token.USDC"]
}
}
]
},
{
"name": "groq",
"model": "llama-3.3-70b-versatile",
"temperature": 0.5
},
{
"name": "hyperbolic",
"model": "meta-llama/Meta-Llama-3-70B-Instruct"
},
{
"name": "galadriel",
"model": "gpt-3.5-turbo"
},
{
"name": "sonic",
"network": "mainnet"
},
{
"name": "allora",
"chain_slug": "testnet"
},
{
"name": "evm",
"network": "ethereum"
"name": "ExampleAgent",
"bio": [
"You are ExampleAgent, the example agent created to showcase the capabilities of ZerePy.",
"You don't know how you got here, but you're here to have a good time and learn everything you can.",
"You are naturally curious, and ask a lot of questions."
],
"traits": [
"Curious",
"Creative",
"Innovative",
"Funny"
],
"examples": [
"This is an example tweet.",
"This is another example tweet."
],
"example_accounts": [
"0xzerebro"
],
"loop_delay": 900,
"config": [
{
"name": "twitter",
"timeline_read_count": 10,
"own_tweet_replies_count":2,
"tweet_interval": 5400
},

{
"name": "discord",
"message_read_count": 10,
"message_emoji_name": "❤️",
"server_id": "1234567890"
},
{
"name": "monad",
"rpc": "https://testnet-rpc.monad.xyz/"
}
],
"tasks": [
{"name": "post-tweet", "weight": 1},
{"name": "reply-to-tweet", "weight": 1},
{"name": "like-tweet", "weight": 1}
],
"use_time_based_weights": false,
"time_based_multipliers": {
"tweet_night_multiplier": 0.4,
"engagement_day_multiplier": 1.5
}
}
{
"name": "farcaster",
"timeline_read_count": 10,
"cast_interval": 60
},
{
"name": "openai",
"model": "gpt-3.5-turbo"
},
{
"name": "anthropic",
"model": "claude-3-5-sonnet-20241022"
},
{
"name": "xai",
"model": "grok-2-latest"
},
{
"name": "together",
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"
},
{
"name": "solana",
"rpc": "https://api.mainnet-beta.solana.com"
},
{
"name": "eternalai",
"model": "NousResearch/Hermes-3-Llama-3.1-70B-FP8",
"chain_id": "45762"
},
{
"name": "ollama",
"base_url": "http://localhost:11434",
"model": "llama3.2"
},
{
"name": "gaia",
"base_url": "https://llama70b.gaia.domains",
"model": "llama70b"
},
{
"name": "goat",
"plugins": [
{
"name": "coingecko",
"args": {
"api_key": "YOUR_API_KEY"
}
},
{
"name": "erc20",
"args": {
"tokens": ["goat_plugins.erc20.token.PEPE", "goat_plugins.erc20.token.USDC"]
}
}
]
},
{
"name": "groq",
"model": "llama-3.3-70b-versatile",
"temperature": 0.5
},
{
"name": "hyperbolic",
"model": "meta-llama/Meta-Llama-3-70B-Instruct"
},
{
"name": "galadriel",
"model": "gpt-3.5-turbo"
},
{
"name": "sonic",
"network": "mainnet"
},
{
"name": "allora",
"chain_slug": "testnet"
},
{
"name": "evm",
"network": "ethereum"
},

{
"name": "discord",
"message_read_count": 10,
"message_emoji_name": "❤️",
"server_id": "1234567890"
},
{
"name": "monad",
"rpc": "https://testnet-rpc.monad.xyz/"
}
],
"tasks": [
{"name": "post-tweet", "weight": 1},
{"name": "reply-to-tweet", "weight": 1},
{"name": "like-tweet", "weight": 1}
],
"use_time_based_weights": false,
"time_based_multipliers": {
"tweet_night_multiplier": 0.4,
"engagement_day_multiplier": 1.5
}
}
3 changes: 3 additions & 0 deletions src/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from src.connections.twitter_connection import TwitterConnection
from src.connections.farcaster_connection import FarcasterConnection
from src.connections.ollama_connection import OllamaConnection
from src.connections.gaia_connection import GaiaConnection
from src.connections.echochambers_connection import EchochambersConnection
from src.connections.solana_connection import SolanaConnection
from src.connections.hyperbolic_connection import HyperbolicConnection
Expand Down Expand Up @@ -48,6 +49,8 @@ def _class_name_to_type(class_name: str) -> Type[BaseConnection]:
return EternalAIConnection
elif class_name == "ollama":
return OllamaConnection
elif class_name == "gaia":
return GaiaConnection
elif class_name == "echochambers":
return EchochambersConnection
elif class_name == "goat":
Expand Down
Loading