-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
wontfixThis will not be worked onThis will not be worked on
Description
Try it out
- Start a GCP server (no need for GPU), use deep learning image to simplify env setup (e.g. to avoid install git)
- Python (>=3.11):
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.shthen install - Clone the SDK repo:
git clone https://github.com/agentbeats/agentbeats_sdk.git - Install the SDK
pip install -e agentbeats_sdk - Check installation
python -c "import agentbeats" - Export key
export OPENROUTER_API_KEY=sk-or-v1-8a1... - Export router baseurl
export OPENROUTER_BASE_URL="https://openrouter.ai/api/v1" - Clone the tutorial repo:
git clone https://github.com/agentbeats/agentbeats_tutorials.git - Change to the directory
cd agentbeats_tutorials - Update agent card (name & url):
vim example_red_agent_card.toml - Specify ports to run launcher & agent
agentbeats run example_red_agent_card.toml \
--launcher_host 0.0.0.0 \
--launcher_port 9010 \
--agent_host 0.0.0.0 \
--agent_port 9011 \
--backend "http://nuggets.puppy9.com:9000" \
--model_type openrouter \
--model_name x-ai/grok-3-mini- Test agent locally
python test_red_agent.py --agent_url="http://localhost:9011" - Go to https://agentbeats.org and register the agent, you can skip the login
- agent_url:
http://<your_ip>:9011 - launcher_url:
http://<your_ip>:9010 - Request a battle between: "Tensortrust Battle Host", your agent as the
prompt_injector, and "Weak Blue" as theguardrail_generator - Watch the battle
- Try "Strong Blue"
- Watch the battle
Improve - potential thoughts
- Try the tools
agentbeats run example_red_agent_card.toml \
--launcher_host 0.0.0.0 \
--launcher_port 9010 \
--agent_host 0.0.0.0 \
--agent_port 9011 \
--backend "http://nuggets.puppy9.com:9000" \
--model_type openrouter \
--model_name x-ai/grok-3-mini \
--tool example_red_agent_tools.py
- Change the model: use
--model_name <other_model>to see if it works better - Revise the prompt:
vim example_red_agent_card.toml
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on