Skip to content

galadriel-ai/daige-agent

Repository files navigation

Twitter agent example

Install the requirements

It's recommended to use a virtual env

In the root of the repo:

pip install -e ".[dev]"

Modify the .env

Paid tier of the Twitter API is required for full functionality, for just posting free tier will suffice.

cp template.env .env

Run

python agent.py

Deployment

In the root of the repo

git pull
./deploy.sh

tail -f logs.log -n 100

Tests

python -m pytest tests

Test outputs locally

This enables changing the code/prompting without actually posting on Twitter :)

python testing.py --help

python testing.py --type perplexity --count 1

python testing.py --type search --count 1

Generate a quote for a given tweet ID

# Quote a specific tweet
python manual_tweet.py --name <agent_name> --tweet_id <tweet_id>
# Give it context from a .txt file
python manual_tweet.py --name <agent_name> --context_file <file_path>

It will show the generated tweet and ask if it should post it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages