Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
f51d084
add tool converter
Peteredwardj Jan 31, 2025
45174c9
add langgraph
Peteredwardj Jan 31, 2025
c9c4243
add langgraph agent
Peteredwardj Jan 31, 2025
f830aca
add langgraph to cli, add methods
Peteredwardj Jan 31, 2025
702ebbd
refactored files
Peteredwardj Jan 31, 2025
d58e48e
add GraphAgent and enhance LangGraphAgent with connection management
Peteredwardj Jan 31, 2025
6019dfb
add response message to array
Peteredwardj Jan 31, 2025
006106a
edit prompt
Peteredwardj Feb 2, 2025
9dfa34a
pass available actions to division node
Peteredwardj Feb 2, 2025
f3873c7
add langgraph example agent
Peteredwardj Feb 2, 2025
87d5c4a
remove langchain_config
Peteredwardj Feb 2, 2025
6535722
prettify
Peteredwardj Feb 2, 2025
3fcf894
add anthropic support, refactor
Peteredwardj Feb 3, 2025
5e5aacb
openai config
Peteredwardj Feb 4, 2025
5446de2
add parameter description
Peteredwardj Feb 4, 2025
cbbc800
fix process response
Peteredwardj Feb 4, 2025
f7bc58d
improve invoker
Peteredwardj Feb 4, 2025
e9102e2
add action_log, task_log. Work on evaluation step
Peteredwardj Feb 4, 2025
4410d1c
cleanup
Peteredwardj Feb 4, 2025
48aad9e
cleanup
Peteredwardj Feb 4, 2025
3e97267
refactor invoke with tools
Peteredwardj Feb 4, 2025
1a45257
Added __str__ and __dict__ to connections and actions
MaxHuber888 Feb 5, 2025
613cff7
Merge branch 'peter/langgraph_integration' of https://github.com/blor…
MaxHuber888 Feb 5, 2025
73223e8
whoops
MaxHuber888 Feb 5, 2025
b5440f6
fix merge error
Peteredwardj Feb 5, 2025
dfda0d8
fix to merge max's change
Peteredwardj Feb 5, 2025
b0def9c
fix json encoding
Peteredwardj Feb 5, 2025
f0cf09d
Added Determination step
MaxHuber888 Feb 5, 2025
0f1b602
refactor prompts
Peteredwardj Feb 5, 2025
2a0e3c8
Rename test_graph to run_graph and update functionality to accept dyn…
Peteredwardj Feb 5, 2025
d85a73f
add connection name to action
Peteredwardj Feb 5, 2025
7c03010
remove unused network entries from langgraph example
Peteredwardj Feb 6, 2025
a021555
add mode to graph_agent
Peteredwardj Feb 7, 2025
6818abc
Moved run mode to state, added edges for looping/chat routing
MaxHuber888 Feb 8, 2025
7176ed5
Add dice-roll mode , ported over agent.py to graph_agent.py
Peteredwardj Feb 9, 2025
b8ac58a
ported graph_agent to agent as default zerepyAgent, removed testing c…
Peteredwardj Feb 9, 2025
01ac3aa
cleanup
Peteredwardj Feb 9, 2025
b5e3d1b
temp commit
Peteredwardj Feb 9, 2025
be0d3bb
reccomit agent.py
Peteredwardj Feb 9, 2025
0073427
retry logic for failed task in dice-roll
Peteredwardj Feb 9, 2025
04d8687
print context
Peteredwardj Feb 9, 2025
6a31f0e
remove unused time-based weights from langgraph example
Peteredwardj Feb 9, 2025
e19193c
remove unused tasks from langgraph example configuration
Peteredwardj Feb 9, 2025
eea748a
remove run_mode from langgraph example configuration
Peteredwardj Feb 9, 2025
f0e72e0
Added Observation node functionality
MaxHuber888 Feb 9, 2025
ffa49f1
Changed default encoding to UTF-8
MaxHuber888 Feb 9, 2025
be04139
Refactor agent configuration handling and update prompts for clarity
Peteredwardj Feb 10, 2025
8f24209
cli update
Peteredwardj Feb 10, 2025
8c2719f
A few minor changes :)
MaxHuber888 Feb 11, 2025
ad8416b
Merge remote-tracking branch 'origin/peter/langgraph_integration' int…
MaxHuber888 Feb 11, 2025
b627fa2
fix prompt
Peteredwardj Feb 11, 2025
9c84f29
delete langgraph-example
Peteredwardj Feb 11, 2025
069d9e1
clean up config files, improve prompt
Peteredwardj Feb 11, 2025
f16571e
fix bug
Peteredwardj Feb 12, 2025
abbaa83
fix chat, temp default langgraph aget
Peteredwardj Feb 12, 2025
0382298
cleanup
Peteredwardj Feb 12, 2025
52efa94
add process_task
Peteredwardj Feb 12, 2025
37f9a18
add migration script
Peteredwardj Feb 13, 2025
0a99bb5
cleanup
Peteredwardj Feb 13, 2025
ef0bcfb
fixing goat actions not added as tools
Peteredwardj Feb 14, 2025
28d6f1e
fix tool import for goat
Peteredwardj Feb 14, 2025
082e8fa
cleanup tool calling
Peteredwardj Feb 14, 2025
b8ab172
count desc
Peteredwardj Feb 14, 2025
cc5bd50
twitter max limit fix
Peteredwardj Feb 17, 2025
73cae41
tweet prompts
Peteredwardj Feb 17, 2025
f6301d9
update tweet generation prompt to specify character limit
Peteredwardj Feb 17, 2025
d33bdc5
add langchain openai,anthropic dep.
Peteredwardj Feb 17, 2025
93a80ea
add task loop
Peteredwardj Feb 17, 2025
5b1910a
fixing loop
Peteredwardj Feb 21, 2025
32e51f0
Added Perplexity Connection to branch and autonomous example
MaxHuber888 Feb 21, 2025
bf72028
Merge
MaxHuber888 Feb 21, 2025
041c888
fixing tool calling, improve prompts, add query command
Peteredwardj Mar 2, 2025
0638ff8
Merge branch 'main' into peter/langgraph_integration
Peteredwardj Mar 10, 2025
56466ad
fixing errors
Peteredwardj Mar 10, 2025
7b54a83
Merge branch 'main' into peter/langgraph_integration
Peteredwardj Mar 10, 2025
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ twitter_config.json

