Install dependency
sudo apt-get install libavif16
TL;DR, run all checks with:
uv sync --all-extras
source .venv/bin/activateBuild package, run the following command
uv build --package sunagent_core --out-dir dist/
uv is a package manager that assists in creating the necessary environment and installing packages to run SunAgent.
During development, you may need to test changes made to any of the packages.
To do so, create a virtual environment where the SunAgent packages are installed based on the current state of the directory.
Run the following commands at the root level of the Python directory:
uv sync --all-extras
source .venv/bin/activateuv sync --all-extraswill create a.venvdirectory at the current level and install packages from the current directory along with any other dependencies. Theall-extrasflag adds optional dependencies.source .venv/bin/activateactivates the virtual environment.
uv build --all-packages --wheel --out-dir dist- twitter ai bot
- web3 token bot
git clone https://github.com/sun-protocol/SunAgent.git
cd SunAgent
uv sync --all-extras
source .venv/bin/activate
cd samples/twitter_robot
cp .env.twitter.example .env
python twitter_app.pygit clone https://github.com/sun-protocol/SunAgent.git
cd SunAgent
uv sync --all-extras
source .venv/bin/activate
cd samples/twitter_robot
cp .env.token.example .env
python token_launch_app.py