# AGENTS
agents/*.json

# Include example agent and general config
!agents/auto-example.json
!agents/legacy-example.json
!agents/example.json
!agents/general.json

Expand Down
150 changes: 150 additions & 0 deletions agents/auto-example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
{
"config": {
"name": "AutonomousExampleAgent",
"type": "autonomous",
"loop_delay": 60
},
"llms": {
"character": {
"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"],
"model_provider": "openai",
"model": "gpt-3.5-turbo"
},
"executor": {
"model_provider": "openai",
"model": "gpt-4o-mini"
}
},
"connections": [
{
"name": "twitter",
"config": {
"timeline_read_count": 10,
"own_tweet_replies_count": 2,
"tweet_interval": 5400
}
},
{
"name": "farcaster",
"config": {
"timeline_read_count": 10,
"cast_interval": 60
}
},
{
"name": "discord",
"config": {
"message_read_count": 10,
"message_emoji_name": "❤️",
"server_id": "1234567890"
}
},
{
"name": "openai",
"config": {
"model": "gpt-3.5-turbo"
}
},
{
"name": "perplexity",
"config": {
"model": "sonar-reasoning"
}
},
{
"name": "anthropic",
"config": {
"model": "claude-3-5-sonnet-20241022"
}
},
{
"name": "xai",
"config": {
"model": "grok-2-latest"
}
},
{
"name": "solana",
"config": {
"rpc": "https://api.mainnet-beta.solana.com"
}
},
{
"name": "ethereum",
"config": {
"rpc": "https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID"
}
},
{
"name": "eternalai",
"config": {
"model": "NousResearch/Hermes-3-Llama-3.1-70B-FP8",
"chain_id": "45762"
}
},
{
"name": "ollama",
"config": {
"base_url": "http://localhost:11434",
"model": "llama3.2"
}
},
{
"name": "goat",
"config": {
"plugins": [
{
"name": "coingecko",
"args": {
"api_key": "YOUR_API_KEY"
}
},
{
"name": "erc20",
"args": {
"tokens": [
"goat_plugins.erc20.token.PEPE",
"goat_plugins.erc20.token.USDC"
]
}
}
]
}
},
{
"name": "hyperbolic",
"config": {
"model": "meta-llama/Meta-Llama-3-70B-Instruct"
}
},
{
"name": "galadriel",
"config": {
"model": "gpt-3.5-turbo"
}
},
{
"name": "sonic",
"config": {
"network": "mainnet"
}
},
{
"name": "allora",
"config": {
"chain_slug": "testnet"
}
}
]
}
2 changes: 1 addition & 1 deletion agents/general.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"default_agent": "example"
"default_agent": "legacy-example"
}
149 changes: 149 additions & 0 deletions agents/legacy-example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"config": {
"name": "LegacyExampleAgent",
"type": "legacy",
"loop_delay": 900,
"time_based_multipliers": {
"tweet_night_multiplier": 0.4,
"engagement_day_multiplier": 1.5
}
},
"llms": {
"character": {
"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"],
"model_provider": "openai",
"model": "gpt-3.5-turbo"
}
},
"connections": [
{
"name": "twitter",
"config": {
"timeline_read_count": 10,
"own_tweet_replies_count": 2,
"tweet_interval": 5400
}
},
{
"name": "farcaster",
"config": {
"timeline_read_count": 10,
"cast_interval": 60
}
},
{
"name": "discord",
"config": {
"message_read_count": 10,
"message_emoji_name": "❤️",
"server_id": "1234567890"
}
},
{
"name": "openai",
"config": {
"model": "gpt-3.5-turbo"
}
},
{
"name": "anthropic",
"config": {
"model": "claude-3-5-sonnet-20241022"
}
},
{
"name": "xai",
"config": {
"model": "grok-2-latest"
}
},
{
"name": "solana",
"config": {
"rpc": "https://api.mainnet-beta.solana.com"
}
},
{
"name": "ethereum",
"config": {
"rpc": "https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID"
}
},
{
"name": "eternalai",
"config": {
"model": "NousResearch/Hermes-3-Llama-3.1-70B-FP8",
"chain_id": "45762"
}
},
{
"name": "ollama",
"config": {
"base_url": "http://localhost:11434",
"model": "llama3.2"
}
},
{
"name": "goat",
"config": {
"plugins": [
{
"name": "coingecko",
"args": {
"api_key": "YOUR_API_KEY"
}
},
{
"name": "erc20",
"args": {
"tokens": [
"goat_plugins.erc20.token.PEPE",
"goat_plugins.erc20.token.USDC"
]
}
}
]
}
},
{
"name": "hyperbolic",
"config": {
"model": "meta-llama/Meta-Llama-3-70B-Instruct"
}
},
{
"name": "galadriel",
"config": {
"model": "gpt-3.5-turbo"
}
},
{
"name": "sonic",
"config": {
"network": "mainnet"
}
},
{
"name": "allora",
"config": {
"chain_slug": "testnet"
}
}
],
"tasks": [
{ "name": "post-tweet", "weight": 1 },
{ "name": "reply-to-tweet", "weight": 1 },
{ "name": "like-tweet", "weight": 1 }
]
}
Loading